[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torbirdy/develop] Make TorBirdy XPI deterministic (#15459)
commit caaf2b593ba2a116ac8f63416bb311bcdd140ee2
Author: Sukhbir Singh <sukhbir@xxxxxxxxxxxxxx>
Date: Tue May 3 15:29:52 2016 -0400
Make TorBirdy XPI deterministic (#15459)
---
Makefile | 6 ++++++
1 file changed, 6 insertions(+)
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits