From: Sarah Hoffmann Date: Tue, 26 Jun 2012 20:55:08 +0000 (+0200) Subject: add git commit version if applicable X-Git-Tag: v2.0.0~55^2~1 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/6493efa0737ca0fb546fa9cfeae99a9939c0958a add git commit version if applicable --- diff --git a/configure.ac b/configure.ac index 38e7c7a1..8d3a58d8 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,7 @@ -AC_INIT(Nominatim,1.9.9) +AC_INIT(Nominatim,1.9) +if git rev-parse HEAD 2>/dev/null >/dev/null; then + AC_SUBST([PACKAGE_VERSION], [$PACKAGE_VERSION-git-`git rev-parse --short HEAD`]) +fi dnl Required autoconf version AC_PREREQ(2.61)