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/07/29 03:28:16 UTC

svn commit: r226321 - in /spamassassin/trunk/masses/rule-qa/automc: RUNME.after RUNME.before post-comments ruleqa.cgi scrape-bugzilla

Author: jm
Date: Thu Jul 28 18:28:14 2005
New Revision: 226321

URL: http://svn.apache.org/viewcvs?rev=226321&view=rev
Log:
automc stuff; first off, disable svn committing and publishing of rule results to BZ until bugs with picking up BZ-comment changes are fixed; secondly, porting -- you really have to love Solaris sometimes, it tries very hard to be sane but fails miserably

Modified:
    spamassassin/trunk/masses/rule-qa/automc/RUNME.after
    spamassassin/trunk/masses/rule-qa/automc/RUNME.before
    spamassassin/trunk/masses/rule-qa/automc/post-comments
    spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi
    spamassassin/trunk/masses/rule-qa/automc/scrape-bugzilla

Modified: spamassassin/trunk/masses/rule-qa/automc/RUNME.after
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/rule-qa/automc/RUNME.after?rev=226321&r1=226320&r2=226321&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/automc/RUNME.after (original)
+++ spamassassin/trunk/masses/rule-qa/automc/RUNME.after Thu Jul 28 18:28:14 2005
@@ -1,5 +1,6 @@
-#!/bin/sh
+#!/usr/bin/bash
 
+. /etc/profile
 cd /home/automc/svn/spamassassin/masses/rule-qa/automc ; . config
 exec >> LOG.after 2>&1
 set -x
@@ -8,9 +9,11 @@
 
 PATH=$PATH:/usr/local/bin
 
+date=date ; [ -x /opt/sfw/bin/gdate ] && date=gdate
+
 $SADIR/masses/rule-qa/corpus-hourly
 
-today=`date +"%Y%m%d"`
+today=`$date +"%Y%m%d"`
 mkdir -p $html/$today
 cp -p $html/*.* $html/$today
 date

Modified: spamassassin/trunk/masses/rule-qa/automc/RUNME.before
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/rule-qa/automc/RUNME.before?rev=226321&r1=226320&r2=226321&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/automc/RUNME.before (original)
+++ spamassassin/trunk/masses/rule-qa/automc/RUNME.before Thu Jul 28 18:28:14 2005
@@ -1,10 +1,14 @@
-#!/bin/sh
+#!/usr/bin/bash
 
+. /etc/profile
 cd /home/automc/svn/spamassassin/masses/rule-qa/automc ; . config
 
+date=date ; [ -x /opt/sfw/bin/gdate ] && date=gdate
+egrep=egrep ; [ -x /usr/sfw/bin/gegrep ] && egrep=gegrep
+
 # ensure we're running on or after 0830 UTC, because cron can't; it's
 # in a different timezone, and we have daylight savings to contend with
-if TZ=UTC date | egrep -q '^... ... .. (03|04|05|06|07|09|10|11|12|13):'; then
+if TZ=UTC $date | $egrep -q '^... ... .. (03|04|05|06|07|09|10|11|12|13):'; then
   exit
 fi
 
@@ -17,12 +21,16 @@
 
 ./scrape-bugzilla
 cp 70_scraped.cf $SADIR/rules
-(
-  cd $SADIR/rules
-  svn commit \
-	--username $SVN_USERNAME \
-	--file $MCTMP/commit.msg 70_scraped.cf
-)
+
+if false                # OFF: do not commit anything to svn (Jul 28 2005 jm)
+then
+  (
+    cd $SADIR/rules
+    svn commit \
+         --username $SVN_USERNAME \
+         --file $MCTMP/commit.msg 70_scraped.cf
+  )
+fi
 
 # update the "tagtime" file; of course, we're not tagging, but it helps for
 # the corpus scripts

Modified: spamassassin/trunk/masses/rule-qa/automc/post-comments
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/rule-qa/automc/post-comments?rev=226321&r1=226320&r2=226321&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/automc/post-comments (original)
+++ spamassassin/trunk/masses/rule-qa/automc/post-comments Thu Jul 28 18:28:14 2005
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/local/perl586/bin/perl -w
 
 use URI::Escape;
 use XML::Simple;
@@ -12,7 +12,7 @@
 
 our $USERNAME = $conf{BZ_USERNAME};
 our $BZ_PASSWORD_FILE = $conf{BZ_PASSWORD_FILE};
-our $SEND_DATA = 1;
+our $SEND_DATA = 0;     # Jul 28 2005 jm: inhibit posting comments to bz
 
 our $boilerplate_header = "# [automatically generated by automc: start]\n";
 our $boilerplate_footer = "# [automatically generated by automc: end]\n";

Modified: spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi?rev=226321&r1=226320&r2=226321&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi (original)
+++ spamassassin/trunk/masses/rule-qa/automc/ruleqa.cgi Thu Jul 28 18:28:14 2005
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/local/perl586/bin/perl -w
 
 # my $automcdir = "/home/jm/ftp/spamassassin/masses/rule-qa/automc";
 my $automcdir = "/home/automc/svn/spamassassin/masses/rule-qa/automc";

Modified: spamassassin/trunk/masses/rule-qa/automc/scrape-bugzilla
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/rule-qa/automc/scrape-bugzilla?rev=226321&r1=226320&r2=226321&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/automc/scrape-bugzilla (original)
+++ spamassassin/trunk/masses/rule-qa/automc/scrape-bugzilla Thu Jul 28 18:28:14 2005
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/local/perl586/bin/perl -w
 
 our $BZ_URI = 'http://bugzilla.spamassassin.org';