source: trunk/trac/cron.svnstat_htdocs @ 85

Last change on this file since 85 was 85, checked in by Jari Häkkinen, 16 years ago

Added cron script that is run within the trac environment to create an upto
date statistics for svnstat. The output is linked to from the svnstat wiki.
Fixes #29.

File size: 437 bytes
RevLine 
[85]1# $Id$
2
3SHELL=/bin/bash
4PATH=/sbin:/bin:/usr/sbin:/usr/bin
5MAILTO=jari@thep.lu.se
6HOME=/
7
8cd /export/home/trac/tracs/svnstat/htdocs/pristine_svnstat
9/usr/bin/svn diff -rHEAD > tmp.txt~
10/usr/bin/svn diff -rHEAD
11if [ -s "tmp.txt~" ]; then
12        /usr/bin/svn update
13  /export/home/jari/local/bin/svnstat -f \
14    -r /export/home/trac/tracs/svnstat/htdocs/pristine_svnstat \
15    -t /export/home/trac/tracs/svnstat/htdocs/svnstat
16fi
17rm tmp.txt~
Note: See TracBrowser for help on using the repository browser.