projects
/
git-tools-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
829e5ef
)
check for version early
author
Wolfram Schneider
<wosch@indexdata.dk>
Tue, 1 Nov 2011 09:19:49 +0000
(09:19 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Tue, 1 Nov 2011 09:19:49 +0000
(09:19 +0000)
id-release
patch
|
blob
|
history
diff --git
a/id-release
b/id-release
index
331d63a
..
244633a
100755
(executable)
--- a/
id-release
+++ b/
id-release
@@
-15,6
+15,11
@@
usage () {
}
######################################################################
+case $1 in
+ [0-9]* ) version=$1 ;;
+ * ) usage ;;
+esac
+
if [ -e "pom.xml" ]; then
java=true
else
@@
-35,11
+40,6
@@
else
package=`perl -ne 's/\s*$//; print if s/^NAME=//' IDMETA`
fi
-case $1 in
- [0-9]* ) version=$1 ;;
- * ) usage ;;
-esac
-
# configure new version
perl -i.bak -npe "s,VERSION=.*,VERSION=$version," IDMETA