From: Mark Wooding Date: Tue, 21 May 2024 13:29:26 +0000 (+0100) Subject: auto-version.in: Don't scramble the version number (regression fix). X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/cfd/commitdiff_plain/refs/heads/standalone?ds=sidebyside auto-version.in: Don't scramble the version number (regression fix). If both Git and Debian versions are available, then only glue the two together if the Debian version ends with `~'. --- diff --git a/auto-version.in b/auto-version.in index c7d5925..007da8b 100755 --- a/auto-version.in +++ b/auto-version.in @@ -85,7 +85,7 @@ fi ## version-comparison algorithm which specifies this behaviour, so one must ## be careful when choosing `~' prefixes. if [ -e .git ] && version=$(git describe --abbrev=4 --dirty=+ 2>/dev/null); then - case ${debver+t} in t) version=$debver$version ;; esac + case ${debver-nil} in *~) version=$debver$version ;; esac echo "$version" exit 0 fi