phpide
authorMichael Wagner <michael@wagnertech.de>
Wed, 18 Apr 2018 16:36:35 +0000 (18:36 +0200)
committerMichael Wagner <michael@wagnertech.de>
Wed, 18 Apr 2018 16:36:35 +0000 (18:36 +0200)
tools/make/mconfigure

index b16fd55..8ce366e 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"