X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/19d5af2ce98521ed1e78905916badd06a84ffb31..f2d5fc1266321e25b50efaea4fd8a9db1e174038:/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