linux-tools: Set $KBUILD_BUILD_TIMESTAMP from changelog and use it as man page date
svn path=/dists/trunk/linux-tools/; revision=22835
This commit is contained in:
parent
5a176ef1a4
commit
2fe492c10f
|
@ -1,3 +1,10 @@
|
|||
linux-tools (4.1.2-1~exp2) UNRELEASED; urgency=medium
|
||||
|
||||
* linux-tools: Set $KBUILD_BUILD_TIMESTAMP from changelog and use it as man
|
||||
page date
|
||||
|
||||
-- Ben Hutchings <ben@decadent.org.uk> Mon, 13 Jul 2015 19:52:17 +0100
|
||||
|
||||
linux-tools (4.1.2-1~exp1) experimental; urgency=medium
|
||||
|
||||
* New upstream release
|
||||
|
|
|
@ -4,3 +4,4 @@ tools-perf-install.patch
|
|||
usbip-document-tcp-wrappers.patch
|
||||
kbuild-fix-recordmcount-dependency.patch
|
||||
usbip-include-uninstalled-linux-usbip-h.patch
|
||||
tools-perf-man-date.patch
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
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
|
||||
|
||||
This allows man pages to be built reproducibly.
|
||||
|
||||
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
||||
---
|
||||
--- 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;
|
||||
--- 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>
|
||||
<refmeta>
|
||||
<refentrytitle>{mantitle}</refentrytitle>
|
||||
<manvolnum>{manvolnum}</manvolnum>
|
|
@ -1,4 +1,5 @@
|
|||
export DH_OPTIONS
|
||||
export KBUILD_BUILD_TIMESTAMP := $(shell dpkg-parsechangelog | sed -ne 's,^Date: ,,p')
|
||||
|
||||
include debian/rules.defs
|
||||
|
||||
|
|
Loading…
Reference in New Issue