]> git.cameronkatri.com Git - mandoc.git/commitdiff
allow using an alternate mandoc binary
authorIngo Schwarze <schwarze@openbsd.org>
Sun, 5 Apr 2015 09:30:24 +0000 (09:30 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Sun, 5 Apr 2015 09:30:24 +0000 (09:30 +0000)
gmdiff

diff --git a/gmdiff b/gmdiff
index ae27726ee5257a1d6d864fa3c291f869b4ed43b0..8d24fa76cad9d41fcf0b41da1b622c4a021ee8d4 100644 (file)
--- 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