Mercurial > urweb
diff configure.ac @ 1520:b5517f47b1f1
Tracking and printing of version numbers (based on a patch by Austin Seipp)
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Tue, 02 Aug 2011 13:33:38 -0400 |
parents | 3d0cc841cafd |
children | 52fbd8534ef3 |
line wrap: on
line diff
--- a/configure.ac Sun Jul 24 15:47:09 2011 -0400 +++ b/configure.ac Tue Aug 02 13:33:38 2011 -0400 @@ -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 @@ 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(PGHEADER) AC_SUBST(MSHEADER) AC_SUBST(SQHEADER) +AC_SUBST(VERSION) AC_CONFIG_FILES([ Makefile @@ -109,4 +115,6 @@ Postgres C header: PGHEADER $PGHEADER MySQL C header: MSHEADER $MSHEADER SQLite C header: SQHEADER $SQHEADER + + Version: $VERSION EOF