Package: txt2man / 1.6.0-1~bpo8+1

10_fix-makefile.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: use the date of the latest entry in debian/changelog for the date
             headers in man pages, so that builds are reproducible.
             (Closes: #782462)
Author: Jonathan Wiltshire <jmw@debian.org>
        Jérémy Bobbio <lunar@debian.org>
        Reiner Herrmann <reiner@reiner-h.de>
Last-Update: 2016-08-15
Index: txt2man-1.6.0/Makefile
===================================================================
--- txt2man-1.6.0.orig/Makefile
+++ txt2man-1.6.0/Makefile
@@ -1,6 +1,7 @@
 # Makefile
 prefix ?= /usr/local
 version = txt2man-1.6.0
+date = $(shell dpkg-parsechangelog -c1 -S date | LC_ALL=C date -u +"%d %B %Y" -f -)
 BIN = src2man bookman txt2man
 MAN1 = src2man.1 txt2man.1 bookman.1
 
@@ -14,7 +15,7 @@ install: $(MAN1)
 clean:
 	rm -f *.1 *.txt *.ps *.pdf *.html
 
-%.1:%.txt; ./txt2man -s 1 -t $* -r $(version) $< > $@
+%.1:%.txt; ./txt2man -s 1 -t $* -r $(version) -d "$(date)" $< > $@
 %.txt:%; ./$< -h 2>&1 > $@
 %.html:%.1; rman -f HTML $< > $@
 %.ps:%.1; groff -man $< > $@