From: Arnaud Lacombe <al@sigfpe.info>
[apps/madmutt.git] / do-commit.sh
index 795ce32..4cb7e7c 100755 (executable)
@@ -1,3 +1,8 @@
 #!/bin/sh
-date "+%Y%m%d" > ./VERSION.date
-svn commit "$@"
+svn update
+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