From: Dmitry Lukashin <nullevent@gmail.com>
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 13 Oct 2005 19:39:48 +0000 (19:39 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Thu, 13 Oct 2005 19:39:48 +0000 (19:39 +0000)
Rocco Rutte:
- beautify do-commit.sh to be more readable

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@547 e385b8ad-14ed-0310-8656-cc95a2468c6d

VERSION.svn
do-commit.sh

index f50c65e..2d78492 100644 (file)
@@ -1 +1 @@
-546
+547
index 3faaecb..8371df4 100755 (executable)
@@ -1,5 +1,4 @@
 #!/bin/sh
 svn update
-CURREV=`svn info | grep '^Revision' | cut -d : -f 2`
-echo "`echo $CURREV+1 | bc`" > ./VERSION.svn
+echo $(($(svn info| awk -F': ' '/^Revision: / {print $2}')+1)) > ./VERSION.svn
 svn commit "$@"