3 # Author: Engelbert Gruber <grubert@users.sf.net>
4 # Copyright: This module has been placed in the public domain.
10 if [ "$1" = "create" ] ; then
14 TMPF_OUT
=diff-out.tmp.$$
15 TMPF_EXP
=diff-exp.tmp.$$
16 for IN_F
in $IN_DIR/*.txt
; do
20 echo "File: $BASE" > $TMPF_EXP
21 grep -v "Generated by docutils manpage writer on" $EXP_DIR/$F_BASE.man
>> $TMPF_EXP
22 grep -v "Generated by docutils manpage writer on" $OUT_DIR/$F_BASE.man
> $TMPF_OUT
23 diff -s -u $TMPF_EXP $TMPF_OUT > $TMPF
24 if test $?
-gt 0 ; then
26 if [ "$CREATE" = "1" ] ; then
27 cp $OUT_DIR/$F_BASE.man
$EXP_DIR
32 rm $TMPF_OUT $TMPF_EXP