X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/projects.git/blobdiff_plain/152748262107973df2ea6d018324a75289a5d367..92637bbe59b7bbd1550b7a577f349263773df4e2:/tools/make/mconfigure diff --git a/tools/make/mconfigure b/tools/make/mconfigure index be5f3ba..8ce366e 100755 --- a/tools/make/mconfigure +++ b/tools/make/mconfigure @@ -25,19 +25,20 @@ function set_build { then tag="${tag}M" fi - version=${tag%-*} + version=${tag%%-*} build=${tag#*-} fi } function check_version { + vline=$(head -1 debian/$paket.changelog) + vline=${vline%-*} + clversion=${vline#*(} if [ $version = "0.0" ] then + version=$clversion return fi - vline=$(head -1 debian/$paket.changelog) - vline=${vline%-*} - clversion=${vline#*(} if [ "$clversion" != $version ] then echo "version mismatch: git: $version, changelog: $clversion" @@ -60,6 +61,7 @@ then exit 2 fi +paket=$1 echo "export paket=$1" > debian/setenv.sh shift ARCH=""