nummerierte commits

This commit is contained in:
Enno Rehling 2002-01-02 13:17:04 +00:00
parent e6c3c9de4a
commit 4e2566c933

View file

@ -5,7 +5,8 @@ NEWFILE="/tmp/commit.source.$$"
OLDFILE="/tmp/commit.source.last" OLDFILE="/tmp/commit.source.last"
BUILDNO=0 BUILDNO=0
BUILDFILE="/home/cvs/.build/eressea-source" BUILDLOG="/home/cvs/.build/eressea-source.log"
BUILDFILE="/home/cvs/.build/eressea-source.no"
if [ -e $BUILDFILE ]; then if [ -e $BUILDFILE ]; then
BUILDNO=`cat $BUILDFILE` BUILDNO=`cat $BUILDFILE`
fi fi
@ -26,6 +27,12 @@ echo "Old md5sum=$OLDMD5"
if [ $NEWMD5 != $OLDMD5 ]; then if [ $NEWMD5 != $OLDMD5 ]; then
let BUILDNO=$BUILDNO+1 let BUILDNO=$BUILDNO+1
echo $BUILDNO >| $BUILDFILE echo $BUILDNO >| $BUILDFILE
(
echo
echo -n "[commit $BUILDNO] $WHO"
date
cat $NEWFILE
) >> $BUILDLOG
mailx -s "[commit $BUILDNO] eressea-source by $WHO" $NOTIFY < $NEWFILE mailx -s "[commit $BUILDNO] eressea-source by $WHO" $NOTIFY < $NEWFILE
echo "New log message. Sent out notification" echo "New log message. Sent out notification"
else else