[cig-commits] r6979 - cs/stats/trunk

sue at geodynamics.org sue at geodynamics.org
Sat May 26 16:38:08 PDT 2007


Author: sue
Date: 2007-05-26 16:38:07 -0700 (Sat, 26 May 2007)
New Revision: 6979

Modified:
   cs/stats/trunk/get_users
Log:
Make the get_users script look at the current month, not Jan 2006, for the list of packages.

Modified: cs/stats/trunk/get_users
===================================================================
--- cs/stats/trunk/get_users	2007-05-26 23:37:21 UTC (rev 6978)
+++ cs/stats/trunk/get_users	2007-05-26 23:38:07 UTC (rev 6979)
@@ -1,6 +1,8 @@
 rm -f users
 rm -f institutions
-for p in `ls *_Jan_2006`; do
+current_month=`date +%b`
+current_year=`date +%G`
+for p in `ls *_$current_month_$current_year`; do
     project=`echo $p | rev | cut -d _ -f 3- | rev`
     rm -f ${project}_users ${project}_institutions ${project}_total_users
     for year in `cat years`; do



More information about the cig-commits mailing list