diff options
author | beber <beber> | 2005-10-12 22:05:04 +0000 |
---|---|---|
committer | beber <beber> | 2005-10-12 22:05:04 +0000 |
commit | 97d0209ac18a6c32b70804889e11741c968730b9 (patch) | |
tree | 1d97bfb0d6ae5ac01c291df6df51fa3af6aa7261 | |
parent | $USER not USER (diff) | |
download | espik-97d0209ac18a6c32b70804889e11741c968730b9.tar.xz |
Yeah !
Check if Change Log have been changed or not
And rempli ce putain de File Changed
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | sh/eci.sh | 15 |
2 files changed, 21 insertions, 2 deletions
@@ -4,3 +4,11 @@ $USER not USER File changes : + +beber : 10/13/05 00:05:03 +Yeah ! +Check if Change Log have been changed or not +And rempli ce putain de File Changed + +File changes : +M sh/eci.sh @@ -8,8 +8,19 @@ chmod 600 $TMPFILE echo " --This line and thoses under will be ignored-- $(svn st)" >> $TMPFILE + +SUM_ORI=$(cksum $TMPFILE | awk '{print $1}') + $EDITOR $TMPFILE +SUM_NEW=$(cksum $TMPFILE | awk '{print $1}') + +if [[ $SUM -ne $SUN_NEW ]] ; +then + echo "Enter something !" + exit -1 +fi + DELCOMMENTFROM=$(grep -n -- '--This line and thoses under will be ignored--' $TMPFILE | cut -d ':' -f 1) head -n $(($DELCOMMENTFROM-1)) $TMPFILE > $TMPFILE.send @@ -20,8 +31,8 @@ $USER : $(date "+%D %X") $(cat $TMPFILE.send) File changes : -$(svn st | grep -vE '^?')" >> $HOME/dev/espik/ChangeLog +$(svn st | grep -v '^?')" >> $HOME/dev/espik/ChangeLog svn ci -m "$(cat $TMPFILE.send)" -rm $TMPFILE $TMPFILE.send +rm -f $TMPFILE $TMPFILE.send |