#!/bin/sh cd /home/automc/svn/spamassassin/masses/rule-qa/automc ; . config # 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 exit fi mv LOG.before LOG.before.old exec > LOG.before 2>&1 set -x PATH=$PATH:/usr/local/bin rm -rf $MCTMP; mkdir -p $MCTMP ./scrape-bugzilla cp 70_scraped.cf $SADIR/rules ( cd $SADIR/rules svn commit \ --username $SVN_USERNAME \ --file $MCTMP/commit.msg 70_scraped.cf ) # update the "tagtime" file; of course, we're not tagging, but it helps for # the corpus scripts touch $tagtime # and remove the flag file that indicates that the comment-posting step # should be inhibited later rm -f $MCTMP/comments-posted # and discard the old logfile mv LOG.after LOG.after.old