I was noticing that the previous nightly/weekly run commands I was running:

cd spamassassin-head
rm -f rules/*
svn up
build/mkrules --src rulesrc --out rules

wasn't working anymore since the code rules moved into a different dir, which
includes the 70_testing.cf file and such.  So what I'm hoping will continue to
work from this point on is:

cd spamassassin-head
rm -f rules/*
svn up
build/mkrules --out rules

and let mkrules figure out that there's a rulescode, a rulesrc, and any
bunch of other ones that need using by default.

FYI.


On Fri, Oct 14, 2005 at 11:38:21AM -0000, [EMAIL PROTECTED] wrote:
> --- spamassassin/trunk/build/mkrules (original)
> +++ spamassassin/trunk/build/mkrules Fri Oct 14 04:38:19 2005
> @@ -33,6 +33,15 @@
>  use vars qw(@opt_srcs $opt_out);
>  GetOptions("src=s" => [EMAIL PROTECTED], "out=s");
>  
> +if ([EMAIL PROTECTED]) {
> +  foreach ( 'rulescode', 'rulesrc' ) {
> +    if (-d $_) {
> +      print "using default src $_\n";
> +      push(@opt_srcs, $_);
> +    }
> +  }
> +}
> +
>  die "no src" unless (@opt_srcs >= 1);
>  die "no out" unless ($opt_out);
>  die "unreadable out" unless (-d $opt_out);
> 

-- 
Randomly Generated Tagline:
All must be held accountable, but don't quote me on that.

Attachment: pgpv57PFJcexA.pgp
Description: PGP signature

Reply via email to