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

popcon-commits at lists.alioth.debian.org popcon-commits@lists.alioth.debian.org
Tue Jul 5 13:54:57 UTC 2005


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

Modified Files:
	popcon-process.sh 
Log Message:
Make it easier to change the directotry structure.


Index: popcon-process.sh
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/popcon-process.sh,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- popcon-process.sh	3 May 2005 18:17:08 -0000	1.8
+++ popcon-process.sh	5 Jul 2005 13:54:55 -0000	1.9
@@ -1,11 +1,16 @@
 #!/bin/sh
+
+BASEDIR=/org/popcon.debian.org/popcon-mail
+MAILDIR=../Mail
+WEBDIR=../www
+
 set -e
-cd /org/popcon.debian.org/popcon-mail
+cd $BASEDIR
 umask 0002
 # rotate files
-mv ../Mail/survey new-popcon-entries
-touch ../Mail/survey
-chmod go-rwx ../Mail/survey
+mv $MAILDIR/survey new-popcon-entries
+touch $MAILDIR/survey
+chmod go-rwx $MAILDIR/survey
 
 # process entries
 ./prepop.pl <new-popcon-entries >prepop.out 2>&1
@@ -15,9 +20,9 @@
 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
-cp results ../www/all-popcon-results.txt
-gzip -f ../www/all-popcon-results.txt
-cp ../www/all-popcon-results.txt.gz all-popcon-results/popcon-`date +"%Y-%m-%d"`.gz
+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
 cd ../popcon-stat
 
 find ../popcon-mail/all-popcon-results -type f -print | sort |./popcon-stat.pl





More information about the Popcon-commits mailing list