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
| | Kakoune uses gzip to compress its manpages, but this saves the original time
stamp into the file. If we add --no-name to the uses of gzip then we get a
reproducible build.
--- a/src/Makefile
+++ b/src/Makefile
@@ -71,19 +71,19 @@
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=$(suffix).d)) -c -o $@ $<
# Generate the man page
../doc/kak.1.gz: ../doc/kak.1.txt
a2x --no-xmllint -f manpage $<
- gzip -f $(basename $<)
+ gzip -f --no-name $(basename $<)
# Generate the editor's documentation pages
# Since `a2x` won't generate man pages if some sections are missing (which we don't need),
# we generate the pages, patch them and then compress them
../doc/manpages/%.gz: ../doc/manpages/%.asciidoc
a2x --no-xmllint -f manpage $<
sed -i -r -e "s,^\.TH .+,.TH KAKOUNE 1 \"\" \"\" \"$(basename $(notdir $<))\"," \
-e "/^\.SH \"NAME\"/{N;d;}" $(@:.gz=.1)
- gzip -f $(@:.gz=.1)
+ gzip -f --no-name $(@:.gz=.1)
mv -f $(@:.gz=.1.gz) $@
check: test
test:
|