aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeber <beber>2005-10-12 22:05:04 +0000
committerbeber <beber>2005-10-12 22:05:04 +0000
commit97d0209ac18a6c32b70804889e11741c968730b9 (patch)
tree1d97bfb0d6ae5ac01c291df6df51fa3af6aa7261
parent$USER not USER (diff)
downloadespik-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--ChangeLog8
-rw-r--r--sh/eci.sh15
2 files changed, 21 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c3a6753..c58efd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/sh/eci.sh b/sh/eci.sh
index 4f1e317..ba02856 100644
--- a/sh/eci.sh
+++ b/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