]> wagnertech.de Git - projects.git/blobdiff - tools/make/mconfigure
phpide
[projects.git] / tools / make / mconfigure
index b16fd55457cbef442e7dbe76aef30f02aa998648..8ce366eca347332396bd07fab8ab2e269ef37173 100755 (executable)
@@ -31,13 +31,14 @@ function set_build {
 }
 
 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"