]> git.cameronkatri.com Git - mandoc.git/blobdiff - regress/regress.sh
Documented `In' in full.
[mandoc.git] / regress / regress.sh
index 1a65ad0d8f2f892a38f85dc2c24009949fe6d2db..24048b34f7135e25fbff28a2560b31ed92077592 100755 (executable)
@@ -23,7 +23,11 @@ for file in */*.in */*/*.in; do
        printf "%s: " "$file"
        ${MANDOC} "$file" > test.mandoc 2> /dev/null
        ${NROFF} ${OUTPUT} -mandoc "$file" > test.nroff 2> /dev/null
        printf "%s: " "$file"
        ${MANDOC} "$file" > test.mandoc 2> /dev/null
        ${NROFF} ${OUTPUT} -mandoc "$file" > test.nroff 2> /dev/null
-       if cmp -s test.mandoc test.nroff; then
+       l=`wc -l < test.mandoc`
+       head -n `expr $l - 1` test.mandoc | tail -n `expr $l - 2` > test.mandoc_
+       l=`wc -l < test.nroff`
+       head -n `expr $l - 1` test.nroff| tail -n `expr $l - 2` > test.nroff_
+       if cmp -s test.mandoc_ test.nroff_; then
                rm -f test.mandoc test.nroff
                echo "passed"
                pass=`expr $pass + 1`
                rm -f test.mandoc test.nroff
                echo "passed"
                pass=`expr $pass + 1`
@@ -37,4 +41,5 @@ for file in */*.in */*/*.in; do
                diff -u "${file2}".nroff "${file2}".mandoc > "${file2}".diff
        fi
 done
                diff -u "${file2}".nroff "${file2}".mandoc > "${file2}".diff
        fi
 done
+rm -f test.mandoc_ test.nroff_
 echo "Total: $pass passed, $failed failed"
 echo "Total: $pass passed, $failed failed"