summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFabien Tassin <fta@sofaraway.org>2007-09-02 23:10:22 +0000
committerFabien Tassin <fta@sofaraway.org>2007-09-02 23:10:22 +0000
commit9ea70b9aeef70cd410c9c9eafd28d14448742ca2 (patch)
tree16c252c10bd86a9f4065af5facd2d4e148ac9687 /Makefile
* Initial revision. Contains new targets for mozilla/client.mk, ie nss,
nspr and xulbrower.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..edca938
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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)