svn jetzt aber wirklich dazu
This commit is contained in:
parent
84b31d040b
commit
8a347b655e
1 changed files with 16 additions and 0 deletions
16
spielspass/count_svnchanges.sh
Normal file
16
spielspass/count_svnchanges.sh
Normal 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
|
||||
|
Loading…
Reference in a new issue