You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by do...@apache.org on 2007/09/24 22:40:10 UTC
svn commit: r578954 - in
/spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen:
add-hitless-active-to-freqs do-nightly-rescore-example extract-new-scores
generate-new-scores lock-scores masses-Makefile.patch merge-scoresets
Author: dos
Date: Mon Sep 24 13:39:43 2007
New Revision: 578954
URL: http://svn.apache.org/viewvc?rev=578954&view=rev
Log:
add license text to the scripts; this stuff is nearly ready/able to be moved out of my sandbox... a few more path dependent things remain
Modified:
spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/add-hitless-active-to-freqs
spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/do-nightly-rescore-example
spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/extract-new-scores
spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/generate-new-scores
spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/lock-scores
spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/masses-Makefile.patch
spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/merge-scoresets
Modified: spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/add-hitless-active-to-freqs
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/add-hitless-active-to-freqs?rev=578954&r1=578953&r2=578954&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/add-hitless-active-to-freqs (original)
+++ spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/add-hitless-active-to-freqs Mon Sep 24 13:39:43 2007
@@ -1,5 +1,22 @@
#!/usr/bin/perl
+# <@LICENSE>
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# </...@LICENSE>
+
use strict;
use warnings;
Modified: spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/do-nightly-rescore-example
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/do-nightly-rescore-example?rev=578954&r1=578953&r2=578954&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/do-nightly-rescore-example (original)
+++ spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/do-nightly-rescore-example Mon Sep 24 13:39:43 2007
@@ -1,5 +1,22 @@
#!/bin/bash
+# <@LICENSE>
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# </...@LICENSE>
+
cd /home/dos/sa-score-gen/nightly-rescore-via-cron
rm -rf scores scores-set0 scores-set1 scores-set2 scores-set3 stats-set0 stats-set1 stats-set2 stats-set3
svn up
Modified: spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/extract-new-scores
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/extract-new-scores?rev=578954&r1=578953&r2=578954&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/extract-new-scores (original)
+++ spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/extract-new-scores Mon Sep 24 13:39:43 2007
@@ -1,5 +1,22 @@
#!/usr/bin/perl
+# <@LICENSE>
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# </...@LICENSE>
+
use strict;
use warnings;
Modified: spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/generate-new-scores
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/generate-new-scores?rev=578954&r1=578953&r2=578954&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/generate-new-scores (original)
+++ spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/generate-new-scores Mon Sep 24 13:39:43 2007
@@ -35,14 +35,16 @@
exit
fi
-date
-echo "[ rsyncing logs ]"
-
# prep current nightly mass-check logs
if [ ! -e corpus ]; then
- mkdir corpus
+ echo "[ creating corpus directory ]"
+ mkdir corpus || exit $?
fi
-rsync -artvz $RSYNC_USERNAME@rsync.spamassassin.org::corpus/*.log corpus || exit $?
+
+date
+echo "[ rsyncing logs ]"
+
+rsync -artvz $RSYNC_USERNAME@rsync.spamassassin.org::corpus/*.log corpus/. || exit $?
date
echo "[ selecting log files to use for scoreset $SCORESET ]"
Modified: spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/lock-scores
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/lock-scores?rev=578954&r1=578953&r2=578954&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/lock-scores (original)
+++ spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/lock-scores Mon Sep 24 13:39:43 2007
@@ -2,12 +2,29 @@
# locks the score ranges for the base release rules to their original scores
# from 50_scores.cf
-
+#
# if called with a 1 parameter new rules that aren't in the most current copy
# of the active.list file will be locked to zero so that the GA can ignore
# rules that aren't in the most current update (this is used for zeroing rules
# found in the weekly net checks that are no longer in the nightly non-net
# checks which 6 of 7 updates a week are based on)
+#
+# <@LICENSE>
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# </...@LICENSE>
use strict;
use warnings;
Modified: spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/masses-Makefile.patch
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/masses-Makefile.patch?rev=578954&r1=578953&r2=578954&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/masses-Makefile.patch (original)
+++ spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/masses-Makefile.patch Mon Sep 24 13:39:43 2007
@@ -1,3 +1,20 @@
+# <@LICENSE>
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# </...@LICENSE>
+
Index: Makefile
===================================================================
--- masses/Makefile (revision 529172)
Modified: spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/merge-scoresets
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/merge-scoresets?rev=578954&r1=578953&r2=578954&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/merge-scoresets (original)
+++ spamassassin/rules/trunk/sandbox/dos/new-rule-score-gen/merge-scoresets Mon Sep 24 13:39:43 2007
@@ -1,10 +1,27 @@
#!/usr/bin/perl
# merges the scores found in score-setN into a single scores file
-
+#
# if called with a score set parameter N, only rules that appear in
# that score-setN file will be used (score lines for rules only found
# in other score-set files will be ignored)
+#
+# <@LICENSE>
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# </...@LICENSE>
use strict;
use warnings;