[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:09:04 UTC 2005


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

Modified Files:
	popcon-process.sh 
Log Message:
New variable DATADIR pointing to individual entries.


Index: popcon-process.sh
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/popcon-process.sh,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- popcon-process.sh	23 Jul 2005 23:07:08 -0000	1.14
+++ popcon-process.sh	23 Jul 2005 23:09:02 -0000	1.15
@@ -5,6 +5,7 @@
 WEBDIR=../www
 LOGDIR=$BASEDIR/../logs
 BINDIR=$BASEDIR/../bin
+DATADIR=$BASEDIR/popcon-entries
 SUMMARYDIR=$BASEDIR/all-popcon-results
 
 # Remove entries older than # number of days
@@ -23,8 +24,8 @@
 
 # delete outdated entries
 rm -f results
-find popcon-entries -type f -mtime +$DAYLIMIT -print0 | xargs -0 rm -f --
-find popcon-entries -type f | xargs cat \
+find $DATADIR -type f -mtime +$DAYLIMIT -print0 | xargs -0 rm -f --
+find $DATADIR -type f | xargs cat \
         | nice -15 $BINDIR/popanal.py >$LOGDIR/popanal.out 2>&1
 cp results $WEBDIR/all-popcon-results.txt
 gzip -f $WEBDIR/all-popcon-results.txt




More information about the Popcon-commits mailing list