apache-tuscany/sandbox/lresende/etc/download-script
lresende d134d725ec Minor typo fix
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@800003 13f79535-47bb-0310-9956-ffa450edef68
2009-08-02 07:52:16 +00:00
..
all-report.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
cpp-report.sh Updating download scripts 2009-07-26 07:24:35 +00:00
cpp_sca-m1.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
cpp_sca-m2.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
cpp_sca-m3.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
cpp_sdo-m1.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
cpp_sdo-m2.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
cpp_sdo-m3.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
das-beta1.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
das-beta2.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
das-m2.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
das-report.sh Updating download scripts 2009-07-26 07:24:35 +00:00
README Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sca-11.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sca-12.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sca-13.sh Adding download scripts for recent tuscany releases 2008-10-28 17:44:38 +00:00
sca-090.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sca-091.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sca-099.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sca-100.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sca-101.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sca-121.sh updates to download scripts 2008-07-27 23:53:14 +00:00
sca-131.sh Adding download scripts for recent tuscany releases 2008-10-28 17:44:38 +00:00
sca-132.sh Adding download scripts for recent tuscany releases 2008-10-28 17:44:38 +00:00
sca-m2.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sca-report.sh Minor typo fix 2009-08-02 07:52:16 +00:00
sdo-1.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sdo-11.sh updates to download scripts 2008-07-27 23:53:14 +00:00
sdo-111.sh updates to download scripts 2008-07-27 23:53:14 +00:00
sdo-beta1.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sdo-m2.sh Move Tuscany from Incubator to top level. 2008-06-17 00:23:01 +00:00
sdo-report.sh Updating download scripts 2009-07-26 07:24:35 +00:00

These are set of scripts used to count the release downloads from apache http stat logs.

1.Where to download the http stat logs from 
The logs are located in people.apache.org under x1/logarchive/people/<year>/<month>/??.bz2
I usually download them on a folder structure like : <year>/<month>

2.Get ready to process the scripts
Unzip the log files
   >bunzip2 ??.bz2
Concatenate together all the logs from a given month
   >ls -1 | xargs -i -t cat {} >> ../<year>-<month>.log

3.Running the scripts
all-report.sh	- runs all the scripts
   >./all-reports.sh

???-report.sh	- runs reports for a given type of release/project (e.g cpp, sca, sdo, das)
   >./sca.report.sh


4.Adding a new month to be processed
Edit the ???-report.sh and add a new line for the new month as appropriated
   >./sca-099.sh 2007/2007-09.log >> sca-downloads.log

5.Adding a new project/release
Create a new script that filters the specific project/release
   >total=$(cat $1 | grep tuscany-das-1.0-incubating-beta1 | awk '{ print $2 }' | uniq | wc -l)
echo $1 $total

The update the other scripts to properly call this to process a given month