* Use svn-revision to construct package version.

This commit is contained in:
Eelco Dolstra 2003-11-25 16:49:23 +00:00
parent 6d5877ea12
commit 4da9316c8f

View file

@ -1,13 +1,13 @@
AC_INIT(nix, "0.4") AC_INIT(nix, "0.5")
AC_CONFIG_SRCDIR(README) AC_CONFIG_SRCDIR(README)
AC_CONFIG_AUX_DIR(config) AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE AM_INIT_AUTOMAKE
# Put the revision number in the version. # Put the revision number in the version.
if REVISION=`svnversion $srcdir 2> /dev/null`; then if REVISION=`test -d $srcdir/.svn && svnversion $srcdir 2> /dev/null`; then
if test "$REVISION" != "exported"; then VERSION="$VERSION-r$REVISION"
elif REVISION=`cat $srcdir/svn-revision 2> /dev/null`; then
VERSION="$VERSION-r$REVISION" VERSION="$VERSION-r$REVISION"
fi
fi fi
AC_PREFIX_DEFAULT(/nix) AC_PREFIX_DEFAULT(/nix)