summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSukhbir Singh <sukhbir@torproject.org>2016-05-03 15:29:52 -0400
committerSukhbir Singh <sukhbir@torproject.org>2016-05-03 15:29:52 -0400
commitcaaf2b593ba2a116ac8f63416bb311bcdd140ee2 (patch)
tree1029bb0223e43925bcaa0d647c7287959cbf764c
parent0f14f38b7fad2983623157eaedc8af294eeb74fc (diff)
Make TorBirdy XPI deterministic (#15459)
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 96214b1..48c661c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,15 @@
SHELL := /bin/bash
VERSION := $(shell cat install.rdf|grep '<em:version>'|cut -d\> -f2|cut -d\< -f1)
+FAKETIME := 200001010000
+
make-xpi:
zip -r ../torbirdy-$(VERSION).xpi * -x "debian/*" -x "patches/*" -x "ChangeLog" -x "Makefile" -x "gpg.conf" -x "import-translations.sh" -x "README.RELEASE"
+make-reproducible:
+ find . -print0 | xargs -0 touch -t $(FAKETIME)
+ zip -X ../torbirdy-$(VERSION).xpi `find . | sort` -x "debian/*" -x "patches/*" -x "ChangeLog" -x "Makefile" -x "gpg.conf" -x "import-translations.sh" -x "README.RELEASE" -x *.git*
+
clean:
rm -f ../torbirdy-$(VERSION).xpi