svn jetzt aber wirklich dazu

This commit is contained in:
age 2006-07-20 20:36:49 +00:00
parent 84b31d040b
commit 8a347b655e

View file

@ -0,0 +1,16 @@
#!/bin/sh
set -e
SVNPATH="/data/repos/"
STATS[0]="svn Aenderungen:\n"
i=1
for svn in `ls ${SVNPATH}`; do
countnew=`cut -d " " -f1 ${svn}/db/current`
countold=`cut -d " " -f1 ${svn}/db/current.old`
changes=$[${countnew}-${countold}]
STATS[$i]="\t${changes}\t${svn}\n"
((i++))
cp ${svn}/db/current ${svn}/db/current.old
done
#echo -e ${STATS[@]}
echo -e ${STATS[@]} | mail -s "[counter] aktuelle Aenderungen" svn@admin.systemausfall.org