-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
34 lines (25 loc) · 1.27 KB
/
Makefile
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
29
30
31
32
33
34
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 "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 "ChangeLog" -x "Makefile" -x "gpg.conf" -x "import-translations.sh" -x "README.RELEASE" -x *.git*
clean:
rm -f ../torbirdy-$(VERSION).xpi
git-tag:
git tag -u 0xD255D3F5C868227F -s $(VERSION)
git-push:
git push --tags
git push
sign-release:
gpg -u 0xD255D3F5C868227F -abs ../torbirdy-${VERSION}.xpi$
sha1sum ../torbirdy-${VERSION}.xpi$
push-release:
chmod 664 ../torbirdy-${VERSION}.xpi*
scp ../torbirdy-${VERSION}.xpi* staticiforme.torproject.org:/srv/dist-master.torproject.org/htdocs/torbirdy/
scp ../torbirdy-${VERSION}.xpi staticiforme.torproject.org:/srv/dist-master.torproject.org/htdocs/torbirdy/torbirdy-current.xpi
scp ../torbirdy-${VERSION}.xpi.asc staticiforme.torproject.org:/srv/dist-master.torproject.org/htdocs/torbirdy/torbirdy-current.xpi.asc
ssh staticiforme.torproject.org static-update-component dist.torproject.org
release: sign-release push-release