about summary refs log tree commit diff
path: root/doc/manual
diff options
context:
space:
mode:
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/Makefile.am11
-rw-r--r--doc/manual/introduction.xml2
-rw-r--r--doc/manual/manual.xml3
3 files changed, 12 insertions, 4 deletions
diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am
index 595773f1cdbc..8f4c84790613 100644
--- a/doc/manual/Makefile.am
+++ b/doc/manual/Makefile.am
@@ -11,10 +11,13 @@ SOURCES = manual.xml introduction.xml installation.xml overview.xml \
  troubleshooting.xml bugs.xml \
  style.css images
 
-manual.is-valid: $(SOURCES)
+manual.is-valid: $(SOURCES) version.xml
 	$(XMLLINT) --noout --valid manual.xml
 	touch $@
 
+version.xml:
+	echo -n $(VERSION) > version.xml
+
 man1_MANS = nix-store.1 nix-instantiate.1
 
 man $(MANS): $(SOURCES) manual.is-valid
@@ -38,6 +41,8 @@ images:
 	cp $(docbookxsl)/images/callouts/*.png images/callouts
 	chmod +w -R images
 
-EXTRA_DIST = $(SOURCES) manual.html manual.is-valid $(MANS) 
+KEEP = manual.html manual.is-valid version.xml $(MANS)
+
+EXTRA_DIST = $(SOURCES) $(KEEP)
 
-DISTCLEANFILES = manual.html manual.is-valid $(MANS)
+DISTCLEANFILES = $(KEEP)
diff --git a/doc/manual/introduction.xml b/doc/manual/introduction.xml
index 7759cd65a0e6..b41cad0a80fc 100644
--- a/doc/manual/introduction.xml
+++ b/doc/manual/introduction.xml
@@ -2,7 +2,7 @@
   <title>Introduction</title>
 
   <epigraph>
-    <para><quote>The number of Nix installations in the world has grown to 4,
+    <para><quote>The number of Nix installations in the world has grown to 5,
         with more expected.</quote></para>
   </epigraph>
 
diff --git a/doc/manual/manual.xml b/doc/manual/manual.xml
index e8896b073f0b..9f88dd4090d4 100644
--- a/doc/manual/manual.xml
+++ b/doc/manual/manual.xml
@@ -11,11 +11,14 @@
 <!ENTITY nix-instantiate SYSTEM "nix-instantiate.xml">
 <!ENTITY troubleshooting SYSTEM "troubleshooting.xml">
 <!ENTITY bugs SYSTEM "bugs.xml">
+<!ENTITY version SYSTEM "version.xml">
 ]>
 
 <book>
   <title>Nix: A System for Software Deployment</title>
 
+  <subtitle>Draft (Version &version;)</subtitle>
+  
   <bookinfo>
     <author>
       <firstname>Eelco</firstname>