From: Arnaud Lacombe <al@sigfpe.info>
[apps/madmutt.git] / do-commit.sh
index 6ba3aa1..4cb7e7c 100755 (executable)
@@ -1,3 +1,8 @@
 #!/bin/sh
-echo "\$Revision\$ `date`" > ./dummy
-echo 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