home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff319.lzh
/
CNewsSrc
/
cnews.orig.lzh
/
expire
/
dircheck
next >
Wrap
Text File
|
1989-06-27
|
516b
|
33 lines
#! /bin/sh
# dircheck -- checker for expire regression testing
case "$1" in
-n) invert=yes ; shift ;;
esac
for f in `sed 's/.* //;s/\./\//g'`
do
if test " $invert" = " "
then
if test ! -f $1/$f
then
echo "cannot find $1/$f" >&2
exit 1
fi
it="`cat $1/$f`"
if test " $it" = " $f" || expr " $it" : ".*:$f:.*" >/dev/null
then
: okay
else
echo "contents of $1/$f are wrong" >&2
exit 1
fi
else
if test -f $1/$f
then
echo "found $1/$f, shouldn't have" >&2
exit 1
fi
fi
done