]> git.openstreetmap.org Git - nominatim.git/commitdiff
add git commit version if applicable
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 26 Jun 2012 20:55:08 +0000 (22:55 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 26 Jun 2012 20:55:08 +0000 (22:55 +0200)
configure.ac

index 38e7c7a1c4ee9c93e5306249a5914449b95d2607..8d3a58d81d1365d444492adf18a7eff710d3012b 100644 (file)
@@ -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)