summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile54
-rw-r--r--src/firefox-3.0.mk.in31
-rw-r--r--src/lightning-sunbird.mk.in32
-rw-r--r--src/mozclient.mk.in204
-rw-r--r--src/nspr.mk.in30
-rw-r--r--src/nss.mk.in30
-rw-r--r--src/remove.binonly.sh114
-rw-r--r--src/seamonkey-2.0.mk.in30
-rw-r--r--src/thunderbird-3.0.mk.in30
-rw-r--r--src/xulrunner-1.9.mk.in30
10 files changed, 585 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..ef645e9
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,54 @@
+# -*- mode: makefile; coding: utf-8 -*-
+
+# Copyright (c) 2007 Fabien Tassin <fta@sofaraway.org>
+# Description: Build system for mozclient
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+PREFIX ?= /usr
+
+DATADIR = $(PREFIX)/share/mozclient
+
+mk_files = \
+ firefox-3.0.mk \
+ lightning-sunbird.mk \
+ nspr.mk \
+ nss.mk \
+ seamonkey-2.0.mk \
+ thunderbird-3.0.mk \
+ xulrunner-1.9.mk \
+ mozclient.mk \
+ $(NULL)
+
+extra_mk_files = \
+ remove.binonly.sh \
+ $(NULL)
+
+%.mk: %.mk.in
+ cat $< | sed \
+ -e "s|^\(include\) \(.*\)|\1 $(DATADIR)/\2|" \
+ -e "s|^\(MOZCLIENT_EXCLUDE_SCRIPT.*=[ ][ ]*\)\(.*\)|\1$(DATADIR)/\2|" \
+ > $@
+ chmod 644 $@
+
+build: $(mk_files)
+
+install: $(mk_files) $(extra_mk_files)
+ install -m 755 -d $(DESTDIR)$(DATADIR)
+ install -m 644 $^ $(DESTDIR)$(DATADIR)
+
+clean:
+ rm -f $(mk_files)
diff --git a/src/firefox-3.0.mk.in b/src/firefox-3.0.mk.in
new file mode 100644
index 0000000..b0e65a1
--- /dev/null
+++ b/src/firefox-3.0.mk.in
@@ -0,0 +1,31 @@
+# -*- mode: makefile; coding: utf-8 -*-
+
+# Copyright (c) 2007 Fabien Tassin <fta@sofaraway.org>
+# Description: Project firefox 3.0
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+MOZCLIENT_TARGET := firefox-3.0-orig
+MOZCLIENT_APPNAME := firefox-3.0
+MOZCLIENT_PROJECT := xulbrowser
+MOZCLIENT_FILE := mozilla/browser/config/version.txt
+MOZCLIENT_GETVERSION := sed -e 's/pre//; s/a\([0-9]*\)/~alpha\1/; s/b\([0-9]*\)/~b\1/' $(MOZCLIENT_FILE)
+MOZCLIENT_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'
+MOZCLIENT_GETDATE = wget -O - -q --read-timeout=10 --user-agent='' --tries=3 $(MOZCLIENT_URL) 2> /dev/null | grep "href='http://webtools" | head -1 | tr '<>' '@' | cut -d@ -f5 | tr -d ':-' | sed -e 's/&nbsp;/t/'
+MOZCLIENT_EMBEDDED := 1
+MOZCLIENT_WANTMOZDIR := 1
+
+include mozclient.mk
diff --git a/src/lightning-sunbird.mk.in b/src/lightning-sunbird.mk.in
new file mode 100644
index 0000000..d01abf9
--- /dev/null
+++ b/src/lightning-sunbird.mk.in
@@ -0,0 +1,32 @@
+# -*- mode: makefile; coding: utf-8 -*-
+
+# Copyright (c) 2007 Fabien Tassin <fta@sofaraway.org>
+# Description: Project Sunbird 0.* (MOZILLA_1_8_BRANCH)
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+MOZCLIENT_TARGET := lightning-sunbird-orig
+MOZCLIENT_APPNAME := lightning-sunbird
+MOZCLIENT_PROJECT := calendar
+MOZCLIENT_BRANCH := MOZILLA_1_8_BRANCH
+MOZCLIENT_FILE := mozilla/calendar/sunbird/config/version.txt
+MOZCLIENT_GETVERSION := tail -1 $(MOZCLIENT_FILE) | sed -e 's/pre//; s/\([ab]\)\([0-9]*\)/~\1\2/'
+MOZCLIENT_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'
+MOZCLIENT_GETDATE = wget -O - -q --read-timeout=10 --user-agent='' --tries=3 $(MOZCLIENT_URL) 2> /dev/null | grep "href='http://webtools" | head -1 | tr '<>' '@' | cut -d@ -f5 | tr -d ':-' | sed -e 's/&nbsp;/t/'
+MOZCLIENT_EMBEDDED := 1
+MOZCLIENT_WANTMOZDIR := 1
+
+include mozclient.mk
diff --git a/src/mozclient.mk.in b/src/mozclient.mk.in
new file mode 100644
index 0000000..f81fc1e
--- /dev/null
+++ b/src/mozclient.mk.in
@@ -0,0 +1,204 @@
+# -*- mode: makefile; coding: utf-8 -*-
+
+# Copyright (c) 2007 Fabien Tassin <fta@sofaraway.org>
+# Description: The core of mozclient
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+#####################################################################
+
+# Don't include this file directly, include one of the project.mk
+# file instead, which will include this file for you.
+
+# The caller could specify the following parameters:
+# DEBIAN_DATE in the form YYYYMMDDtHHMM
+# ex: DEBIAN_DATE=20070911t1711
+# or
+# DEBIAN_TAG in the form CVS_TAG=debian_version
+# ex: DEBIAN_TAG=FIREFOX_3_0b2_RC1=3.0~b2~rc1
+
+# The following targets are available to the caller:
+# - get-orig-source
+# Build a tarball according to parameters from project.mk
+# and optionally using either DEBIAN_DATE or DEBIAN_TAG
+# - mozclient-status
+# List all the registered CVS tags from upstream server
+
+# project.mk contains the following parameters
+# - MOZCLIENT_TARGET (mandatory): a label, usually 'project-orig'
+# - MOZCLIENT_APPNAME (mandatory): package name
+# - MOZCLIENT_PROJECT (mandatory): CVS project name
+# - MOZCLIENT_BRANCH (optional): CVS branch name
+# - MOZCLIENT_FILE (mandatory): source file containing the version
+# - MOZCLIENT_GETVERSION (mandatory): how to transform the version
+# - MOZCLIENT_URL (mandatory): an URL (usually on Bonsai) listing commits
+# - MOZCLIENT_GETDATE (mandatory): get the last commit date for the project
+# - MOZCLIENT_EMBEDDED (optional): create an embedded tarball (default: 0)
+# - MOZCLIENT_WANTMOZDIR (optional): should the root dir be 'mozilla'?
+# (default: 0 unless MOZCLIENT_EMBEDDED=1)
+
+# Example with firefox-3.0:
+#
+# - in debian/control, add mozclient to Build-Depends
+# - in debian/rules, add:
+# include /usr/share/mozclient/firefox-3.0.mk
+#
+# That's it. You've gained get-orig-source.
+#
+# You can now call it:
+# - debian/rules get-orig-source
+# => firefox-3.0_3.0~b2~cvs20071120t1456+nobinonly.orig.tar.gz
+#
+# - debian/rules get-orig-source DEBIAN_DATE=20070914t1713
+# => firefox-3.0_3.0~a8~cvs20070914t1713+nobinonly.orig.tar.gz
+#
+# - debian/rules get-orig-source DEBIAN_TAG=FIREFOX_3_0b2_RC1=3.0~b2~rc1
+# => firefox-3.0_3.0~b2~rc1+nobinonly.orig.tar.gz
+
+# Notes:
+# - the script 'remove.binonly.sh' is applied to all projects, in order
+# to remove binary-only files before packing. Traces of the cleaning
+# are preserved inside that resulting tarball in REMOVED+nobinonly.txt.
+# If nothing has been removed, the log and the "+nobinonly" signature
+# are both dropped.
+
+MOZ_CLIENT = mozilla/client.mk
+MOZCLIENT_CVS_LOC = :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
+
+MOZCLIENT_STAMP ?= stamped
+MOZCLIENT_TMP := mozclient-tmp
+
+MOZCLIENT_EXCLUDE_SCRIPT := remove.binonly.sh
+NOBINONLY := nobinonly
+
+TAR_EXCLUDE := --exclude=CVS --exclude=.cvsignore
+
+ifdef DEBIAN_TAG
+DEBIAN_DATE = $(NULL)
+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
+DEBIAN_MOZ_CO_TAG = $(NULL)
+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
+
+############################################################################
+
+mozclient-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
+
+# Get the client
+ifneq (,$(MOZCLIENT_BRANCH))
+$(MOZ_CLIENT): MOZCLIENT_TBRANCH = -r $(MOZCLIENT_BRANCH)
+else
+$(MOZ_CLIENT): MOZCLIENT_TBRANCH = $(NULL)
+endif
+$(MOZ_CLIENT): mozclient-deps
+ rm -rf $(MOZCLIENT_TMP)
+ mkdir $(MOZCLIENT_TMP)
+ cd $(MOZCLIENT_TMP) && cvs -d $(MOZCLIENT_CVS_LOC) co $(MOZCLIENT_TBRANCH) $(DEBIAN_CO_DATE) $(DEBIAN_CO_TAG) $@
+
+mozclient-client: $(MOZCLIENT_TMP)/$(MOZCLIENT_STAMP)
+
+# List all tags
+mozclient-status: $(MOZ_CLIENT)
+ cd $(MOZCLIENT_TMP)/mozilla && cvs status -v client.mk
+
+# Patch
+# - don't patch when a branch name is specified
+mozclient-patch: $(MOZCLIENT_TMP)/$(MOZCLIENT_STAMP)
+
+$(MOZCLIENT_TMP)/$(MOZCLIENT_STAMP): $(MOZ_CLIENT)
+ifeq (,$(MOZCLIENT_BRANCH))
+ if [ ! -L $(MOZCLIENT_TMP)/patches ] ; then ln -s ../../patches $(MOZCLIENT_TMP)/patches ; fi
+ cd $(MOZCLIENT_TMP) && quilt --quiltrc /dev/null push -a || test $$? = 2
+endif
+ touch $(MOZCLIENT_TMP)/$(MOZCLIENT_STAMP)
+
+# Unpatch
+mozclient-unpatch:
+ifeq (,$(MOZCLIENT_BRANCH))
+ cd $(MOZCLIENT_TMP) && quilt --quiltrc /dev/null pop -a -R || test $$? = 2
+endif
+ rm -rf $(MOZCLIENT_TMP)/.pc $(MOZCLIENT_TMP)/$(MOZCLIENT_STAMP) $(MOZCLIENT_TMP)/patches
+
+# Clean
+mozclient-clean:
+ rm -rf $(MOZCLIENT_TMP)
+
+# Checkout using either a TAG, a date or nothing (last commit date)
+ifneq (,$(DEBIAN_TAG))
+mozclient-checkout: MOZCLIENT_DATE = $(NULL)
+else
+ifneq (,$(DEBIAN_DATE))
+mozclient-checkout: MOZCLIENT_DATE = MOZ_CO_DATE="$(DEBIAN_DATE)"
+else
+mozclient-checkout: DEBIAN_DATE = $(shell $(MOZCLIENT_GETDATE))
+mozclient-checkout: MOZCLIENT_DATE = MOZ_CO_DATE="$(shell echo $(DEBIAN_DATE) | sed -e 's/[rt]/ /')"
+endif
+endif
+mozclient-checkout:
+ @echo DEBIAN_DATE=$(DEBIAN_DATE)
+ cd $(MOZCLIENT_TMP) && make -f $(MOZ_CLIENT) checkout MOZ_CO_PROJECT=$(MOZCLIENT_PROJECT) $(MOZCLIENT_DATE) $(DEBIAN_MOZ_CO_TAG)
+ @echo DEBIAN_DATE=$(DEBIAN_DATE)
+ echo $(DEBIAN_DATE) > $(MOZCLIENT_TMP)/.date
+
+# Remove bin-only files using the remove.binonly.sh script.
+# Keep a log in REMOVED+nobinonly.txt
+mozclient-remove-bin:
+ cd $(MOZCLIENT_TMP)/mozilla && sh ../../$(MOZCLIENT_EXCLUDE_SCRIPT) > REMOVED+$(NOBINONLY).txt 2>&1
+ if [ ! -s $(MOZCLIENT_TMP)/mozilla/REMOVED+$(NOBINONLY).txt ] ; then rm $(MOZCLIENT_TMP)/mozilla/REMOVED+$(NOBINONLY).txt ; fi
+
+# Pack
+# - only use the +nobinonly suffix is something has been deleted
+# - for embedded tarballs (bzipped), use MOZCLIENT_EMBEDDED=1
+# - to preserve the mozilla root dir, use MOZCLIENT_WANTMOZDIR=1
+ifneq (,$(DEBIAN_TAG))
+mozclient-pack: MOZCLIENT_TVERSION = $(DEBIAN_DTAG)
+else
+mozclient-pack: MOZCLIENT_TVERSION = $(shell cd $(MOZCLIENT_TMP) && $(MOZCLIENT_GETVERSION))~cvs$(shell cat $(MOZCLIENT_TMP)/.date)
+endif
+mozclient-pack: MOZCLIENT_VERSION = $(MOZCLIENT_TVERSION)$(shell test -f $(MOZCLIENT_TMP)/mozilla/REMOVED+$(NOBINONLY).txt && echo "+$(NOBINONLY)")
+mozclient-pack:
+ rm -rf $(MOZCLIENT_TMP)/$(MOZCLIENT_APPNAME)-$(MOZCLIENT_VERSION)
+ifneq (,$(findstring 1,$(MOZCLIENT_WANTMOZDIR)$(MOZCLIENT_EMBEDDED)))
+ mkdir $(MOZCLIENT_TMP)/$(MOZCLIENT_APPNAME)-$(MOZCLIENT_VERSION)
+endif
+ifeq (1,$(MOZCLIENT_EMBEDDED))
+ cd $(MOZCLIENT_TMP) && tar jcf $(MOZCLIENT_APPNAME)-$(MOZCLIENT_VERSION)/$(MOZCLIENT_PROJECT)-$(MOZCLIENT_TVERSION)-source.tar.bz2 $(TAR_EXCLUDE) mozilla
+else
+ mv $(MOZCLIENT_TMP)/mozilla $(MOZCLIENT_TMP)/$(MOZCLIENT_APPNAME)-$(MOZCLIENT_VERSION)
+endif
+ rm -f $(MOZCLIENT_APPNAME)_$(MOZCLIENT_VERSION).orig.tar.gz
+ cd $(MOZCLIENT_TMP) && tar zcf ../$(MOZCLIENT_APPNAME)_$(MOZCLIENT_VERSION).orig.tar.gz $(TAR_EXCLUDE) $(MOZCLIENT_APPNAME)-$(MOZCLIENT_VERSION)
+ rm -rf $(MOZCLIENT_TMP)
+ -ls -l $(MOZCLIENT_APPNAME)_$(MOZCLIENT_VERSION).orig.tar.gz
+
+# The real target
+$(MOZCLIENT_TARGET): $(MOZ_CLIENT) $(MOZCLIENT_TMP)/$(MOZCLIENT_STAMP) mozclient-checkout mozclient-remove-bin mozclient-pack
+
+get-orig-source: $(MOZCLIENT_TARGET)
+
+.PHONY: mozclient-patch mozclient-unpatch mozclient-checkout mozclient-remove-bin mozclient-pack $(MOZCLIENT_TARGET) get-orig-source
diff --git a/src/nspr.mk.in b/src/nspr.mk.in
new file mode 100644
index 0000000..ece12da
--- /dev/null
+++ b/src/nspr.mk.in
@@ -0,0 +1,30 @@
+# -*- mode: makefile; coding: utf-8 -*-
+
+# Copyright (c) 2007 Fabien Tassin <fta@sofaraway.org>
+# Description: Project NSPR
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+MOZCLIENT_TARGET := nspr-orig
+MOZCLIENT_APPNAME := nspr
+MOZCLIENT_PROJECT := nspr
+MOZCLIENT_FILE := mozilla/nsprpub/configure.in
+MOZCLIENT_GETVERSION := grep -E '^MOD_(MAJOR|MINOR|PATCH)_VERSION' $(MOZCLIENT_FILE) | cut -d= -f2 | tr '\n' '.' | sed -e 's,\.$$,,'
+MOZCLIENT_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'
+MOZCLIENT_GETDATE = wget -O - -q --read-timeout=10 --user-agent='' --tries=3 $(MOZCLIENT_URL) 2> /dev/null | grep "href='http://webtools" | head -1 | tr '<>' '@' | cut -d@ -f5 | tr -d ':-' | sed -e 's/&nbsp;/t/'
+MOZCLIENT_WANTMOZDIR := 1
+
+include mozclient.mk
diff --git a/src/nss.mk.in b/src/nss.mk.in
new file mode 100644
index 0000000..c9cde27
--- /dev/null
+++ b/src/nss.mk.in
@@ -0,0 +1,30 @@
+# -*- mode: makefile; coding: utf-8 -*-
+
+# Copyright (c) 2007 Fabien Tassin <fta@sofaraway.org>
+# Description: Project NSS
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+MOZCLIENT_TARGET := nss-orig
+MOZCLIENT_APPNAME := nss
+MOZCLIENT_PROJECT := nss
+MOZCLIENT_FILE := mozilla/security/nss/lib/nss/nss.h
+MOZCLIENT_GETVERSION := grep -E '^\#define NSS_V(MAJOR|MINOR|PATCH)' $(MOZCLIENT_FILE) | awk '{print $$3}' | tr '\n' '.' | sed -e 's,\.$$,,'
+MOZCLIENT_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'
+MOZCLIENT_GETDATE = wget -O - -q --read-timeout=10 --user-agent='' --tries=3 $(MOZCLIENT_URL) 2> /dev/null | grep "href='http://webtools" | head -1 | tr '<>' '@' | cut -d@ -f5 | tr -d ':-' | sed -e 's/&nbsp;/t/'
+MOZCLIENT_WANTMOZDIR := 1
+
+include mozclient.mk
diff --git a/src/remove.binonly.sh b/src/remove.binonly.sh
new file mode 100644
index 0000000..df04617
--- /dev/null
+++ b/src/remove.binonly.sh
@@ -0,0 +1,114 @@
+#! /bin/sh
+
+rm -fv ./build/wince/shunt/build/shunt.vcb
+rm -fv ./build/wince/shunt/build/shunt.vco
+#rm -fv ./directory/c-sdk/ldap/examples/macintosh/asearch \(2i\).68k.u
+#rm -fv ./directory/c-sdk/ldap/examples/macintosh/asearch \(4i\).68k.u
+#rm -fv ./directory/c-sdk/ldap/examples/macintosh/asearch PPC.u
+# these are only files there; just do it quick and dirty because I don't understand how to fix the syntax it complains about: this does it:
+rm -fv ./directory/c-sdk/ldap/examples/macintosh/*.u
+rm -fv ./directory/c-sdk/ldap/libraries/macintosh/LDAPClient.mcp
+rm -fv ./modules/oji/tests/script/killer.exe
+rm -fv ./modules/plugin/samples/default/mac/NullPlugin.rsrc
+rm -fv ./modules/plugin/tools/sdk/samples/basic/mac/Basic Plugin.mcp
+rm -fv ./modules/plugin/tools/sdk/samples/basic/mac/Basic.rsrc
+rm -fv ./modules/plugin/tools/sdk/samples/scriptable/mac/Scriptable Plugin.mcp
+rm -fv ./modules/plugin/tools/sdk/samples/scriptable/mac/Scriptable PluginIDL.mcp
+rm -fv ./modules/plugin/tools/sdk/samples/scriptable/mac/Scriptable.rsrc
+rm -fv ./other-licenses/7zstub/firefox/7zSD.sfx
+rm -fv ./toolkit/mozapps/update/src/updater/macbuild/Contents/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
+rm -fv ./toolkit/mozapps/update/src/updater/macbuild/Contents/PkgInfo
+rm -fv ./extensions/manticore/resources/manticore.psd
+rm -fv ./extensions/universalchardet/doc/UniversalCharsetDetection.doc
+rm -fv ./config/bin2rc.exe
+rm -fv ./config/makedep.exe
+rm -fv ./config/mangle.exe
+rm -fv ./config/mantomak.exe
+rm -fv ./embedding/browser/activex/src/pluginhostctrl/cab/redist/ATL.DLL
+rm -fv ./embedding/browser/activex/tests/vbrowse/browser.frx
+rm -fv ./embedding/browser/activex/tests/vbrowse/frmToolBar.frx
+rm -fv ./embedding/browser/cocoa/res/English.lproj/alert.nib/objects.nib
+rm -fv ./embedding/browser/powerplant/resources/cfmAlias.rsrc
+rm -fv ./embedding/browser/powerplant/resources/cfmAliasDebug.rsrc
+rm -fv ./embedding/minimo/mozconfig
+rm -fv ./embedding/qa/testembed/testembed.aps
+rm -fv ./embedding/tests/MSDotNETCSEmbed/MSDotNETCSEmbed.suo
+rm -fv ./embedding/tests/cocoaEmbed/res/English.lproj/MainMenu.nib/objects.nib
+rm -fv ./embedding/wrappers/DotNETEmbed/DotNETEmbed.snk
+rm -fv ./intl/unicharutil/tools/data/case.dat
+rm -fv ./intl/unicharutil/tools/data/cmbcl.dat
+rm -fv ./intl/unicharutil/tools/data/ctype.dat
+rm -fv ./intl/unicharutil/tools/data/decomp.dat
+rm -fv ./intl/unicharutil/tools/data/num.dat
+rm -fv ./js/src/fdlibm/fdlibm.mdp
+rm -fv ./js/src/js.mdp
+rm -fv ./js/src/liveconnect/jsj_nodl.c
+rm -fv ./plugin/oji/JEP/MRJPlugin.plugin/Contents/MacOS/MRJPlugin
+rm -fv ./plugin/oji/JEP/MRJPlugin.plugin/Contents/MacOS/MRJPlugin.jar
+rm -fv ./plugin/oji/JEP/MRJPlugin.plugin/Contents/Resources/MRJPlugin.rsrc
+rm -fv ./plugin/oji/JEP/JavaEmbeddingPlugin.bundle/Contents/MacOS/JavaEmbeddingPlugin
+rm -fv ./plugin/oji/JEP/JavaEmbeddingPlugin.bundle/Contents/Resources/Java/JavaEmbeddingPlugin.jar
+rm -fv ./plugin/oji/MRJ/plugin/Resources/Dialogs.rsrc
+rm -fv ./plugin/oji/MRJ/plugin/Resources/Strings.rsrc
+rm -fv ./plugin/oji/MRJ/plugin/Resources/Version.rsrc
+rm -fv ./plugin/oji/MRJ/plugin/MRJPlugin.jar
+rm -fv ./plugin/oji/MRJ/plugin/netscape.plugin.jar
+rm -fv ./plugin/oji/MRJ/plugin/Source/JMURLConnection
+rm -fv ./plugin/oji/MRJ/testing/ConsoleApplet/ConsoleApplet.mcp
+rm -fv ./plugin/oji/MRJ/testing/JSApplet/JSApplet.mcp
+rm -fv ./plugin/oji/MRJ/testing/SwingApplet/TestApplet.mcp
+rm -fv ./plugin/oji/MRJ/testing/TrivialApplet/MyApplet.mcp
+rm -fv ./plugin/oji/MRJCarbon/MRJSDK/JavaFrameworks/JavaEmbeddingLib
+rm -fv ./plugin/oji/MRJCarbon/plugin/MRJPlugin.jar
+rm -fv ./plugin/oji/MRJCarbon/plugin/Resources/Dialogs.rsrc
+rm -fv ./plugin/oji/MRJCarbon/plugin/Resources/Strings.rsrc
+rm -fv ./plugin/oji/MRJCarbon/plugin/Resources/Version.rsrc
+rm -fv ./xpcom/reflect/xptcall/tests/eVC4/XPTCInvoke_Testing.cpp
+rm -fv ./xpcom/tests/StringFactoringTests/StringTest.mcp
+rm -fv ./xpcom/typelib/xpidl/macplugin/compiler.rsrc
+rm -fv ./xpcom/typelib/xpidl/macplugin/linker.rsrc
+rm -fv ./xpcom/typelib/xpidl/macplugin/panel.rsrc
+rm -fv ./xpcom/typelib/xpidl/macplugin/version.rsrc
+rm -fv ./xpinstall/packager/mac/ASEncoder/build/ASEncoder.mcp
+rm -fv ./xpinstall/packager/mac/ASEncoder/rsrc/ASEncoder.rsrc
+rm -fv ./xpinstall/packager/mac/ASEncoder/src/ASEncoderUsage.script
+rm -fv ./xpinstall/test/pre_checkin.xpi
+rm -fv ./xpinstall/wizard/libxpnet/GUSI/lib/GUSI_Core.PPC.Lib
+rm -fv ./xpinstall/wizard/libxpnet/GUSI/lib/GUSI_ForeignThreads.PPC.Lib
+rm -fv ./xpinstall/wizard/libxpnet/GUSI/lib/GUSI_MPW.PPC.Lib
+rm -fv ./xpinstall/wizard/libxpnet/GUSI/lib/GUSI_MSL.PPC.Lib
+rm -fv ./xpinstall/wizard/libxpnet/GUSI/lib/GUSI_SIOUX.PPC.Lib
+rm -fv ./xpinstall/wizard/libxpnet/GUSI/lib/GUSI_Sfio.PPC.Lib
+rm -fv ./xpinstall/wizard/mac/rsrc/MIWCommon.rsrc
+rm -fv ./xpinstall/wizard/mac/rsrc/Mozilla.rsrc
+rm -fv ./xpinstall/wizard/os2/setuprsc/box_ch_d.bmp
+rm -fv ./xpinstall/wizard/os2/setuprsc/box_chec.bmp
+rm -fv ./xpinstall/wizard/os2/setuprsc/box_unch.bmp
+rm -fv ./gfx/cairo/libpixman/src/pixman-vc71.lib
+rm -fv ./gfx/src/mac/printerplugin/Resources/English.lproj/Localizable.strings
+rm -fv ./gfx/src/mac/nsMacGFX.rsrc
+rm -fv ./layout/doc/SpaceMgr_BlockReflSt_OD.sda
+rm -fv ./layout/doc/object_diagram_template.sda
+rm -fv ./layout/html/tests/block/bugs/RealSnow.jar
+rm -fv ./webshell/tests/viewer/mac/cfmAlias.rsrc
+rm -fv ./webshell/tests/viewer/mac/cfmAliasDebug.rsrc
+rm -fv ./webshell/tests/viewer/mac/viewer.ppob
+rm -fv ./webshell/tests/viewer/mac/viewer.rsrc
+rm -fv ./webshell/tests/viewer/mac/viewercarb.rsrc
+rm -fv ./webshell/tests/viewer/viewer-beos.rsrc
+rm -fv ./xpfe/bootstrap/appleevents/nsAppleEvents.rsrc
+rm -fv ./xpfe/bootstrap/apprunner-beos.rsrc
+rm -fv ./mailnews/mapi/old/tests/mapitest/mapitest.ncb
+rm -fv ./mailnews/mapi/old/tests/mapitest/mapitest.opt
+rm -fv ./toolkit/mozapps/installer/windows/nsis/Processes.dll
+rm -fv ./toolkit/mozapps/installer/windows/nsis/ShellLink.dll
+rm -fv ./toolkit/mozapps/installer/windows/nsis/nsProcess.dll
+
+rm -fv ./toolkit/crashreporter/tools/win32/dump_syms.exe
+
+rm -fvr other-licenses/7zstub/
+rm -fv README/mozilla/README.os2
+
+rm -fv netwerk/protocol/ftp/doc/rfc959.txt
+rm -fv directory/c-sdk/ldap/docs/draft-ietf-ldapext-ldap-c-api-05.txt
+
diff --git a/src/seamonkey-2.0.mk.in b/src/seamonkey-2.0.mk.in
new file mode 100644
index 0000000..b9ac04d
--- /dev/null
+++ b/src/seamonkey-2.0.mk.in
@@ -0,0 +1,30 @@
+# -*- mode: makefile; coding: utf-8 -*-
+
+# Copyright (c) 2007 Fabien Tassin <fta@sofaraway.org>
+# Description: Project SeaMonkey 2.0
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+MOZCLIENT_TARGET := seamonkey-2.0.orig
+MOZCLIENT_APPNAME := seamonkey-2.0
+MOZCLIENT_PROJECT := suite
+MOZCLIENT_FILE := mozilla/suite/config/version.txt
+MOZCLIENT_GETVERSION := tail -1 $(MOZCLIENT_FILE) | sed -e 's/pre//; s/\([ab]\)\([0-9]*\)/~\1\2/'
+MOZCLIENT_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'
+MOZCLIENT_GETDATE = wget -O - -q --read-timeout=10 --user-agent='' --tries=3 $(MOZCLIENT_URL) 2> /dev/null | grep "href='http://webtools" | head -1 | tr '<>' '@' | cut -d@ -f5 | tr -d ':-' | sed -e 's/&nbsp;/t/'
+MOZCLIENT_WANTMOZDIR := 0
+
+include mozclient.mk
diff --git a/src/thunderbird-3.0.mk.in b/src/thunderbird-3.0.mk.in
new file mode 100644
index 0000000..587bb90
--- /dev/null
+++ b/src/thunderbird-3.0.mk.in
@@ -0,0 +1,30 @@
+# -*- mode: makefile; coding: utf-8 -*-
+
+# Copyright (c) 2007 Fabien Tassin <fta@sofaraway.org>
+# Description: Project Thunderbird 3.0
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+MOZCLIENT_TARGET := thunderbird-3.0-orig
+MOZCLIENT_APPNAME := thunderbird-3.0
+MOZCLIENT_PROJECT := mail
+MOZCLIENT_FILE := mozilla/mail/config/version.txt
+MOZCLIENT_GETVERSION := tail -1 $(MOZCLIENT_FILE) | sed -e 's/pre//; s/\([ab]\)\([0-9]*\)/~\1\2/'
+MOZCLIENT_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'
+MOZCLIENT_GETDATE = wget -O - -q --read-timeout=10 --user-agent='' --tries=3 $(MOZCLIENT_URL) 2> /dev/null | grep "href='http://webtools" | head -1 | tr '<>' '@' | cut -d@ -f5 | tr -d ':-' | sed -e 's/&nbsp;/t/'
+MOZCLIENT_WANTMOZDIR := 1
+
+include mozclient.mk
diff --git a/src/xulrunner-1.9.mk.in b/src/xulrunner-1.9.mk.in
new file mode 100644
index 0000000..6cd0c1c
--- /dev/null
+++ b/src/xulrunner-1.9.mk.in
@@ -0,0 +1,30 @@
+# -*- mode: makefile; coding: utf-8 -*-
+
+# Copyright (c) 2007 Fabien Tassin <fta@sofaraway.org>
+# Description: Project XULRunner 1.9
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+MOZCLIENT_TARGET := xulrunner-1.9-orig
+MOZCLIENT_APPNAME := xulrunner-1.9
+MOZCLIENT_PROJECT := xulrunner
+MOZCLIENT_FILE := mozilla/config/milestone.txt
+MOZCLIENT_GETVERSION := tail -1 $(MOZCLIENT_FILE) | sed -e 's/pre//; s/\([ab]\)\([0-9]*\)/~\1\2/'
+MOZCLIENT_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'
+MOZCLIENT_GETDATE = wget -O - -q --read-timeout=10 --user-agent='' --tries=3 $(MOZCLIENT_URL) 2> /dev/null | grep "href='http://webtools" | head -1 | tr '<>' '@' | cut -d@ -f5 | tr -d ':-' | sed -e 's/&nbsp;/t/'
+MOZCLIENT_WANTMOZDIR := 1
+
+include mozclient.mk