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 2006/11/16 20:18:33 UTC

svn commit: r475881 - /spamassassin/trunk/masses/rule-qa/corpus-nightly

Author: jm
Date: Thu Nov 16 11:18:33 2006
New Revision: 475881

URL: http://svn.apache.org/viewvc?view=rev&rev=475881
Log:
update corpus-nightly with reliability, usability and error-checking improvements

Modified:
    spamassassin/trunk/masses/rule-qa/corpus-nightly

Modified: spamassassin/trunk/masses/rule-qa/corpus-nightly
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/rule-qa/corpus-nightly?view=diff&rev=475881&r1=475880&r2=475881
==============================================================================
--- spamassassin/trunk/masses/rule-qa/corpus-nightly (original)
+++ spamassassin/trunk/masses/rule-qa/corpus-nightly Thu Nov 16 11:18:33 2006
@@ -37,7 +37,14 @@
 fi
 
 # enter tree
-cd $tree
+if [ -d $tree ] ; then 
+  cd $tree
+else
+  echo "$tree does not exist yet. you need to check it out first" 1>&2
+  exit 2
+fi
+
+[ -d $tmp ] || mkdir -p $tmp
 
 # find current revision
 rm -f weekly-versions.txt nightly-versions.txt
@@ -56,6 +63,7 @@
 fi
 
 # update
+# TODO: replace all this with rsync, it's much safer ;)
 set +e
 retry=0
 while true; do
@@ -104,6 +112,8 @@
 rm -f spamassassin/auto*
 rm -f spamassassin/bayes*
 rm -f razor-agent.log
+[ -d spamassassin ] || mkdir spamassassin
+
 if [ -n "$net" ]; then
 	prefs=$prefs_weekly
 	opts=$opts_weekly