From 4da9316c8fa576cad77bf398785765e165f6865c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 25 Nov 2003 16:49:23 +0000 Subject: [PATCH] * Use svn-revision to construct package version. --- configure.ac | 10 +++++----- 1 file 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)