diff options
author | Andrei Belov <defan@nginx.com> | 2020-12-08 13:17:21 +0300 |
---|---|---|
committer | Andrei Belov <defan@nginx.com> | 2020-12-08 13:17:21 +0300 |
commit | 12a0d259a50fd6feef46aeffa0e46e193ce6bb40 (patch) | |
tree | 8fdf76a7898e18a6389ab6260b19f9678593db10 /docs/Makefile | |
parent | 2348229dc7656f36a7915d85af56aae9ed9fb120 (diff) | |
download | unit-12a0d259a50fd6feef46aeffa0e46e193ce6bb40.tar.gz unit-12a0d259a50fd6feef46aeffa0e46e193ce6bb40.tar.bz2 |
Docs: special handling for empty "date" and "time" XML attributes.
Diffstat (limited to 'docs/Makefile')
-rw-r--r-- | docs/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile index aa8aeb9b..db63eec4 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -14,6 +14,9 @@ PACKAGES= unit \ unit-ruby \ unit-jsc-common unit-jsc8 unit-jsc10 unit-jsc11 +CURDATE:=$(shell date +"%Y-%m-%d") +CURTIME:=$(shell date +"%H:%M:%S %z") + all: changes changelogs @@ -31,6 +34,8 @@ $(DEST)/CHANGES: changes.dtd \ xmllint --noout --valid changes.xml xsltproc --stringparam format generic \ + --stringparam curdate '$(CURDATE)' \ + --stringparam curtime '$(CURTIME)' \ -o $@ changes.xslt changes.xml $(DEST)/%.rpm-changelog: changes.dtd \ @@ -40,6 +45,8 @@ $(DEST)/%.rpm-changelog: changes.dtd \ mkdir -p $(DEST) xmllint --noout --valid changes.xml xsltproc --stringparam pkgname $* --stringparam format rpm \ + --stringparam curdate '$(CURDATE)' \ + --stringparam curtime '$(CURTIME)' \ -o $@ changes.xslt changes.xml $(DEST)/%.deb-changelog: changes.dtd \ @@ -49,6 +56,8 @@ $(DEST)/%.deb-changelog: changes.dtd \ mkdir -p $(DEST) xmllint --noout --valid changes.xml xsltproc --stringparam pkgname $* --stringparam format deb \ + --stringparam curdate '$(CURDATE)' \ + --stringparam curtime '$(CURTIME)' \ -o $@ changes.xslt changes.xml changes.xslt: changes.xsls |