44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
From: Ben Hutchings <ben@decadent.org.uk>
|
|
Date: Mon, 13 Jul 2015 20:29:20 +0100
|
|
Subject: perf tools: Use $KBUILD_BUILD_TIMESTAMP as man page date
|
|
Forwarded: https://lore.kernel.org/all/20160517132809.GE7555@decadent.org.uk/
|
|
|
|
This allows man pages to be built reproducibly.
|
|
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
---
|
|
tools/perf/Documentation/Makefile | 3 +++
|
|
tools/perf/Documentation/asciidoc.conf | 3 +++
|
|
2 files changed, 6 insertions(+)
|
|
|
|
diff --git a/tools/perf/Documentation/Makefile b/tools/perf/Documentation/Makefile
|
|
index adc5a7e44b98..2161b2e838b7 100644
|
|
--- a/tools/perf/Documentation/Makefile
|
|
+++ b/tools/perf/Documentation/Makefile
|
|
@@ -132,6 +132,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 2b62ba1e72b7..82d3060177ba 100644
|
|
--- a/tools/perf/Documentation/asciidoc.conf
|
|
+++ b/tools/perf/Documentation/asciidoc.conf
|
|
@@ -71,6 +71,9 @@ ifdef::backend-docbook[]
|
|
[header]
|
|
template::[header-declarations]
|
|
<refentry>
|
|
+<refentryinfo>
|
|
+template::[docinfo]
|
|
+</refentryinfo>
|
|
ifdef::perf_date[]
|
|
<refentryinfo><date>{perf_date}</date></refentryinfo>
|
|
endif::perf_date[]
|
|
--
|
|
2.23.0
|
|
|