summaryrefslogtreecommitdiffstats
path: root/regress
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-06 10:57:43 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-06 10:57:43 +0000
commit800d2d2c54e5945bf0f9f81ab396e815d5a02f15 (patch)
treea08213cce8ac1c4e6dc48c2174a96007f0741dbd /regress
parentcbb95644f4f29dc2eeced60e1e0eb4e078df2d8d (diff)
downloadmandoc-800d2d2c54e5945bf0f9f81ab396e815d5a02f15.tar.gz
Have regress.sh bail out if $MANDOC isn't found.
Diffstat (limited to 'regress')
-rwxr-xr-xregress/regress.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/regress/regress.sh b/regress/regress.sh
index 24048b34..1e17f3a8 100755
--- a/regress/regress.sh
+++ b/regress/regress.sh
@@ -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