From: Wolfram Schneider Date: Tue, 1 Nov 2011 09:19:49 +0000 (+0000) Subject: check for version early X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=3ba069311ad74d1ef3716ca488faf29371d60e08;p=git-tools-moved-to-github.git check for version early --- diff --git a/id-release b/id-release index 331d63a..244633a 100755 --- 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