From 3ade3e7721df981614bbb2420baeb84e58085967 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 25 Oct 2004 13:51:34 +0000 Subject: [PATCH] * Revert r1594 - it didn't solve the problem. Instead add svn-revision to distributions, which should fix it. --- Makefile.am | 5 ++++- configure.ac | 2 -- src/libmain/Makefile.am | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index f65affaf4..179269e22 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ SUBDIRS = externals src scripts corepkgs doc misc tests -EXTRA_DIST = substitute.mk nix.spec nix.spec.in bootstrap.sh +EXTRA_DIST = substitute.mk nix.spec nix.spec.in bootstrap.sh svn-revision include ./substitute.mk @@ -33,3 +33,6 @@ init-state: else init-state: endif + +svn-revision: + svnversion . > svn-revision diff --git a/configure.ac b/configure.ac index b4dd93c4a..2ba8e9238 100644 --- a/configure.ac +++ b/configure.ac @@ -14,8 +14,6 @@ if test "$STABLE" != "1"; then elif REVISION=`cat $srcdir/svn-revision 2> /dev/null`; then VERSION="${VERSION}pre${REVISION}" fi - NIX_VERSION=$VERSION - AC_SUBST(NIX_VERSION) fi AC_PREFIX_DEFAULT(/nix) diff --git a/src/libmain/Makefile.am b/src/libmain/Makefile.am index e326b8421..3c28441ca 100644 --- a/src/libmain/Makefile.am +++ b/src/libmain/Makefile.am @@ -7,5 +7,5 @@ AM_CXXFLAGS = \ -DNIX_DATA_DIR=\"$(datadir)\" \ -DNIX_STATE_DIR=\"$(localstatedir)/nix\" \ -DNIX_LOG_DIR=\"$(localstatedir)/log/nix\" \ - -DNIX_VERSION=\"$(NIX_VERSION)\" \ + -DNIX_VERSION=\"$(VERSION)\" \ -I.. ${aterm_include} -I../libutil -I../libstore