aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorbeber <beber>2006-01-17 10:44:21 +0000
committerbeber <beber>2006-01-17 10:44:21 +0000
commit8471e4a9bd1e7b6bda0a616f83dd89e13d7706e0 (patch)
tree38f067da45ba52f53b9222b766a3beb7da833643 /sh
parentfuck bash (diff)
downloadespik-8471e4a9bd1e7b6bda0a616f83dd89e13d7706e0.tar.xz
test
Diffstat (limited to 'sh')
-rw-r--r--sh/eci.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/sh/eci.sh b/sh/eci.sh
index 747e569..bd903ad 100644
--- a/sh/eci.sh
+++ b/sh/eci.sh
@@ -51,14 +51,14 @@ head -n $(($DELCOMMENTFROM-1)) ${TMPFILE} > ${TMPFILE}.send
SVN_ST=$(svn st | grep -v '^?')
ADDED_FILES=$(echo ${SVN_ST} | grep '^A' | awk '{print "+"$2}')
-echo "ADDED_FILES: $ADDED_FILES"
+ADDED_FILES=${ADDED_FILES:+\\t${ADDED_FILES}\\n}
MODIFIED_FILES=$(echo ${SVN_ST} | grep '^M' | awk '{print " "$2}')
-echo "MODIFIED_FILES: $MODIFIED_FILES"
+MODIFIED_FILES=${MODIFIED_FILES:+\\t${MODIFIED_FILES}\\n}
DELETED_FILES=$(echo ${SVN_ST} | grep '^D' | awk '{print "-"$2}')
-echo "DELETED_FILES: $DELETED_FILES"
+DELETED_FILES=${DELETED_FILES:+\\t${DELETED_FILES}\\n}
echo -e "$(date "+%d/%m/%y %X") - from $(whoami)@$(if [ `uname -o` = "Cygwin" ]; then hostname; else hostname -f; fi)
-\t$(for i in ${ADDED_FILES} ${MODIFIED_FILES} ${DELETED_FILES}; do echo -n $i; done && echo)
+${ADDED_FILES} ${MODIFIED_FILES} ${DELETED_FILES}
$(cat ${TMPFILE}.send | sed -r 's/(.*)/\t* \1/g')