Re: Cron script
Sam Ruby <[email protected]> Fri, 27 Dec 2002 17:33:38 -0500
| Newsgroups | gmane.comp.jakarta.alexandria.devel |
|---|---|
| Message-ID | <[email protected]> |
Nick Chalko wrote:
>
> A couple of questions. What is the <XMP> tag for.
XMP is just like PRE, with the exception that the content may include
"<" and ">" signs. Deprecated, discouraged, but still works.
> nag.pl refers to dated runs of gump.
>
> I am also interested in how you manage your "dated" runs.
I build on my machine, upload the gump-log, and then post it on
cvs.apache.org. Here's the relevant portion of the perl script that
runs on cvs.apache.org:
($sec,$min,$hour,$mday,$mon,$year) = localtime;
$date=sprintf("%d-%2.2d-%2.2d", $year+1900, $mon+1, $mday);
chdir "/www/cvs.apache.org/builds/gump";
rmtree $date, 1, 1 if -d $date;
mkdir "$date", 0775;
system "unzip -q -j -d $date /home/rubys/staging/gump-log.zip";
unlink "latest";
symlink "$date", "latest";
unlink "/home/rubys/staging/gump-log.zip";
$count=0;
foreach (reverse sort <20??-*>) {
next if $count++<7
system "tar czf Attic/$_.tar.gz $_";
rmtree $_, 1, 1;
}
- Sam Ruby