aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorbeber <beber>2006-01-17 10:16:39 +0000
committerbeber <beber>2006-01-17 10:16:39 +0000
commit52f08335831312571c1a0dbbc782cd5a5172825c (patch)
tree02f0553c670416719d8c38f0855f0cd0dfbb1c8c /sh
parentMore beautiful (diff)
downloadespik-52f08335831312571c1a0dbbc782cd5a5172825c.tar.xz
and better
Diffstat (limited to 'sh')
-rw-r--r--sh/eci.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/sh/eci.sh b/sh/eci.sh
index 781d1d8..bc3a10f 100644
--- a/sh/eci.sh
+++ b/sh/eci.sh
@@ -49,11 +49,17 @@ fi
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
+SVN_ST=$(svn st | grep -v '^?')
+ADDED_FILES=$(echo $SVN_ST | grep '^A' | awk '{print "+"$2}' | tr -d '\n')
+MODIFIED_FILES=$(echo $SVN_ST | grep '^M' | awk '{print $2}' | tr -d '\n')
+DELETED_FILES=$(echo $SVN_ST | grep '^D' | awk '{print "-"$2}' | tr -d '\n')
+
echo -e "$(date "+%d/%m/%y %X") - from $(whoami)@$(if [ `uname -o` = "Cygwin" ]; then hostname; else hostname -f; fi)
-$(cat ${TMPFILE}.send | sed -r 's/(.*)/\t* \1/')
+\t${ADDED_FILES}
+\t${MODIFIED_FILES}
+\t${DELETED_FILES}
-\tFile changes :
-$(svn st | grep -v '^?' | sed -r 's/(.*)/\t\1/')
+$(cat ${TMPFILE}.send | sed -r 's/(.*)/\t* \1/')
$(cat $PROJECT_PATH/ChangeLog)" > $PROJECT_PATH/ChangeLog