summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile295
1 files changed, 2 insertions, 293 deletions
diff --git a/Makefile b/Makefile
index 3e33b47..249ee6a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,293 +1,2 @@
-# Created by Fabien Tassin <fta@sofaraway.org> in Sept 2007
-
-MOZ_CLIENT = mozilla/client.mk
-CVS_LOC = :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
-
-STAMP ?= stamped
-
-ifdef DEBIAN_TAG
-DEBIAN_LTAG = $(shell echo $(DEBIAN_TAG) | sed -e 's/=.*//')
-DEBIAN_DTAG = $(shell echo $(DEBIAN_TAG) | sed -e 's/.*=//')
-DEBIAN_CO_TAG = -r $(DEBIAN_LTAG)
-DEBIAN_MOZ_CO_TAG = MOZ_CO_TAG=$(DEBIAN_LTAG)
-else
-ifdef DEBIAN_DATE
-DEBIAN_CO_DATE = $(shell echo "-D \"$(DEBIAN_DATE)\"" | sed -e 's/[rt]/ /')
-endif
-ifdef DEBIAN_BRANCH
-DEBIAN_CO_TAG = -r $(DEBIAN_BRANCH)
-endif
-endif
-
-DEBIAN_EXCLUDE_SCRIPT := remove.binonly.sh
-NOBINONLY := nobinonly
-
-############################################################################
-DEBIAN_FF3_TARGET := firefox-orig
-DEBIAN_FF3_APPNAME := firefox-3.0
-DEBIAN_FF3_FILE := mozilla/browser/config/version.txt
-DEBIAN_FF3_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_XUL_TARGET := xulrunner-orig
-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
-DEBIAN_NSS_URL := 'http://bonsai.mozilla.org/cvsquery.cgi?treeid=NSS&module=all&branch=HEAD&branchtype=match&dir=mozilla%2Fdbm+mozilla%2Fsecurity%2Fnss+mozilla%2Fsecurity%2Fcoreconf+mozilla%2Fsecurity%2Fdbm&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=month&mindate=&maxdate=&cvsroot=%2Fcvsroot'
-
-DEBIAN_NSPR_TARGET := nspr-orig
-DEBIAN_NSPR_APPNAME := nspr
-DEBIAN_NSPR_FILE := mozilla/nsprpub/configure.in
-DEBIAN_NSPR_URL := 'http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=mozilla%2Fnsprpub&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=1177522884&maxdate=1588258884&cvsroot=%2Fcvsroot'
-
-DEBIAN_SM2_TARGET := seamonkey-orig
-DEBIAN_SM2_APPNAME := seamonkey-2.0
-DEBIAN_SM2_FILE := mozilla/suite/config/version.txt
-DEBIAN_SM2_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_SB0_TARGET := sunbird-orig
-DEBIAN_SB0_APPNAME := lightning-sunbird
-DEBIAN_SB0_FILE := mozilla/calendar/sunbird/config/version.txt
-DEBIAN_SB0_URL := 'http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=CalendarClient&branch=MOZILLA_1_8_BRANCH&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=week&mindate=&maxdate=&cvsroot=%2Fcvsroot'
-
-############################################################################
-
-EXCLUDE := --exclude=CVS --exclude=.cvsignore
-GET := wget -O - -q --read-timeout=10 --user-agent='' --tries=3 $$URL 2> /dev/null | grep "href='http://webtools" | head -1 | tr '<>' '@' | cut -d@ -f5 | tr -d ':-' | sed -e 's/&nbsp;/t/'
-
-help:
- @echo "Usage:"
- @echo " make client Fetch and patch mozilla client"
- @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_SM2_TARGET) $(DEBIAN_SM2_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)
- @printf " make %-20s Create %s sources tarball (MOZILLA_1_8_BRANCH)\n" $(DEBIAN_SB0_TARGET) $(DEBIAN_SB0_APPNAME)
- @echo
- @echo " you can also recreate a tarball from a specific timestamp by specifying"
- @echo " DEBIAN_DATE in the form YYYYMMDDtHHMM"
- @echo
- @echo " Ex: make DEBIAN_DATE=20070911t1711 nspr-orig"
- @echo
- @echo " you can fetch a specific branch by specifying DEBIAN_BRANCH."
- @echo
- @echo " Ex: make DEBIAN_BRANCH=MOZILLA_1_9a8_MINIBRANCH firefox-orig"
- @echo
- @echo " It is also possible to use both DEBIAN_DATE and DEBIAN_BRANCH to fetch"
- @echo " the content of a branch at a particular date"
- @echo
- @echo " Alternatively, you can fetch a specific CO tag using DEBIAN_TAG."
- @echo " See 'make status' for a list of available tags."
- @echo
- @echo " Ex: make DEBIAN_TAG=MOZILLA_1_9a8_RELEASE=3.0~alpha8 firefox-orig"
-
-deps:
- @if [ ! -f /usr/bin/cvs ] ; then echo "**ERROR** Depends on missing cvs. Abort"; exit 1; fi
- @if [ ! -f /usr/bin/quilt ] ; then echo "**ERROR** Depends on missing quilt. Abort"; exit 1; fi
- @if [ ! -f /usr/bin/wget ] ; then echo "**ERROR** Depends on missing wget. Abort"; exit 1; fi
-
-$(MOZ_CLIENT): deps
- cvs -d $(CVS_LOC) co $(DEBIAN_CO_DATE) $(DEBIAN_CO_TAG) $@
- rm -rf .pc $(STAMP)
-
-client18: deps
- cvs -d $(CVS_LOC) co -r MOZILLA_1_8_BRANCH $(DEBIAN_CO_DATE) $(DEBIAN_CO_TAG) $(MOZ_CLIENT)
-
-client: $(STAMP)
-
-$(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_SM2_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):
- cvs -d $(CVS_LOC) co $(DEBIAN_CO_DATE) $(DEBIAN_CO_TAG) $@
-$(DEBIAN_SB0_FILE):
- cvs -d $(CVS_LOC) co -r MOZILLA_1_8_BRANCH $(DEBIAN_CO_DATE) $(DEBIAN_CO_TAG) $@
-
-status: $(MOZ_CLIENT)
- ( cd mozilla ; cvs status -v client.mk )
-
-$(STAMP): $(MOZ_CLIENT)
- @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* $(MOZ_CLIENT) mozilla
-
-all: $(DEBIAN_FF3_TARGET) $(DEBIAN_XUL_TARGET) $(DEBIAN_NSS_TARGET)
-
-$(DEBIAN_FF3_TARGET): $(MOZ_CLIENT) $(STAMP) $(DEBIAN_FF3_FILE)
- URL=$(DEBIAN_FF3_URL) ; \
- if [ "$(DEBIAN_TAG)" != "" ] ; then \
- DEBIAN_FF3_VERSION=$(DEBIAN_DTAG) ; \
- DEBIAN_FF3_DATE=$$DEBIAN_FF3_VERSION ; \
- make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=xulbrowser $(DEBIAN_MOZ_CO_TAG) ; \
- else \
- if [ "$(DEBIAN_DATE)" != "" ] ; then DEBIAN_FF3_DATE=$(DEBIAN_DATE) ; else DEBIAN_FF3_DATE=`$(GET)` ; fi ; \
- DEBIAN_FF3_CO_DATE=`echo "$$DEBIAN_FF3_DATE" | sed -e 's/[rt]/ /'` ; \
- DEBIAN_FF3_VERSION="`cat $(DEBIAN_FF3_FILE) | sed -e 's/pre//; s/a\([0-9]*\)/~alpha\1/; s/b\([0-9]*\)/~b\1/; s/$$/~cvs'"$$DEBIAN_FF3_DATE"'/'`" ; \
- make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=xulbrowser MOZ_CO_DATE="$$DEBIAN_FF3_CO_DATE" ; \
- fi ; \
- ( cd mozilla ; sh ../$(DEBIAN_EXCLUDE_SCRIPT) > REMOVED+$(NOBINONLY).txt 2>&1 ) ; \
- DEBIAN_FF3_VERSION=$$DEBIAN_FF3_VERSION+$(NOBINONLY) ; \
- rm -rf $(DEBIAN_FF3_APPNAME)-$$DEBIAN_FF3_VERSION $(DEBIAN_FF3_APPNAME)_$$DEBIAN_FF3_VERSION.orig.tar.gz && \
- mkdir $(DEBIAN_FF3_APPNAME)-$$DEBIAN_FF3_VERSION && \
- echo "Creating $(DEBIAN_FF3_APPNAME)-$$DEBIAN_FF3_VERSION/browser-snapshot-$$DEBIAN_FF3_DATE.tar.bz2 ..." && \
- tar jcf $(DEBIAN_FF3_APPNAME)-$$DEBIAN_FF3_VERSION/browser-snapshot-$$DEBIAN_FF3_DATE.tar.bz2 $(EXCLUDE) mozilla && \
- rm -f $(DEBIAN_FF3_APPNAME)_$$DEBIAN_FF3_VERSION.orig.tar.gz && \
- echo "Creating $(DEBIAN_FF3_APPNAME)_$$DEBIAN_FF3_VERSION.orig.tar.gz ..." && \
- 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 ; \
- ls -l $(DEBIAN_FF3_APPNAME)_$$DEBIAN_FF3_VERSION.orig.tar.gz
-
-$(DEBIAN_XUL_TARGET): $(MOZ_CLIENT) $(STAMP) $(DEBIAN_XUL_FILE)
- URL=$(DEBIAN_XUL_URL) ; \
- if [ "$(DEBIAN_TAG)" != "" ] ; then \
- DEBIAN_XUL_VERSION=$(DEBIAN_DTAG) ; \
- make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=xulrunner $(DEBIAN_MOZ_CO_TAG) ; \
- else \
- if [ "$(DEBIAN_DATE)" != "" ] ; then DEBIAN_XUL_DATE=$(DEBIAN_DATE) ; else DEBIAN_XUL_DATE=`$(GET)` ; fi ; \
- DEBIAN_XUL_CO_DATE="`echo $$DEBIAN_XUL_DATE | sed -e 's/[rt]/ /'`" ; \
- DEBIAN_XUL_VERSION="`tail -1 $(DEBIAN_XUL_FILE) | sed -e 's/pre//; s/\([ab]\)\([0-9]*\)/~\1\2/'`~cvs$$DEBIAN_XUL_DATE" ; \
- make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=xulrunner MOZ_CO_DATE="$$DEBIAN_XUL_CO_DATE" ; \
- fi ; \
- ( cd mozilla ; sh ../$(DEBIAN_EXCLUDE_SCRIPT) > REMOVED+$(NOBINONLY).txt 2>&1 ) ; \
- DEBIAN_XUL_VERSION=$$DEBIAN_XUL_VERSION+$(NOBINONLY) ; \
- mkdir $(DEBIAN_XUL_APPNAME)-$$DEBIAN_XUL_VERSION && \
- mv mozilla $(DEBIAN_XUL_APPNAME)-$$DEBIAN_XUL_VERSION && \
- rm -f $(DEBIAN_XUL_APPNAME)_$$DEBIAN_XUL_VERSION.orig.tar.gz && \
- echo "Creating $(DEBIAN_XUL_APPNAME)_$$DEBIAN_XUL_VERSION.orig.tar.gz ..." && \
- tar zcf $(DEBIAN_XUL_APPNAME)_$$DEBIAN_XUL_VERSION.orig.tar.gz $(EXCLUDE) $(DEBIAN_XUL_APPNAME)-$$DEBIAN_XUL_VERSION && \
- 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=$(DEBIAN_DTAG) ; \
- 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 ; \
- ( cd mozilla ; sh ../$(DEBIAN_EXCLUDE_SCRIPT) > REMOVED+$(NOBINONLY).txt 2>&1 ) ; \
- DEBIAN_TB_VERSION=$$DEBIAN_TB_VERSION+$(NOBINONLY) ; \
- 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_SM2_TARGET): $(MOZ_CLIENT) $(STAMP) $(DEBIAN_SM2_FILE)
- URL=$(DEBIAN_SM2_URL) ; \
- if [ "$(DEBIAN_TAG)" != "" ] ; then \
- DEBIAN_SM2_VERSION=$(DEBIAN_DTAG) ; \
- make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=suite $(DEBIAN_MOZ_CO_TAG) ; \
- else \
- if [ "$(DEBIAN_DATE)" != "" ] ; then DEBIAN_SM2_DATE=$(DEBIAN_DATE) ; else DEBIAN_SM2_DATE=`$(GET)` ; fi ; \
- DEBIAN_SM2_CO_DATE="`echo $$DEBIAN_SM2_DATE | sed -e 's/[rt]/ /'`" ; \
- DEBIAN_SM2_VERSION="`tail -1 $(DEBIAN_SM2_FILE) | sed -e 's/pre//; s/\([ab]\)\([0-9]*\)/~\1\2/'`~cvs$$DEBIAN_SM2_DATE" ; \
- make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=suite MOZ_CO_DATE="$$DEBIAN_SM2_CO_DATE" ; \
- fi ; \
- ( cd mozilla ; sh ../$(DEBIAN_EXCLUDE_SCRIPT) > REMOVED+$(NOBINONLY).txt 2>&1 ) ; \
- DEBIAN_SM2_VERSION=$$DEBIAN_SM2_VERSION+$(NOBINONLY) ; \
- mv mozilla $(DEBIAN_SM2_APPNAME)-$$DEBIAN_SM2_VERSION && \
- rm -f $(DEBIAN_SM2_APPNAME)_$$DEBIAN_SM2_VERSION.orig.tar.gz && \
- echo "Creating $(DEBIAN_SM2_APPNAME)_$$DEBIAN_SM2_VERSION.orig.tar.gz ..." && \
- tar zcf $(DEBIAN_SM2_APPNAME)_$$DEBIAN_SM2_VERSION.orig.tar.gz $(EXCLUDE) $(DEBIAN_SM2_APPNAME)-$$DEBIAN_SM2_VERSION && \
- rm -rf cvsco.log* $(STAMP) .pc $(DEBIAN_SM2_APPNAME)-$$DEBIAN_SM2_VERSION ; \
- ls -l $(DEBIAN_SM2_APPNAME)_$$DEBIAN_SM2_VERSION.orig.tar.gz
-
-$(DEBIAN_NSS_TARGET): $(MOZ_CLIENT) $(STAMP) $(DEBIAN_NSS_FILE)
- URL=$(DEBIAN_NSS_URL) ; \
- if [ "$(DEBIAN_TAG)" != "" ] ; then \
- DEBIAN_NSS_VERSION=$(DEBIAN_DTAG) ; \
- make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=nss $(DEBIAN_MOZ_CO_TAG) ; \
- else \
- if [ "$(DEBIAN_DATE)" != "" ] ; then DEBIAN_NSS_DATE=$(DEBIAN_DATE) ; else DEBIAN_NSS_DATE=`$(GET)` ; fi ; \
- DEBIAN_NSS_CO_DATE="`echo $$DEBIAN_NSS_DATE | sed -e 's/[rt]/ /'`" ; \
- DEBIAN_NSS_VERSION="`grep -E '^\#define NSS_V(MAJOR|MINOR|PATCH)' $(DEBIAN_NSS_FILE) | awk '{print $$3}' | tr '\n' '.' | sed -e 's,\.$$,,'`~cvs$$DEBIAN_NSS_DATE" ; \
- make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=nss MOZ_CO_DATE="$$DEBIAN_NSS_CO_DATE" ; \
- fi ; \
- ( cd mozilla ; sh ../$(DEBIAN_EXCLUDE_SCRIPT) > REMOVED+$(NOBINONLY).txt 2>&1 ) ; \
- DEBIAN_NSS_VERSION=$$DEBIAN_NSS_VERSION+$(NOBINONLY) ; \
- mkdir $(DEBIAN_NSS_APPNAME)-$$DEBIAN_NSS_VERSION && \
- mv mozilla $(DEBIAN_NSS_APPNAME)-$$DEBIAN_NSS_VERSION && \
- rm -f $(DEBIAN_NSS_APPNAME)_$$DEBIAN_NSS_VERSION.orig.tar.gz && \
- echo "Creating $(DEBIAN_NSS_APPNAME)_$$DEBIAN_NSS_VERSION.orig.tar.gz ..." && \
- tar zcf $(DEBIAN_NSS_APPNAME)_$$DEBIAN_NSS_VERSION.orig.tar.gz $(EXCLUDE) $(DEBIAN_NSS_APPNAME)-$$DEBIAN_NSS_VERSION && \
- rm -rf cvsco.log* $(STAMP) .pc $(DEBIAN_NSS_APPNAME)-$$DEBIAN_NSS_VERSION ; \
- ls -l $(DEBIAN_NSS_APPNAME)_$$DEBIAN_NSS_VERSION.orig.tar.gz
-
-$(DEBIAN_NSPR_TARGET): $(MOZ_CLIENT) $(STAMP) $(DEBIAN_NSPR_FILE)
- URL=$(DEBIAN_NSPR_URL) ; \
- if [ "$(DEBIAN_TAG)" != "" ] ; then \
- DEBIAN_NSPR_VERSION=$(DEBIAN_DTAG) ; \
- make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=nspr $(DEBIAN_MOZ_CO_TAG) ; \
- else \
- if [ "$(DEBIAN_DATE)" != "" ] ; then DEBIAN_NSPR_DATE=$(DEBIAN_DATE) ; else DEBIAN_NSPR_DATE=`$(GET)` ; fi ; \
- DEBIAN_NSPR_CO_DATE="`echo $$DEBIAN_NSPR_DATE | sed -e 's/[rt]/ /'`" ; \
- DEBIAN_NSPR_VERSION="`grep -E '^MOD_(MAJOR|MINOR|PATCH)_VERSION' $(DEBIAN_NSPR_FILE) | cut -d= -f2 | tr '\n' '.' | sed -e 's,\.$$,,'`~cvs$$DEBIAN_NSPR_DATE" ; \
- make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=nspr MOZ_CO_DATE="$$DEBIAN_NSPR_CO_DATE" ; \
- fi ; \
- ( cd mozilla ; sh ../$(DEBIAN_EXCLUDE_SCRIPT) > REMOVED+$(NOBINONLY).txt 2>&1 ) ; \
- DEBIAN_NSPR_VERSION=$$DEBIAN_NSPR_VERSION+$(NOBINONLY) ; \
- mkdir $(DEBIAN_NSPR_APPNAME)-$$DEBIAN_NSPR_VERSION && \
- mv mozilla $(DEBIAN_NSPR_APPNAME)-$$DEBIAN_NSPR_VERSION && \
- rm -f $(DEBIAN_NSPR_APPNAME)_$$DEBIAN_NSPR_VERSION.orig.tar.gz && \
- echo "Creating $(DEBIAN_NSPR_APPNAME)_$$DEBIAN_NSPR_VERSION.orig.tar.gz ..." && \
- tar zcf $(DEBIAN_NSPR_APPNAME)_$$DEBIAN_NSPR_VERSION.orig.tar.gz $(EXCLUDE) $(DEBIAN_NSPR_APPNAME)-$$DEBIAN_NSPR_VERSION && \
- rm -rf cvsco.log* $(STAMP) .pc $(DEBIAN_NSPR_APPNAME)-$$DEBIAN_NSPR_VERSION ; \
- ls -l $(DEBIAN_NSPR_APPNAME)_$$DEBIAN_NSPR_VERSION.orig.tar.gz
-
-$(DEBIAN_SB0_TARGET): client18 $(DEBIAN_SB0_FILE)
- URL=$(DEBIAN_SB0_URL) ; \
- if [ "$(DEBIAN_TAG)" != "" ] ; then \
- DEBIAN_SB0_VERSION=$(DEBIAN_DTAG) ; \
- make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=calendar $(DEBIAN_MOZ_CO_TAG) ; \
- else \
- if [ "$(DEBIAN_DATE)" != "" ] ; then DEBIAN_SB0_DATE=$(DEBIAN_DATE) ; else DEBIAN_SB0_DATE=`$(GET)` ; fi ; \
- DEBIAN_SB0_CO_DATE="`echo $$DEBIAN_SB0_DATE | sed -e 's/[rt]/ /'`" ; \
- DEBIAN_SB0_VERSION="`tail -1 $(DEBIAN_SB0_FILE) | sed -e 's/pre//; s/\([ab]\)\([0-9]*\)/~\1\2/'`~cvs$$DEBIAN_SB0_DATE" ; \
- make -f $(MOZ_CLIENT) checkout -r MOZILLA_1_8_BRANCH MOZ_CO_PROJECT=calendar MOZ_CO_DATE="$$DEBIAN_SB0_CO_DATE" ; \
- fi ; \
- ( cd mozilla ; sh ../$(DEBIAN_EXCLUDE_SCRIPT) > REMOVED+$(NOBINONLY).txt 2>&1 ) ; \
- DEBIAN_SB0_VERSION=$$DEBIAN_SB0_VERSION+$(NOBINONLY) ; \
- rm -rf $(DEBIAN_SB0_APPNAME)-$$DEBIAN_SB0_VERSION $(DEBIAN_SB0_APPNAME)_$$DEBIAN_SB0_VERSION.orig.tar.gz && \
- mkdir $(DEBIAN_SB0_APPNAME)-$$DEBIAN_SB0_VERSION && \
- echo "Creating $(DEBIAN_SB0_APPNAME)-$$DEBIAN_SB0_VERSION/$(DEBIAN_SB0_APPNAME)-$$DEBIAN_SB0_VERSION-source.tar.bz2 ..." && \
- tar jcf $(DEBIAN_SB0_APPNAME)-$$DEBIAN_SB0_VERSION/$(DEBIAN_SB0_APPNAME)-$$DEBIAN_SB0_VERSION-source.tar.bz2 $(EXCLUDE) mozilla && \
- rm -f $(DEBIAN_SB0_APPNAME)_$$DEBIAN_SB0_VERSION.orig.tar.gz && \
- echo "Creating $(DEBIAN_SB0_APPNAME)_$$DEBIAN_SB0_VERSION.orig.tar.gz ..." && \
- tar zcf $(DEBIAN_SB0_APPNAME)_$$DEBIAN_SB0_VERSION.orig.tar.gz $(DEBIAN_SB0_APPNAME)-$$DEBIAN_SB0_VERSION && \
- rm -rf mozilla cvsco.log* $(STAMP) .pc $(DEBIAN_SB0_APPNAME)-$$DEBIAN_SB0_VERSION ; \
- ls -l $(DEBIAN_SB0_APPNAME)_$$DEBIAN_SB0_VERSION.orig.tar.gz
-
-.PHONY : all clean help deps client client18 unpatch status
+include firefox.mk
+get-orig-source: mozclient-get-orig-source