Date: Friday November 10, 2000 @ 21:31 Author: ahn Update of /home/netrek/cvsroot/Vanilla/robots In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv10988/robots Modified Files: end_tourney.pl Log Message: Add autoarchiver. **************************************** Index: Vanilla/robots/end_tourney.pl diff -u Vanilla/robots/end_tourney.pl:1.11 Vanilla/robots/end_tourney.pl:1.12 --- Vanilla/robots/end_tourney.pl:1.11 Mon Jul 17 13:46:59 2000 +++ Vanilla/robots/end_tourney.pl Fri Nov 10 21:31:07 2000 @@ -1,6 +1,6 @@ #!/usr/bin/env perl # -# $Id: end_tourney.pl,v 1.11 2000/07/17 18:46:59 ahn Exp $ +# $Id: end_tourney.pl,v 1.12 2000/11/11 03:31:07 ahn Exp $ # # end_tourney.pl # @@ -9,6 +9,19 @@ # # Generates PWstats and others from an ltd_stats file. # Mails stats to statboys if REGISTER was used. + +###################################################################### +# NEW FEATURE: There is a central stats archive at +# http://www.netrek.org/stats/ +# +# By default, all stats are automatically archived there via the +# auto-archive.pl script. YOU SHOULD EDIT auto-archive.pl to +# work under your environment. +# +# The auto-archiving is independent of the statboy email for +# registered games and the $dropdir features below. +###################################################################### + # # usage: end_tourney.pl [-register] [ID] # If "ID" exists, will open "ltd_stats.<ID>", else will open ltd_stats. @@ -78,6 +91,12 @@ &computescore; &printstdout; &printstats; + +# Run the auto-archiver after pwstats have been generated. +# Stats are sent immediately while the cambot file is sent +# in the background. + +system("./auto-archive.pl $id"); $hometeam =~ s/[\`\"\']//g; $awayteam =~ s/[\`\"\']//g;