[BACK]Return to regress.sh CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress

Diff for /mandoc/regress/Attic/regress.sh between version 1.4 and 1.6

version 1.4, 2010/05/16 18:02:11 version 1.6, 2010/06/06 10:57:43
Line 4  MANDOC=${MANDOC:-../mandoc}
Line 4  MANDOC=${MANDOC:-../mandoc}
 NROFF=${NROFF:-nroff}  NROFF=${NROFF:-nroff}
 OUTPUT=${NROFF_OUTPUT:--Tascii}  OUTPUT=${NROFF_OUTPUT:--Tascii}
   
   if [ ! -x $MANDOC ]
   then
           echo "regress.sh: command not found: $MANDOC" 1>&2
           return 0
   fi
   
 check_skip_list() {  check_skip_list() {
         [ -f skip_list ] || return 1          [ -f skip_list ] || return 1
         while read file; do          while read file; do
Line 23  for file in */*.in */*/*.in; do
Line 29  for file in */*.in */*/*.in; do
         printf "%s: " "$file"          printf "%s: " "$file"
         ${MANDOC} "$file" > test.mandoc 2> /dev/null          ${MANDOC} "$file" > test.mandoc 2> /dev/null
         ${NROFF} ${OUTPUT} -mandoc "$file" > test.nroff 2> /dev/null          ${NROFF} ${OUTPUT} -mandoc "$file" > test.nroff 2> /dev/null
         mandoclen=`head -n 1 test.mandoc | wc -c`          l=`wc -l < test.mandoc`
         nrofflen=`head -n 1 test.nroff | wc -c`          head -n `expr $l - 1` test.mandoc | tail -n `expr $l - 2` > test.mandoc_
         if cmp -s test.mandoc test.nroff $mandoclen $nrofflen; then          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                  rm -f test.mandoc test.nroff
                 echo "passed"                  echo "passed"
                 pass=`expr $pass + 1`                  pass=`expr $pass + 1`
Line 39  for file in */*.in */*/*.in; do
Line 47  for file in */*.in */*/*.in; do
                 diff -u "${file2}".nroff "${file2}".mandoc > "${file2}".diff                  diff -u "${file2}".nroff "${file2}".mandoc > "${file2}".diff
         fi          fi
 done  done
   rm -f test.mandoc_ test.nroff_
 echo "Total: $pass passed, $failed failed"  echo "Total: $pass passed, $failed failed"

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

CVSweb