diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-16 12:25:32 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-16 12:25:32 +0000 |
commit | 44573b326d6604f3025f17909863711b17011d5f (patch) | |
tree | 2f799a005ddc5af896cb8cc95d7b54f7765c61a5 /gmdiff | |
parent | 58fd1ae836b3d8701068197d02994d62b90cd1af (diff) | |
download | mandoc-44573b326d6604f3025f17909863711b17011d5f.tar.gz mandoc-44573b326d6604f3025f17909863711b17011d5f.tar.zst mandoc-44573b326d6604f3025f17909863711b17011d5f.zip |
process UTF-8 input even in ASCII output mode,
and provide a way to specify additional diff(1) options
Diffstat (limited to 'gmdiff')
-rw-r--r-- | gmdiff | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ elif [ "X$1" = "X-u" ]; then MOPT="-Ios=OpenBSD -Wall -Tutf8 $MOPT" COLPIPE="cat" else - ROFF="groff -et -ww -mtty-char -Tascii -P -c" + ROFF="groff -ket -ww -mtty-char -Tascii -P -c" MOPT="-Ios=OpenBSD -Wall -Tascii $MOPT" COLPIPE="cat" fi @@ -51,7 +51,7 @@ while [ -n "$1" ]; do for i in roff mandoc; do [ -s /tmp/$i.err ] && echo "$i errors:" && cat /tmp/$i.err done - diff -au /tmp/roff.out /tmp/mandoc.out 2>&1 + diff -au $DIFFOPT /tmp/roff.out /tmp/mandoc.out 2>&1 done exit 0 |