diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | sh/eci.sh | 20 |
2 files changed, 21 insertions, 10 deletions
@@ -40,3 +40,14 @@ Hey ! check right thing File changes : M sh/eci.sh + +beber from guybrush.melee : 13/10/05 00:39:28 +Ahaha ! there's bug : +Do cd at root of project +check right things for cksum +avoid bad ; +Only check the find --This ....-- +style + +File changes : +M sh/eci.sh @@ -1,10 +1,12 @@ -#!/bin/sh +#!/bin/sh -x TMPFILE="/tmp/.eci.$RANDOM" touch $TMPFILE chmod 600 $TMPFILE +cd $HOME/dev/espik + echo " --This line and thoses under will be ignored-- $(svn st) @@ -17,24 +19,22 @@ $EDITOR $TMPFILE SUM_NEW=$(cksum $TMPFILE | awk '{print $1}') -if [[ $SUM_ORI -eq $SUN_NEW ]] ; -then +if [[ $SUM_ORI -eq $SUN_NEW ]]; then echo "Enter something !" + rm -f $TMPFILE 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 - -cd $HOME/dev/espik +DELCOMMENTFROM=$(grep -n -- '--This line and thoses under will be ignored--' $TMPFILE | head -n 1 | cut -d ':' -f 1) +head -n $(($DELCOMMENTFROM-1)) $TMPFILE > ${TMPFILE}.send echo " $USER from $(hostname -f) : $(date "+%d/%m/%y %X") -$(cat $TMPFILE.send) +$(cat ${TMPFILE}.send) File changes : $(svn st | grep -v '^?')" >> $HOME/dev/espik/ChangeLog -svn ci -m "$(cat $TMPFILE.send)" +svn ci -m "$(cat ${TMPFILE}.send)" -rm -f $TMPFILE $TMPFILE.send +rm -f $TMPFILE ${TMPFILE}.send |