diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-25 16:49:23 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-25 16:49:23 +0000 |
commit | 4da9316c8fa576cad77bf398785765e165f6865c (patch) | |
tree | 5910ede0a2d27cfa305af96a7c94ac4675bf5d0e /configure.ac | |
parent | 6d5877ea122f1d8aede4f9b9d2ac247d1b896093 (diff) |
* Use svn-revision to construct package version.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 8c3aecb9c..243ef392f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,13 +1,13 @@ -AC_INIT(nix, "0.4") +AC_INIT(nix, "0.5") AC_CONFIG_SRCDIR(README) 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 +if REVISION=`test -d $srcdir/.svn && svnversion $srcdir 2> /dev/null`; then + VERSION="$VERSION-r$REVISION" +elif REVISION=`cat $srcdir/svn-revision 2> /dev/null`; then + VERSION="$VERSION-r$REVISION" fi AC_PREFIX_DEFAULT(/nix) |