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 2007/09/26 13:46:47 UTC
svn commit: r579612 - /spamassassin/trunk/masses/rule-qa/nightly-slave-start
Author: jm
Date: Wed Sep 26 04:46:44 2007
New Revision: 579612
URL: http://svn.apache.org/viewvc?rev=579612&view=rev
Log:
when starting a slave, source /etc/profile to get custom local PATH setting, and rebuild SA blib from source
Modified:
spamassassin/trunk/masses/rule-qa/nightly-slave-start
Modified: spamassassin/trunk/masses/rule-qa/nightly-slave-start
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/rule-qa/nightly-slave-start?rev=579612&r1=579611&r2=579612&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/nightly-slave-start (original)
+++ spamassassin/trunk/masses/rule-qa/nightly-slave-start Wed Sep 26 04:46:44 2007
@@ -22,11 +22,24 @@
[ "$clienttree" = "" ] && clienttree=tree
-ssh $host rm -rf $clienttree \; mkdir $clienttree
-ssh $host cd $clienttree \; tar xfz - < $tmp/tf
-# TODO: should we do a fresh build?
+ssh $host \
+ rm -rf $clienttree \; \
+ mkdir $clienttree \; \
+ cd $clienttree \; \
+ tar xfz - < $tmp/tf
+
+# source /etc/profile to get a full $PATH, including /usr/local/bin
+# (some hosts need to use /usr/local/bin/perl instead of /usr/bin/perl).
+# rebuild to compile the blib modules for this platform.
+
+ssh $host \
+ . /etc/profile \; \
+ perl Makefile.PL \; \
+ make clean \; \
+ perl Makefile.PL \; \
+ make < /dev/null
-# --noisy so we get sent/rcvd byte counts
ssh -f $host cd $clienttree/masses \; \
- TZ=UTC ./mass-check --noisy --cs_ssl --client $serverhost &
+ . /etc/profile \; \
+ TZ=UTC ./mass-check --cs_ssl --cs_verbose --client $serverhost &