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/12/06 03:37:01 UTC
svn commit: r354262 - in /spamassassin/trunk/build/automc:
populate_cor_nightly run_nightly
Author: jm
Date: Mon Dec 5 18:36:59 2005
New Revision: 354262
URL: http://svn.apache.org/viewcvs?rev=354262&view=rev
Log:
add nightly scripts for zone
Added:
spamassassin/trunk/build/automc/populate_cor_nightly (with props)
spamassassin/trunk/build/automc/run_nightly (with props)
Added: spamassassin/trunk/build/automc/populate_cor_nightly
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/build/automc/populate_cor_nightly?rev=354262&view=auto
==============================================================================
--- spamassassin/trunk/build/automc/populate_cor_nightly (added)
+++ spamassassin/trunk/build/automc/populate_cor_nightly Mon Dec 5 18:36:59 2005
@@ -0,0 +1,43 @@
+#!/usr/bin/perl
+#
+# create "targets" files for the mass-check corpora on the zone
+# TODO: mass-check should be smart enough to work this out itself
+
+use strict;
+use warnings;
+
+my $SADIR="/home/automc/svn/spamassassin";
+
+# both of these must be writable
+my $TGTS_DIR = "/home/bbmass/mc-nightly";
+my $RAWCOR_DIR = "/home/bbmass/rawcor";
+
+if (!-d $TGTS_DIR) {
+ mkdir ($TGTS_DIR) or die "cannot create $TGTS_DIR";
+}
+
+chdir ($RAWCOR_DIR) or die "cd $RAWCOR_DIR failed";
+
+foreach my $submitter (<*>) {
+ next unless (-d $submitter);
+
+ $submitter =~ s,[^A-Za-z0-9],,gs;
+
+ open (OUT, ">$TGTS_DIR/targets.$submitter")
+ or warn "cannot write to $TGTS_DIR/targets.$submitter";
+
+ foreach my $type (qw(ham spam))
+ {
+ foreach my $dir (<$submitter/*>) {
+ next unless (-d $dir);
+ print OUT "$type:dir:$dir\n";
+ }
+ foreach my $mbox (<$submitter/*.mbox>) {
+ next unless (-f $mbox);
+ print OUT "$type:mbox:$mbox\n";
+ }
+ }
+
+ close OUT or die "write failed";
+}
+
Propchange: spamassassin/trunk/build/automc/populate_cor_nightly
------------------------------------------------------------------------------
svn:executable = *
Added: spamassassin/trunk/build/automc/run_nightly
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/build/automc/run_nightly?rev=354262&view=auto
==============================================================================
--- spamassassin/trunk/build/automc/run_nightly (added)
+++ spamassassin/trunk/build/automc/run_nightly Mon Dec 5 18:36:59 2005
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# driver for nightly mass-checks on the zone.
+
+# add usernames who you want to do nightlies for here:
+nightly_users="
+ doc
+ zmi
+"
+
+# and where the $HOMEs are:
+nightly_trees="/home/bbmass/mc-nightly"
+
+for user in $nightly_users ; do
+ dir="$nightly_trees/$user"
+
+ echo "Starting corpus-nightly for $user ($dir)"
+
+ (
+ HOME=$dir
+ export HOME
+ $dir/svn/rule-qa/corpus-nightly
+ )
+
+done
+
Propchange: spamassassin/trunk/build/automc/run_nightly
------------------------------------------------------------------------------
svn:executable = *