]> git.proxmox.com Git - pve-docs.git/commitdiff
pve-admin-guide-docinfo.xml.in: automatically update year in copyright notice
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 20 Feb 2019 09:05:05 +0000 (10:05 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 20 Feb 2019 09:05:05 +0000 (10:05 +0100)
Makefile
pve-admin-guide-docinfo.xml.in

index 9578078ba87826f28435b73e4959f85de32775fb..618ca48c81725e661e2efe69d42ffdeb0df98c93 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -127,8 +127,9 @@ pve-admin-guide.chunked: ${PVE_ADMIN_GUIDE_ADOCDEPENDS}
 PVE_DOCBOOK_CONF=-b $(shell pwd)/asciidoc/pve-docbook -f asciidoc/asciidoc-pve.conf
 PVE_DBLATEX_OPTS='-p ./asciidoc/pve-dblatex.xsl -s asciidoc/dblatex-custom.sty -c asciidoc/dblatex-export.conf'
 
+YEAR:=$(shell date '+%Y')
 pve-admin-guide-docinfo.xml: pve-admin-guide-docinfo.xml.in
-       sed -e 's/@RELEASE@/${DOCRELEASE}/' <$< >$@
+       sed -e 's/@RELEASE@/${DOCRELEASE}/' -e 's/@YEAR@/${YEAR}/' <$< >$@
 
 pve-admin-guide.pdf: ${PVE_ADMIN_GUIDE_ADOCDEPENDS} docinfo.xml pve-admin-guide-docinfo.xml
        rsvg-convert -f pdf -o proxmox-logo.pdf images/proxmox-logo.svg
index 31e90c982db763bfa6c0393b02eefc7719951775..5d94c858f8a25ea302f42e769ff72aa8d70d3b13 100644 (file)
@@ -1,7 +1,7 @@
 <subtitle>Release @RELEASE@</subtitle>
 
 <copyright>
-  <year>2017</year>
+  <year>@YEAR@</year>
   <holder>Proxmox Server Solutions Gmbh</holder>
 </copyright>