| 12
 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)
 |