]> git.proxmox.com Git - pve-docs.git/commitdiff
automatically set RELEASE in pve-admin-guide-docinfo.xml
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 9 Dec 2016 15:46:38 +0000 (16:46 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 9 Dec 2016 15:46:38 +0000 (16:46 +0100)
Makefile
pve-admin-guide-docinfo.xml [deleted file]
pve-admin-guide-docinfo.xml.in [new file with mode: 0644]

index d454a06376179f6be632ae3bb5a7ed4b1acd9ca6..64f06c48adbaec36e1bda8b38f17036d939b982c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -123,6 +123,9 @@ pve-admin-guide.chunked: ${PVE_ADMIN_GUIDE_ADOCDEPENDS}
 
 PVE_DOCBOOK_CONF=-b $(shell pwd)/asciidoc/pve-docbook -f asciidoc/asciidoc-pve.conf
 
 
 PVE_DOCBOOK_CONF=-b $(shell pwd)/asciidoc/pve-docbook -f asciidoc/asciidoc-pve.conf
 
+pve-admin-guide-docinfo.xml: pve-admin-guide-docinfo.xml.in
+       sed -e 's/@RELEASE@/${DOCRELEASE}/' <$< >$@
+
 pve-admin-guide.pdf: ${PVE_ADMIN_GUIDE_ADOCDEPENDS} docinfo.xml pve-admin-guide-docinfo.xml
        inkscape -z -D --export-pdf=proxmox-logo.pdf images/proxmox-logo.svg
        inkscape -z -D --export-pdf=proxmox-ci-header.pdf images/proxmox-ci-header.svg
 pve-admin-guide.pdf: ${PVE_ADMIN_GUIDE_ADOCDEPENDS} docinfo.xml pve-admin-guide-docinfo.xml
        inkscape -z -D --export-pdf=proxmox-logo.pdf images/proxmox-logo.svg
        inkscape -z -D --export-pdf=proxmox-ci-header.pdf images/proxmox-ci-header.svg
@@ -194,5 +197,5 @@ update: clean
        make all
 
 clean: 
        make all
 
 clean: 
-       rm -rf *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html *-plain.html chapter-*.html pve-admin-guide.chunked asciidoc-pve link-refs.json .asciidoc-pve-tmp_* pve-docs-mediawiki-import .pve-doc-depends pve-doc-generator.mk chapter-index-table.adoc man1-index-table.adoc man5-index-table.adoc man8-index-table.adoc
+       rm -rf *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html *-plain.html chapter-*.html pve-admin-guide.chunked asciidoc-pve link-refs.json .asciidoc-pve-tmp_* pve-docs-mediawiki-import .pve-doc-depends pve-doc-generator.mk chapter-index-table.adoc man1-index-table.adoc man5-index-table.adoc man8-index-table.adoc pve-admin-guide-docinfo.xml
        find . -name '*~' -exec rm {} ';'
        find . -name '*~' -exec rm {} ';'
diff --git a/pve-admin-guide-docinfo.xml b/pve-admin-guide-docinfo.xml
deleted file mode 100644 (file)
index c925a93..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<subtitle>Release 4.4</subtitle>
-
-<copyright>
-  <year>2016</year>
-  <holder>Proxmox Server Solutions Gmbh</holder>
-</copyright>
-
-<legalnotice>
-  <simpara>
-    Permission is granted to copy, distribute and/or modify this document
-    under the terms of the GNU Free Documentation License, Version 1.3
-    or any later version published by the Free Software Foundation;
-    with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
-  </simpara>
-  <simpara>   
-    A copy of the license is included in the section entitled "GNU
-    Free Documentation License".
-  </simpara>
-</legalnotice>
diff --git a/pve-admin-guide-docinfo.xml.in b/pve-admin-guide-docinfo.xml.in
new file mode 100644 (file)
index 0000000..5120bf8
--- /dev/null
@@ -0,0 +1,19 @@
+<subtitle>Release @RELEASE@</subtitle>
+
+<copyright>
+  <year>2016</year>
+  <holder>Proxmox Server Solutions Gmbh</holder>
+</copyright>
+
+<legalnotice>
+  <simpara>
+    Permission is granted to copy, distribute and/or modify this document
+    under the terms of the GNU Free Documentation License, Version 1.3
+    or any later version published by the Free Software Foundation;
+    with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
+  </simpara>
+  <simpara>   
+    A copy of the license is included in the section entitled "GNU
+    Free Documentation License".
+  </simpara>
+</legalnotice>