summaryrefslogtreecommitdiff
path: root/Makefile
blob: edca938593694609884013316506e66edb61aeea (plain)
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
35
36
37
38
39
40
41
STAMP ?= stamped

DEBIAN_DATE = $(shell date +%Y%m%d)

DEBIAN_FF3_APPNAME = firefox-trunk
DEBIAN_FF3_VERSION = $(shell cat mozilla/browser/config/version.txt | sed -e 's/a\([0-9]*\)pre/~a\1/')~cvs$(DEBIAN_DATE)

all: mozilla/client.mk mozilla/browser/config/version.txt $(STAMP)


mozilla/browser/config/version.txt:
	cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/browser/config/version.txt

mozilla/client.mk:
	cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk
	rm -rf .pc $(STAMP)

patch: mozilla/client.mk $(STAMP)
$(STAMP):
	@echo Patching
	quilt --quiltrc /dev/null push -a || test $$? = 2
	touch $(STAMP)

unpatch:
	@echo Unpatching
	-quilt --quiltrc /dev/null pop -a -R || test $$? = 2
	rm -rf .pc $(STAMP)

clean: unpatch
	rm -rf cvsco.log* mozilla/client.mk


ff3-orig: xulbrowser-orig

xulbrowser-orig: mozilla/client.mk mozilla/browser/config/version.txt $(STAMP)
	make -f mozilla/client.mk checkout MOZ_CO_PROJECT=xulbrowser
	rm -rf $(DEBIAN_FF3_APPNAME)-$(DEBIAN_FF3_VERSION) $(DEBIAN_FF3_APPNAME)_$(DEBIAN_FF3_VERSION).orig.tar.gz
	mkdir $(DEBIAN_FF3_APPNAME)-$(DEBIAN_FF3_VERSION)
	tar jcf $(DEBIAN_FF3_APPNAME)-$(DEBIAN_FF3_VERSION)/browser-snapshot-$(DEBIAN_DATE).tar.bz2 --exclude=CVS --exclude=.cvsignore mozilla
	tar zcf $(DEBIAN_FF3_APPNAME)_$(DEBIAN_FF3_VERSION).orig.tar.gz $(DEBIAN_FF3_APPNAME)-$(DEBIAN_FF3_VERSION)
	rm -rf mozilla cvsco.log $(STAMP) .pc $(DEBIAN_FF3_APPNAME)-$(DEBIAN_FF3_VERSION)