projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From: Arnaud Lacombe <al@sigfpe.info>
[apps/madmutt.git]
/
do-commit.sh
diff --git
a/do-commit.sh
b/do-commit.sh
index
4e26a3d
..
4cb7e7c
100755
(executable)
--- a/
do-commit.sh
+++ b/
do-commit.sh
@@
-1,5
+1,8
@@
#!/bin/sh
svn update
#!/bin/sh
svn update
-CURREV=`svn info | grep '^Revision' | cut -d : -f 2`
-echo "`echo $CURREV+1 | bc`" > ./VERSION.date
-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