From d660ef82c4777c7d7e297ef1c287eb809efa20f1 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 13 Jul 2015 20:29:20 +0100 Subject: [PATCH] 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 --- 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 21f904e06cb4..aabdee329d7b 100644 --- a/tools/perf/Documentation/Makefile +++ b/tools/perf/Documentation/Makefile @@ -120,6 +120,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 356b23a40339..1347a1f45d5f 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} -- 2.30.2