]> git.proxmox.com Git - pmg-docs.git/commitdiff
bsys: automatically update YEAR info
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 27 Feb 2019 19:37:33 +0000 (20:37 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 28 Feb 2019 06:06:01 +0000 (07:06 +0100)
in pmg-copyright.adoc and pmg-admin-guide-docinfo.xml

ported from pve-docs:742e92ef45cb1a8b6b98946959f6d36abc5ac9e9

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Makefile
pmg-admin-guide-docinfo.xml.in
pmg-copyright.adoc [deleted file]
pmg-copyright.adoc.in [new file with mode: 0644]

index 78a7098dd9626c9930bc3aae19e1de183138a06d..c31d7a14b472d7db63b9531a425638b894e82bc3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -111,8 +111,13 @@ pmg-admin-guide.chunked: ${PMG_ADMIN_GUIDE_ADOCDEPENDS}
 PMG_DOCBOOK_CONF=-b $(shell pwd)/asciidoc/pmg-docbook -f asciidoc/asciidoc-pmg.conf
 PMG_DBLATEX_OPTS='-p ./asciidoc/pmg-dblatex.xsl -s asciidoc/dblatex-custom.sty -c asciidoc/dblatex-export.conf'
 
+YEAR:=$(shell date "+%Y")
+
 pmg-admin-guide-docinfo.xml: pmg-admin-guide-docinfo.xml.in
-       sed -e 's/@RELEASE@/${DOCRELEASE}/' <$< >$@
+       sed -e 's/@RELEASE@/${DOCRELEASE}/' -e 's/@YEAR@/${YEAR}/' <$< >$@
+
+pmg-copyright.adoc: pmg-copyright.adoc.in
+       sed -e 's/@YEAR@/${YEAR}/' <$< >$@
 
 pmg-admin-guide.pdf: ${PMG_ADMIN_GUIDE_ADOCDEPENDS} docinfo.xml pmg-admin-guide-docinfo.xml
        rsvg-convert -f pdf -o proxmox-logo.pdf images/proxmox-logo.svg
@@ -199,5 +204,5 @@ clean:
        rm -f *.deb *.changes *.buildinfo
        rm -f api-viewer/apidoc.js chapter-*.html *-plain.html chapter-*.html pmg-admin-guide.chunked asciidoc-pmg link-refs.json .asciidoc-pmg-tmp_* pmg-smtp-filter.8-synopsis.adoc pmgpolicy.8-synopsis.adoc pmgsh.1-synopsis.adoc
        rm -rf .pmg-doc-depends 
-       rm -f pmg-doc-generator.mk chapter-index-table.adoc man1-index-table.adoc man5-index-table.adoc man8-index-table.adoc pmg-admin-guide-docinfo.xml
+       rm -f pmg-doc-generator.mk chapter-index-table.adoc man1-index-table.adoc man5-index-table.adoc man8-index-table.adoc pmg-admin-guide-docinfo.xml pmg-copyright.adoc
        rm -rf build*
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>
 
diff --git a/pmg-copyright.adoc b/pmg-copyright.adoc
deleted file mode 100644 (file)
index 1108294..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-Copyright and Disclaimer
-------------------------
-
-Copyright (C) 2007-2018 Proxmox Server Solutions GmbH
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as
-published by the Free Software Foundation, either version 3 of the
-License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public
-License along with this program.  If not, see
-http://www.gnu.org/licenses/
diff --git a/pmg-copyright.adoc.in b/pmg-copyright.adoc.in
new file mode 100644 (file)
index 0000000..a872fd1
--- /dev/null
@@ -0,0 +1,18 @@
+Copyright and Disclaimer
+------------------------
+
+Copyright (C) 2007-@YEAR@ Proxmox Server Solutions GmbH
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public
+License along with this program.  If not, see
+http://www.gnu.org/licenses/