]> git.cameronkatri.com Git - mandoc.git/blobdiff - gmdiff
Debian wants relative, not absolute symlinks for man pages;
[mandoc.git] / gmdiff
diff --git a/gmdiff b/gmdiff
index ae27726ee5257a1d6d864fa3c291f869b4ed43b0..278ce7491f87108a9ab7e8c1e776d5963291b237 100644 (file)
--- a/gmdiff
+++ b/gmdiff
@@ -19,7 +19,7 @@ if [ `id -u` -eq 0 ]; then
 fi
 
 if [ $# -eq 0 ]; then
-  echo "usage: $0 -h manual_source_file ..."
+  echo "usage: $0 [-h] manual_source_file ..."
   exit 1
 fi
 
@@ -33,14 +33,15 @@ else
   EQN="eqn -Tascii"
   ROFF="groff -ww -Tascii -P -c"
 fi
-MOPT="-Werror $MOPT"
+MOPT="-Werror -Tascii $MOPT"
 
 while [ -n "$1" ]; do
   file=$1
   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