diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-09-23 14:26:58 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-09-23 14:26:58 +0000 |
commit | 41730f57798a9acba1fa07397cb06ba6a260ea70 (patch) | |
tree | 56647bc8c08ae522164a441472d53823d98199ea /configure.ac | |
parent | 1c7d6bf5fcddae13b6226d61fe60cfccb8d2c359 (diff) |
* Put the SVN revision number in the version string.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 2f7d8333f..8e4a9d12b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,8 +1,15 @@ -AC_INIT(nix, 0.3) +AC_INIT(nix, "0.3") AC_CONFIG_SRCDIR(src/nix.cc) AC_CONFIG_AUX_DIR(config) AM_INIT_AUTOMAKE +# Put the revision number in the version. +if REVISION=`svnversion $srcdir 2> /dev/null`; then + if test "$REVISION" != "exported"; then + VERSION="$VERSION-r$REVISION" + fi +fi + AC_PREFIX_DEFAULT(/nix) AC_CANONICAL_HOST |