posaune
authorMichael Wagner <michael@wagnertech.de>
Sun, 19 Apr 2020 20:16:08 +0000 (22:16 +0200)
committerMichael Wagner <michael@wagnertech.de>
Sun, 19 Apr 2020 20:16:08 +0000 (22:16 +0200)
debian/mbuild.changelog
tools/make/mconfigure

index 134afe9..67fcbc7 100644 (file)
@@ -1,5 +1,6 @@
 projects (0.5-%BUILD%) unstable; urgency=medium
   * mconfigure -o for Debian 7 downward compatibility
+  * works with multiple git tags on the same commit
  -- Michael Wagner <michael@wagnertech.de>  Thu, 11 Apr 2019 22:54:48 +0100
 
 projects (0.4-%BUILD%) unstable; urgency=medium
index c551c41..a1ea508 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%-*}