summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-08-02 13:33:38 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-08-02 13:33:38 -0400
commitd727966ce805067e227fa96262005056fdfac448 (patch)
treebddb0a36e8b85f6742e31a47db77399b24b3fd36 /configure.ac
parent729998f64e891856f43f758551be0aaa26ac89b4 (diff)
Tracking and printing of version numbers (based on a patch by Austin Seipp)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6103ac62..2cd5f2da 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,5 @@
-AC_INIT([urweb], [1.0])
+AC_INIT([urweb], [20110715])
+WORKING_VERSION=1
AC_USE_SYSTEM_EXTENSIONS
AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
AC_PROG_CC()
@@ -79,6 +80,10 @@ if test [-z $SQHEADER]; then
SQHEADER=sqlite3.h
fi
+if test [$WORKING_VERSION = "1"]; then
+ VERSION="$VERSION + `hg identify || cat .hg_archival.txt || echo ?`"
+fi
+
AC_SUBST(CC)
AC_SUBST(BIN)
AC_SUBST(LIB)
@@ -88,6 +93,7 @@ AC_SUBST(GCCARGS)
AC_SUBST(PGHEADER)
AC_SUBST(MSHEADER)
AC_SUBST(SQHEADER)
+AC_SUBST(VERSION)
AC_CONFIG_FILES([
Makefile
@@ -109,4 +115,6 @@ Ur/Web configuration:
Postgres C header: PGHEADER $PGHEADER
MySQL C header: MSHEADER $MSHEADER
SQLite C header: SQHEADER $SQHEADER
+
+ Version: $VERSION
EOF