File: 0003-set-man-page-date-to-last-changelog.patch

package info (click to toggle)
libtpms 0.10.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,188 kB
  • sloc: ansic: 120,340; makefile: 829; sh: 336; cpp: 125
file content (20 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Set the date of man pages to the last changelog entry.
Forwarded: https://github.com/stefanberger/libtpms/pull/530

--- a/man/man3/Makefile.am
+++ b/man/man3/Makefile.am
@@ -55,11 +55,14 @@
 	TPM_Malloc.3
 
 man3_MANS += $(man3_MANS_generated)
+BUILD_DATE ?= $$(dpkg-parsechangelog -S Date -l../../debian/changelog)
+PODDATE = $$(date -u "+%Y-%m-%d" -d "$(BUILD_DATE)")
 
 %.3 : %.pod
 	@pod2man -r "libtpms" \
 		-c "" \
 		-n $(basename $@) \
+		--date="$(PODDATE)" \
 		--section=3 $< > $@
 
 EXTRA_DIST = $(man3_MANS) $(man3_PODS)