about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-10-25T13·51+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-10-25T13·51+0000
commit3ade3e7721df981614bbb2420baeb84e58085967 (patch)
tree78d1a3b6872c0b001e7d9dd47412c5e31bcd7407
parent2248becfd3363a5de52ef6b10edf4c2d774bfa1e (diff)
* Revert r1594 - it didn't solve the problem. Instead add
  svn-revision to distributions, which should fix it.

-rw-r--r--Makefile.am5
-rw-r--r--configure.ac2
-rw-r--r--src/libmain/Makefile.am2
3 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index f65affaf4530..179269e22512 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 b4dd93c4a367..2ba8e92384a9 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 e326b84217e8..3c28441ca166 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