## If this is a Git checkout then Git should be able to identify the version.
## If there's also a Debian version, and that ends in a `~', then prefix the
## Git version with this. Note that `pkg-config' is not very good, and, in
## If this is a Git checkout then Git should be able to identify the version.
## If there's also a Debian version, and that ends in a `~', then prefix the
## Git version with this. Note that `pkg-config' is not very good, and, in
## 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