]> wagnertech.de Git - projects.git/blobdiff - tools/make/mconfigure
posaune
[projects.git] / tools / make / mconfigure
index c551c41ca4e58aee19cc2f6005160d925b00a58f..a1ea5085b1aa0763f10409f2aed8c995a64e1b7c 100755 (executable)
@@ -36,16 +36,11 @@ function set_build {
                build="$build$(check_unversioned)"
        elif [ -e .git ]
        then
-               tag=$(git describe --tags 2>/dev/null) || true
+               tag=$(git describe --tags --match "${paket}_*" 2>/dev/null) || true
                if test -z "$tag"
                then
                        tag="0.0-0TOP"
                fi
-               tag_paket=${tag%_*}
-               if [ "$tag_paket" != "$paket" ]
-               then
-                       tag="0.0-0TOP"
-               fi
                changes=$(check_unversioned)
                tag="$tag$changes"
                version=${tag%-*}