]> git.cameronkatri.com Git - mandoc.git/commitdiff
Have regress.sh bail out if $MANDOC isn't found.
authorKristaps Dzonsons <kristaps@bsd.lv>
Sun, 6 Jun 2010 10:57:43 +0000 (10:57 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Sun, 6 Jun 2010 10:57:43 +0000 (10:57 +0000)
regress/regress.sh

index 24048b34f7135e25fbff28a2560b31ed92077592..1e17f3a83f9c80322338bf2125ddcec34b920550 100755 (executable)
@@ -4,6 +4,12 @@ MANDOC=${MANDOC:-../mandoc}
 NROFF=${NROFF:-nroff}
 OUTPUT=${NROFF_OUTPUT:--Tascii}
 
+if [ ! -x $MANDOC ]
+then
+       echo "regress.sh: command not found: $MANDOC" 1>&2
+       return 0
+fi
+
 check_skip_list() {
        [ -f skip_list ] || return 1
        while read file; do