diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-10-25 13:51:34 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-10-25 13:51:34 +0000 |
commit | 3ade3e7721df981614bbb2420baeb84e58085967 (patch) | |
tree | 78d1a3b6872c0b001e7d9dd47412c5e31bcd7407 | |
parent | 2248becfd3363a5de52ef6b10edf4c2d774bfa1e (diff) |
* Revert r1594 - it didn't solve the problem. Instead add
svn-revision to distributions, which should fix it.
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | 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 |