diff options
author | Werner Koch <[email protected]> | 2025-03-10 14:03:05 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-03-10 14:03:05 +0000 |
commit | e5555a40e633a17b2e80028067d168ff77cccff9 (patch) | |
tree | 6f3c8941a69b774b68b4595a2c24f2b10bde3d53 /autogen.sh | |
parent | card: Add command "ll" (diff) | |
download | gnupg-e5555a40e633a17b2e80028067d168ff77cccff9.tar.gz gnupg-e5555a40e633a17b2e80028067d168ff77cccff9.zip |
Update autogen.sh from upstream to version 2025-03-10
--
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/autogen.sh b/autogen.sh index a2c469fea..8695fcb51 100755 --- a/autogen.sh +++ b/autogen.sh @@ -15,7 +15,7 @@ # configure it for the respective package. It is maintained as part of # GnuPG and source copied by other packages. # -# Version: 2025-02-21 +# Version: 2025-03-10 configure_ac="configure.ac" @@ -256,24 +256,23 @@ if [ "$myhost" = "find-version" ]; then matchstr3="$package-$major-base" vers="$major.$minor.$micro" fi + matchexcl="--exclude $package-*beta*" beta=no if [ -e .git ]; then ingit=yes - tmp=$(git describe --match "${matchstr1}" --long 2>/dev/null) + tmp=$(git describe --match "${matchstr1}" $matchexcl --long 2>/dev/null) if [ -n "$tmp" ]; then tmp=$(echo "$tmp" | sed s/^"$package"// \ | awk -F- '$3!=0 && $3 !~ /^beta/ {print"-beta"$3}') - fi - if [ -z "$tmp" ]; then + else # (due tof "-base" in the tag we need to take the 4th field) - tmp=$(git describe --match "${matchstr2}" --long 2>/dev/null) + tmp=$(git describe --match "${matchstr2}" $matchexcl --long 2>/dev/null) if [ -n "$tmp" ]; then tmp=$(echo "$tmp" | sed s/^"$package"// \ | awk -F- '$4!=0 && $4 !~ /^beta/ {print"-beta"$4}') - fi - if [ -z "$tmp" -a -n "${matchstr3}" ]; then - tmp=$(git describe --match "${matchstr3}" --long 2>/dev/null) + elif [ -n "${matchstr3}" ]; then + tmp=$(git describe --match "${matchstr3}" $matchexcl --long 2>/dev/null) if [ -n "$tmp" ]; then tmp=$(echo "$tmp" | sed s/^"$package"// \ | awk -F- '$4!=0 && $4 !~ /^beta/ {print"-beta"$4}') |