2015-07-13 19:31:07 +00:00
|
|
|
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
|
2016-05-17 13:44:35 +00:00
|
|
|
Forwarded: http://mid.gmane.org/20160517132809.GE7555@decadent.org.uk
|
2015-07-13 19:31:07 +00:00
|
|
|
|
|
|
|
This allows man pages to be built reproducibly.
|
|
|
|
|
|
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
|
|
---
|
2019-10-25 20:57:23 +00:00
|
|
|
Index: linux/tools/perf/Documentation/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- linux.orig/tools/perf/Documentation/Makefile
|
|
|
|
+++ linux/tools/perf/Documentation/Makefile
|
|
|
|
@@ -131,6 +131,9 @@ endif
|
2015-07-13 19:31:07 +00:00
|
|
|
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;
|
2019-10-25 20:57:23 +00:00
|
|
|
Index: linux/tools/perf/Documentation/asciidoc.conf
|
|
|
|
===================================================================
|
|
|
|
--- linux.orig/tools/perf/Documentation/asciidoc.conf
|
|
|
|
+++ linux/tools/perf/Documentation/asciidoc.conf
|
2015-07-13 19:31:07 +00:00
|
|
|
@@ -71,6 +71,9 @@ ifdef::backend-docbook[]
|
|
|
|
[header]
|
|
|
|
template::[header-declarations]
|
|
|
|
<refentry>
|
|
|
|
+<refentryinfo>
|
|
|
|
+template::[docinfo]
|
|
|
|
+</refentryinfo>
|
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>{mantitle}</refentrytitle>
|
|
|
|
<manvolnum>{manvolnum}</manvolnum>
|