From 22de92d482148bc13bae2597fc718ce50c54b419 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 5 Apr 2015 09:30:24 +0000 Subject: allow using an alternate mandoc binary --- gmdiff | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gmdiff') diff --git a/gmdiff b/gmdiff index ae27726e..8d24fa76 100644 --- a/gmdiff +++ b/gmdiff @@ -40,7 +40,8 @@ while [ -n "$1" ]; do shift echo " ========== $file ========== " tbl $file | $EQN | $ROFF -mandoc 2> /tmp/roff.err > /tmp/roff.out - mandoc -Ios='OpenBSD ports' $MOPT $file 2> /tmp/mandoc.err > /tmp/mandoc.out + ${MANDOC:=mandoc} -Ios='OpenBSD ports' $MOPT $file \ + 2> /tmp/mandoc.err > /tmp/mandoc.out for i in roff mandoc; do [[ -s /tmp/$i.err ]] && echo "$i errors:" && cat /tmp/$i.err done -- cgit