Replace version number in install.sgml during build time
authorGuido Trotter <ultrotter@google.com>
Thu, 28 Feb 2008 11:36:25 +0000 (11:36 +0000)
committerGuido Trotter <ultrotter@google.com>
Thu, 28 Feb 2008 11:36:25 +0000 (11:36 +0000)
Reviewed-by: iustinp

doc/Makefile.am
doc/install.sgml

index 4aedb15..61db087 100644 (file)
@@ -8,8 +8,11 @@ dist_doc_DATA = \
 EXTRA_DIST = hooks.sgml install.sgml admin.sgml
 MAINTAINERCLEANFILES = *.html *.pdf
 
-%.html: %.sgml
+%.sgmltmp: %.sgml
+       sed -e 's#@GANETI_VERSION@#$(PACKAGE_VERSION)#g' < $< > $@
+
+%.html: %.sgmltmp
        docbook2html --nochunks $<
 
-%.pdf: %.sgml
+%.pdf: %.sgmltmp
        docbook2pdf $<
index 44bcb38..445c3b4 100644 (file)
@@ -623,8 +623,8 @@ vgextend xenvg /dev/sdd1
       </para>
 
         <screen>
-tar xvzf ganeti-1.2.2.tar.gz
-cd ganeti-1.2.2
+tar xvzf ganeti-@GANETI_VERSION@.tar.gz
+cd ganeti-@GANETI_VERSION@
 ./configure --localstatedir=/var --sysconfdir=/etc
 make
 make install