Author: quinlan
Date: Tue Jan 27 16:37:10 2004
New Revision: 6330
Modified:
incubator/spamassassin/trunk/masses/rule-qa/corpus-hourly
incubator/spamassassin/trunk/masses/rule-qa/corpus-nightly
Log:
update scripts for SVN
Modified: incubator/spamassassin/trunk/masses/rule-qa/corpus-hourly
==============================================================================
--- incubator/spamassassin/trunk/masses/rule-qa/corpus-hourly (original)
+++ incubator/spamassassin/trunk/masses/rule-qa/corpus-hourly Tue Jan 27 16:37:10 2004
@@ -3,7 +3,7 @@
# $HOME/.corpus should contain settings for these values:
#
# corpus=/home/corpus/corpus
-# tree=/home/corpus/cvs/spamassassin
+# tree=/home/corpus/svn/spamassassin
# tmp=/home/corpus/tmp
# tagtime=/home/corpus/log/tagtime
# html=/home/html/root/users/corpus
Modified: incubator/spamassassin/trunk/masses/rule-qa/corpus-nightly
==============================================================================
--- incubator/spamassassin/trunk/masses/rule-qa/corpus-nightly (original)
+++ incubator/spamassassin/trunk/masses/rule-qa/corpus-nightly Tue Jan 27 16:37:10 2004
@@ -2,7 +2,7 @@
# $HOME/.corpus should contain settings for these values:
#
-# tree=/home/corpus/cvs/spamassassin
+# tree=/home/corpus/svn/spamassassin
# username=joe
# password=xyzzy
@@ -31,14 +31,22 @@
# enter tree
cd $tree
-# random sleep
-perl -e 'sleep int(rand(600));'
+# find current revision
+if [ -n "$net" ]; then
+ rm -f weekly-versions.txt
+ wget http://rsync.spamassassin.org/weekly-versions.txt
+ revision=$(tail -1 weekly-versions.txt|awk '{print $2}')
+else
+ rm -f nightly-versions.txt
+ wget http://rsync.spamassassin.org/nightly-versions.txt
+ revision=$(tail -1 nightly-versions.txt|awk '{print $2}')
+fi
# update
set +e
retry=0
while true; do
- if cvs -z3 update -dP -r CURRENT_CORPORA_SUBMIT_VERSION; then
+ if svn update -r $revision; then
break;
fi
if [ $retry -eq 120 ]; then
Date: Tue Jan 27 16:37:10 2004
New Revision: 6330
Modified:
incubator/spamassassin/trunk/masses/rule-qa/corpus-hourly
incubator/spamassassin/trunk/masses/rule-qa/corpus-nightly
Log:
update scripts for SVN
Modified: incubator/spamassassin/trunk/masses/rule-qa/corpus-hourly
==============================================================================
--- incubator/spamassassin/trunk/masses/rule-qa/corpus-hourly (original)
+++ incubator/spamassassin/trunk/masses/rule-qa/corpus-hourly Tue Jan 27 16:37:10 2004
@@ -3,7 +3,7 @@
# $HOME/.corpus should contain settings for these values:
#
# corpus=/home/corpus/corpus
-# tree=/home/corpus/cvs/spamassassin
+# tree=/home/corpus/svn/spamassassin
# tmp=/home/corpus/tmp
# tagtime=/home/corpus/log/tagtime
# html=/home/html/root/users/corpus
Modified: incubator/spamassassin/trunk/masses/rule-qa/corpus-nightly
==============================================================================
--- incubator/spamassassin/trunk/masses/rule-qa/corpus-nightly (original)
+++ incubator/spamassassin/trunk/masses/rule-qa/corpus-nightly Tue Jan 27 16:37:10 2004
@@ -2,7 +2,7 @@
# $HOME/.corpus should contain settings for these values:
#
-# tree=/home/corpus/cvs/spamassassin
+# tree=/home/corpus/svn/spamassassin
# username=joe
# password=xyzzy
@@ -31,14 +31,22 @@
# enter tree
cd $tree
-# random sleep
-perl -e 'sleep int(rand(600));'
+# find current revision
+if [ -n "$net" ]; then
+ rm -f weekly-versions.txt
+ wget http://rsync.spamassassin.org/weekly-versions.txt
+ revision=$(tail -1 weekly-versions.txt|awk '{print $2}')
+else
+ rm -f nightly-versions.txt
+ wget http://rsync.spamassassin.org/nightly-versions.txt
+ revision=$(tail -1 nightly-versions.txt|awk '{print $2}')
+fi
# update
set +e
retry=0
while true; do
- if cvs -z3 update -dP -r CURRENT_CORPORA_SUBMIT_VERSION; then
+ if svn update -r $revision; then
break;
fi
if [ $retry -eq 120 ]; then