[cvs] bogofilter/tests/bogoutil run.sh,1.5,1.6
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2002-11-05 23:53:02
|
Update of /cvsroot/bogofilter/bogofilter/tests/bogoutil In directory usw-pr-cvs1:/tmp/cvs-serv2117/tests/bogoutil Modified Files: run.sh Log Message: Get rid of mktemp, use mkdir. Index: run.sh =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/tests/bogoutil/run.sh,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** run.sh 23 Oct 2002 00:12:07 -0000 1.5 --- run.sh 5 Nov 2002 23:52:58 -0000 1.6 *************** *** 10,15 **** set -e ! tdir=`mktemp -d run.sh.$$.XXXXXXXXXX` ! trap "a=\$? ; rm -f -r $tdir && exit \$a" 0 1 2 3 15 inputfile="input-${num}" --- 10,20 ---- set -e ! while : ; do ! tdir=./checks.$$.`date +"%Y%m%dT%H%M%S"` ! mkdir $tdir && break ! sleep 1 ! done ! ! trap "rm -f -r $tdir" 0 1 2 3 15 inputfile="input-${num}" |