summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-16 16:09:12 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-16 16:09:12 (EST)
commitd6dcaad31f4ca0b44ae639adf788d5bf50f48cec (patch)
tree504f0744740b510ff7468fea509152c3188c18bb
parent95f9793c7ce0ec17eb0c66b579bb809765165fe5 (diff)
configure.ac: Set PACKAGE_VERSION to git-describe output
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index bf44d0b..417ff9c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,6 +23,9 @@ AC_INIT([ProteanOS Development Kit], [2.0.0],
[http://www.proteanos.com/dev/prokit/])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/main.sh])
+if test -d "${srcdir}/.git"; then
+ PACKAGE_VERSION="$(git describe --tags HEAD | sed 's|^.*/||')"
+fi
AM_INIT_AUTOMAKE([gnu check-news dist-bzip2 dist-xz subdir-objects])
AM_SILENT_RULES([yes])