[Popcon-commits] cvs commit to popularity-contest by pere
pere at cvs.alioth.debian.org
pere at cvs.alioth.debian.org
Sat Jul 23 23:00:15 UTC 2005
Update of /cvsroot/popcon/popularity-contest
In directory haydn:/tmp/cvs-serv23896
Modified Files:
popcon-process.sh
Log Message:
Move scripts into a bin/ directory, to make it easier to set up a new
popcon receiver from scratch.
Index: popcon-process.sh
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/popcon-process.sh,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- popcon-process.sh 23 Jul 2005 22:53:59 -0000 1.11
+++ popcon-process.sh 23 Jul 2005 23:00:12 -0000 1.12
@@ -4,6 +4,7 @@
MAILDIR=../Mail
WEBDIR=../www
LOGDIR=$BASEDIR/../logs
+BINDIR=$BASEDIR/../bin
set -e
cd $BASEDIR
@@ -14,19 +15,20 @@
chmod go-rwx $MAILDIR/survey
# process entries
-./prepop.pl <new-popcon-entries >$LOGDIR/prepop.out 2>&1
+$BINDIR/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 >$LOGDIR/popanal.out 2>&1
+ | nice -15 $BINDIR/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
-cd ../popcon-stat
-find ../popcon-mail/all-popcon-results -type f -print | sort |./popcon-stat.pl
+cd ../popcon-stat
+find ../popcon-mail/all-popcon-results -type f -print | sort | \
+ $BINDIR/popcon-stat.pl
cd ../popcon-web
-./popcon.pl >$LOGDIR/popcon.log
+$BINDIR/popcon.pl >$LOGDIR/popcon.log
More information about the Popcon-commits
mailing list