diff options
author | beber <beber> | 2006-01-17 10:44:21 +0000 |
---|---|---|
committer | beber <beber> | 2006-01-17 10:44:21 +0000 |
commit | 8471e4a9bd1e7b6bda0a616f83dd89e13d7706e0 (patch) | |
tree | 38f067da45ba52f53b9222b766a3beb7da833643 /sh | |
parent | fuck bash (diff) | |
download | espik-8471e4a9bd1e7b6bda0a616f83dd89e13d7706e0.tar.xz |
test
Diffstat (limited to 'sh')
-rw-r--r-- | sh/eci.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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') |