[cvs] bogofilter/src/tests t.frame,1.12,1.12.20.1
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <gy...@us...> - 2003-07-11 04:01:38
|
Update of /cvsroot/bogofilter/bogofilter/src/tests In directory sc8-pr-cvs1:/tmp/cvs-serv9243/src/tests Modified Files: Tag: datastore_tdb t.frame Log Message: try to determine correct database file extension Index: t.frame =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/tests/t.frame,v retrieving revision 1.12 retrieving revision 1.12.20.1 diff -u -d -r1.12 -r1.12.20.1 --- t.frame 2 Jun 2003 18:22:15 -0000 1.12 +++ t.frame 11 Jul 2003 04:01:35 -0000 1.12.20.1 @@ -13,6 +13,11 @@ : ${relpath=..} : ${BF_TESTDIR=.} + +DB_EXT=`${relpath}/bogofilter -V 2>&1|sed -n 's/^.*(database: \(.*\))/\1/p'` +test -z "$DB_EXT" && { echo >&2 'Cannot get database type!'; exit 1; } +export DB_EXT + # Cater for GNU coreutils "compatiblity" _POSIX2_VERSION=199209 export _POSIX2_VERSION |