You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2005/08/09 04:04:17 UTC

svn commit: r230951 - /spamassassin/branches/3.1/masses/mk-baseline-results

Author: jm
Date: Mon Aug  8 19:04:16 2005
New Revision: 230951

URL: http://svn.apache.org/viewcvs?rev=230951&view=rev
Log:
get this a bit more hospitable to running outside of runGA

Modified:
    spamassassin/branches/3.1/masses/mk-baseline-results

Modified: spamassassin/branches/3.1/masses/mk-baseline-results
URL: http://svn.apache.org/viewcvs/spamassassin/branches/3.1/masses/mk-baseline-results?rev=230951&r1=230950&r2=230951&view=diff
==============================================================================
--- spamassassin/branches/3.1/masses/mk-baseline-results (original)
+++ spamassassin/branches/3.1/masses/mk-baseline-results Mon Aug  8 19:04:16 2005
@@ -1,12 +1,20 @@
 #!/bin/sh
 
 # set SCORESET
-. config
+# note: this script does not need to rely on the runGA setup
+[ -r config ] && . config
 
 if [ "x$1" != "x" ]; then
  SCORESET=$1
 fi
 
+# prime the pump -- there's a few generated files that we need.  This
+# avoids unsightly errors later on!
+(
+  make clean freqs
+  ./fp-fn-statistics > /dev/null 2>&1
+) > /dev/null 2>&1
+
 gen_fp_fn_report () {
   ./logs-to-c \
     --spam=spam-test.log \
@@ -47,3 +55,4 @@
 echo
 
 ( cd ../rules ; ls -l *.cf )
+