version 1.7, 2017/06/02 12:43:52 |
version 1.9, 2017/08/23 20:03:17 |
Line 34 elif [ "X$1" = "X-u" ]; then |
|
Line 34 elif [ "X$1" = "X-u" ]; then |
|
ROFF="groff -ket -ww -Tutf8 -P -c" |
ROFF="groff -ket -ww -Tutf8 -P -c" |
MOPT="-Werror -Tutf8 $MOPT" |
MOPT="-Werror -Tutf8 $MOPT" |
else |
else |
ROFF="groff -et -ww -Tascii -P -c" |
ROFF="groff -et -ww -mtty-char -Tascii -P -c" |
MOPT="-Werror -Tascii $MOPT" |
MOPT="-Werror -Tascii $MOPT" |
fi |
fi |
|
|
Line 43 while [ -n "$1" ]; do |
|
Line 43 while [ -n "$1" ]; do |
|
shift |
shift |
echo " ========== $file ========== " |
echo " ========== $file ========== " |
$ROFF -mandoc $file 2> /tmp/roff.err > /tmp/roff.out |
$ROFF -mandoc $file 2> /tmp/roff.err > /tmp/roff.out |
${MANDOC:=mandoc} -Ios='OpenBSD ports' $MOPT $file \ |
${MANDOC:=mandoc} -Ios=OpenBSD $MOPT $file \ |
2> /tmp/mandoc.err > /tmp/mandoc.out |
2> /tmp/mandoc.err > /tmp/mandoc.out |
for i in roff mandoc; do |
for i in roff mandoc; do |
[ -s /tmp/$i.err ] && echo "$i errors:" && cat /tmp/$i.err |
[ -s /tmp/$i.err ] && echo "$i errors:" && cat /tmp/$i.err |