From: Ben Hutchings Date: Mon, 13 Jul 2015 19:29:20 +0000 (+0100) Subject: perf tools: Use $KBUILD_BUILD_TIMESTAMP as man page date X-Git-Tag: archive/raspbian/4.18.10-2+rpi1^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a52852f276e51a2ed2310467279bedf774de95af;p=linux.git perf tools: Use $KBUILD_BUILD_TIMESTAMP as man page date This allows man pages to be built reproducibly. Signed-off-by: Ben Hutchings Gbp-Pq: Topic bugfix/all Gbp-Pq: Name tools-perf-man-date.patch --- diff --git a/tools/perf/Documentation/Makefile b/tools/perf/Documentation/Makefile index a6506013ea5..9bc184e60ba 100644 --- a/tools/perf/Documentation/Makefile +++ b/tools/perf/Documentation/Makefile @@ -131,6 +131,9 @@ endif ifdef DOCBOOK_SUPPRESS_SP XMLTO_EXTRA += -m manpage-suppress-sp.xsl endif +ifdef KBUILD_BUILD_TIMESTAMP +ASCIIDOC_EXTRA += -a revdate=$(shell date -u -d '$(KBUILD_BUILD_TIMESTAMP)' +%Y-%m-%d) +endif SHELL_PATH ?= $(SHELL) # Shell quote; diff --git a/tools/perf/Documentation/asciidoc.conf b/tools/perf/Documentation/asciidoc.conf index 356b23a4033..1347a1f45d5 100644 --- a/tools/perf/Documentation/asciidoc.conf +++ b/tools/perf/Documentation/asciidoc.conf @@ -71,6 +71,9 @@ ifdef::backend-docbook[] [header] template::[header-declarations] + +template::[docinfo] + {mantitle} {manvolnum}