[Popcon-commits] cvs commit to popularity-contest by pere

pere at cvs.alioth.debian.org pere at cvs.alioth.debian.org
Sat Jul 23 22:53:35 UTC 2005


Update of /cvsroot/popcon/popularity-contest
In directory haydn:/tmp/cvs-serv23635

Modified Files:
	popcon-process.sh 
Log Message:
Store logs in a log directory.


Index: popcon-process.sh
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/popcon-process.sh,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- popcon-process.sh	5 Jul 2005 13:54:55 -0000	1.9
+++ popcon-process.sh	23 Jul 2005 22:53:33 -0000	1.10
@@ -3,6 +3,7 @@
 BASEDIR=/org/popcon.debian.org/popcon-mail
 MAILDIR=../Mail
 WEBDIR=../www
+LOGDIR=$BASEDIR/logs
 
 set -e
 cd $BASEDIR
@@ -13,13 +14,13 @@
 chmod go-rwx $MAILDIR/survey
 
 # process entries
-./prepop.pl <new-popcon-entries >prepop.out 2>&1
+./prepop.pl <new-popcon-entries >$LOGDIR/prepop.out 2>&1
 
 # delete outdated entries
 rm -f results
 find popcon-entries -type f -mtime +20 -print0 | xargs -0 rm -f --
 find popcon-entries -type f | xargs cat \
-        | nice -15 ./popanal.py >popanal.out 2>&1
+        | nice -15 ./popanal.py >$LOGDIR/popanal.out 2>&1
 cp results $WEBDIR/all-popcon-results.txt
 gzip -f $WEBDIR/all-popcon-results.txt
 cp $WEBDIR/all-popcon-results.txt.gz all-popcon-results/popcon-`date +"%Y-%m-%d"`.gz
@@ -28,4 +29,4 @@
 find ../popcon-mail/all-popcon-results -type f -print | sort |./popcon-stat.pl
 
 cd ../popcon-web
-./popcon.pl >popcon.log
+./popcon.pl >$LOGDIR/popcon.log




More information about the Popcon-commits mailing list