If both Git and Debian versions are available, then only glue the two
together if the Debian version ends with `~'.
## 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
## 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
echo "$version"
exit 0
fi