Skip to content

Commit

Permalink
Make zip file creation reproducible
Browse files Browse the repository at this point in the history
by adding -X option to not store extra UNIX timestamps
and by sorting the recursed input file list

See https://reproducible-builds.org/ for why this is good.
  • Loading branch information
bmwiedemann authored and perim committed Aug 27, 2017
1 parent 4b91398 commit 714399b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/Makefile.am
Expand Up @@ -4,7 +4,7 @@ stamp:
touch stamp

%.wz: $(abs_srcdir)/% stamp
(cd $(srcdir)/$(notdir $<) && $(ZIP) -r0 $(ZIP_UPDATE) $(abs_builddir)/$@ $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -x '*svn*' -x '*Makefile*' -x '*.svg' || [ $$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
(cd $(srcdir)/$(notdir $<) && $(ZIP) -X -r0 $(ZIP_UPDATE) $(abs_builddir)/$@ $$(find $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -type f | LC_ALL=C sort) -x '*svn*' -x '*Makefile*' -x '*.svg' || [ $$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
$(ZIP) -T $@
rm -f stamp

Expand Down

0 comments on commit 714399b

Please sign in to comment.