Permalink
Browse files

Make zip file creation reproducible

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 714399bfd5c9effa0a9b1bba8f26b625eadeb1da
Showing with 1 addition and 1 deletion.
  1. +1 −1 data/Makefile.am
View
@@ -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

0 comments on commit 714399b

Please sign in to comment.