X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=do-commit.sh;h=4cb7e7cf0178c43bfef40425da167cc244225487;hb=refs%2Fremotes%2Fgit-svn;hp=8371df48e75fb0678c97516619657560082b74c7;hpb=d82d9cc0e0f209bf71750b00a9f41c1df8152346;p=apps%2Fmadmutt.git diff --git a/do-commit.sh b/do-commit.sh index 8371df4..4cb7e7c 100755 --- a/do-commit.sh +++ b/do-commit.sh @@ -1,4 +1,8 @@ #!/bin/sh svn update -echo $(($(svn info| awk -F': ' '/^Revision: / {print $2}')+1)) > ./VERSION.svn -svn commit "$@" +echo "`svn info | awk -F': ' '/^Revision: / {print $2}'`+1" | bc > ./VERSION.svn +if [ x"$1" != x ] ; then + svn commit do-commit.sh VERSION.svn "$@" +else + svn commit +fi