summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFabien Tassin <fta@sofaraway.org>2007-10-05 13:57:24 +0000
committerFabien Tassin <fta@sofaraway.org>2007-10-05 13:57:24 +0000
commit3b746cace92f9c5e0b8b97ce8dc1a8cfa137a38d (patch)
tree72749d6453b9d0b46e819ea6e33613e733d921f3 /Makefile
parentcbb5597fee2871609a5fe05d014ef7c028bfef44 (diff)
* Add a target to build thunderbird-3.0 tarballs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d63980f..c9f9740 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,11 @@ DEBIAN_XUL_APPNAME := xulrunner-1.9
DEBIAN_XUL_FILE := mozilla/config/milestone.txt
DEBIAN_XUL_URL := 'http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=SeaMonkeyBrowser&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=week&mindate=&maxdate=&cvsroot=%2Fcvsroot'
+DEBIAN_TB_TARGET := thunderbird-orig
+DEBIAN_TB_APPNAME := thunderbird-3.0
+DEBIAN_TB_FILE := mozilla/mail/config/version.txt
+DEBIAN_TB_URL := 'http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=SeaMonkeyMailNews&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=week&mindate=&maxdate=&cvsroot=%2Fcvsroot'
+
DEBIAN_NSS_TARGET := nss-orig
DEBIAN_NSS_APPNAME := nss
DEBIAN_NSS_FILE := mozilla/security/nss/lib/nss/nss.h
@@ -49,6 +54,7 @@ help:
@echo " make status List all Mozilla CVS tags"
@printf " make %-20s Create %s sources tarball\n" $(DEBIAN_FF3_TARGET) $(DEBIAN_FF3_APPNAME)
@printf " make %-20s Create %s sources tarball\n" $(DEBIAN_XUL_TARGET) $(DEBIAN_XUL_APPNAME)
+ @printf " make %-20s Create %s sources tarball\n" $(DEBIAN_TB_TARGET) $(DEBIAN_TB_APPNAME)
@printf " make %-20s Create %s sources tarball\n" $(DEBIAN_NSS_TARGET) $(DEBIAN_NSS_APPNAME)
@printf " make %-20s Create %s sources tarball\n" $(DEBIAN_NSPR_TARGET) $(DEBIAN_NSPR_APPNAME)
@echo
@@ -82,6 +88,8 @@ $(DEBIAN_FF3_FILE):
cvs -d $(CVS_LOC) co $(DEBIAN_CO_DATE) $(DEBIAN_CO_TAG) $@
$(DEBIAN_XUL_FILE):
cvs -d $(CVS_LOC) co $(DEBIAN_CO_DATE) $(DEBIAN_CO_TAG) $@
+$(DEBIAN_TB_FILE):
+ cvs -d $(CVS_LOC) co $(DEBIAN_CO_DATE) $(DEBIAN_CO_TAG) $@
$(DEBIAN_NSS_FILE):
cvs -d $(CVS_LOC) co $(DEBIAN_CO_DATE) $(DEBIAN_CO_TAG) $@
$(DEBIAN_NSPR_FILE):
@@ -148,6 +156,25 @@ $(DEBIAN_XUL_TARGET): $(MOZ_CLIENT) $(STAMP) $(DEBIAN_XUL_FILE)
rm -rf cvsco.log* $(STAMP) .pc $(DEBIAN_XUL_APPNAME)-$$DEBIAN_XUL_VERSION ; \
ls -l $(DEBIAN_XUL_APPNAME)_$$DEBIAN_XUL_VERSION.orig.tar.gz
+$(DEBIAN_TB_TARGET): $(MOZ_CLIENT) $(STAMP) $(DEBIAN_TB_FILE)
+ URL=$(DEBIAN_TB_URL) ; \
+ if [ "$(DEBIAN_TAG)" != "" ] ; then \
+ DEBIAN_TB_VERSION="`cat $(DEBIAN_TB_FILE) | sed -e 's/\([ab]\)\([0-9]*\)/~\1\2/'`" ; \
+ make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=mail $(DEBIAN_MOZ_CO_TAG) ; \
+ else \
+ if [ "$(DEBIAN_DATE)" != "" ] ; then DEBIAN_TB_DATE=$(DEBIAN_DATE) ; else DEBIAN_TB_DATE=`$(GET)` ; fi ; \
+ DEBIAN_TB_CO_DATE="`echo $$DEBIAN_TB_DATE | sed -e 's/[rt]/ /'`" ; \
+ DEBIAN_TB_VERSION="`tail -1 $(DEBIAN_TB_FILE) | sed -e 's/pre//; s/\([ab]\)\([0-9]*\)/~\1\2/'`~cvs$$DEBIAN_TB_DATE" ; \
+ make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=mail MOZ_CO_DATE="$$DEBIAN_TB_CO_DATE" ; \
+ fi ; \
+ mkdir $(DEBIAN_TB_APPNAME)-$$DEBIAN_TB_VERSION && \
+ mv mozilla $(DEBIAN_TB_APPNAME)-$$DEBIAN_TB_VERSION && \
+ rm -f $(DEBIAN_TB_APPNAME)_$$DEBIAN_TB_VERSION.orig.tar.gz && \
+ echo "Creating $(DEBIAN_TB_APPNAME)_$$DEBIAN_TB_VERSION.orig.tar.gz ..." && \
+ tar zcf $(DEBIAN_TB_APPNAME)_$$DEBIAN_TB_VERSION.orig.tar.gz $(EXCLUDE) $(DEBIAN_TB_APPNAME)-$$DEBIAN_TB_VERSION && \
+ rm -rf cvsco.log* $(STAMP) .pc $(DEBIAN_TB_APPNAME)-$$DEBIAN_TB_VERSION ; \
+ ls -l $(DEBIAN_TB_APPNAME)_$$DEBIAN_TB_VERSION.orig.tar.gz
+
$(DEBIAN_NSS_TARGET): $(MOZ_CLIENT) $(STAMP) $(DEBIAN_NSS_FILE)
URL=$(DEBIAN_NSS_URL) ; \
if [ "$(DEBIAN_TAG)" != "" ] ; then \