[cvs] bogofilter/tests t.systest,1.5,1.6
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2002-11-24 20:56:25
|
Update of /cvsroot/bogofilter/bogofilter/tests In directory sc8-pr-cvs1:/tmp/cvs-serv24074 Modified Files: t.systest Log Message: Change variable name $pfx to $REFDER and use "basename" command for separating file name from path. Index: t.systest =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/tests/t.systest,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- t.systest 23 Nov 2002 18:42:54 -0000 1.5 +++ t.systest 24 Nov 2002 20:56:22 -0000 1.6 @@ -71,9 +71,8 @@ rm -f ${TMPDIR}/bogofilter.cf -pfx=$srcdir/t.systest.d/outputs -for i in $pfx/*v ; do - # SunOS /bin/sh does not like ${i##$pfx/} - j=`echo $i | sed "s'^$pfx/''"` +REFDIR=$srcdir/t.systest.d/outputs +for i in $REFDIR/*v ; do + j=`basename $i` cmp $i ${TMPDIR}/tests/$j done |