Last Modified: 2011-10-02
Below you will find a description of the scripts I provide in this folder.
The paths I use are all defined in mozenv.sh (and the first lines of
the .mozconfig-* files) and can be changed as needed. Spaces in paths need to
be either esacped using a backslash (e.g. /c/Program\ Files) or used inside
double quoted strings (e.g. "/c/Program Files"). MOZ_INST_DATASRCDIR is
optional.
- build:
Shell scripts to build and run SeaMonkey. Place files in E:\Mozilla\build.
- linux:
Bash config and configure options.
Place files in $HOME and remove "REMOVETHISPART".
Add line to .bashrc: ". ~/mozenv.sh"
For (K)Ubuntu, run these commands once:
sudo apt-get build-dep seamonkey
sudo apt-get install build-essential mercurial cvs git-core libasound2-dev \
libcurl4-openssl-dev libnotify-dev libiw-dev mesa-common-dev yasm
Optional: ccache (speeds up re-compiling, but needs some setup)
- windows:
Bash config and configure options.
Place files in $HOME (where running "cmd" leaves you) and remove
"REMOVETHISPART".
Run start-msvc8.bat to get a shell (assuming MozillaBuild and VC8 installed).
Recommended terminal: Console 2.00
To use rmpatch/addpatch/patchchk/bzpatch, get "git" (Windows: from Cygwin)
OS-dependent variables are set in mozenv.sh.
Aliases and functions are defined in mozfunctions.sh. Examples:
- "MBU" starts a full unattended hg pull, compile and install
- "MU" will update you repository
- "SM" runs the SeaMonkey build of the final install (result of mozinst)
- "runSM" runs the SeaMonkey build from the OBJDIR (result of make)
- "SMDBG" runs the SeaMonkey build of the final install with a debug console
(useful only if hidden pref browser.dom.window.dump.enabled is set to
true and (on Windows) Profile Manager appears on startup, use -P switch!)
- "mbd" (Mozilla Build Directory) or "mozsrcdir" cd to the source directory
- "bzpatch 123456" downloads Bugzilla attachment 123456 and applies the
patch to the local comm-central repository. Note: patches including copy
actions are better retrieved with bzgetatt and applied using hg import -f
- "bzgetatt " creates a directory for the bug number
contained in the final attachment URL, downloads the Bugzilla attachment
and stores it under the newly created directory under the original name
- "mkpatchdir 654321" creates directory 654321 in the patches directory
and sets the environment variable PATCHDIR accordingly so you can e.g.
run "hg diff . > $PATCHDIR/my.patch"
- "rmpatch $PATCHDIR/my.patch" reverses my.patch (given PATCHDIR is set)
- "patchchk $PATCHDIR/my.patch" checks that my.patch contains no whitespace
errors.
- "mozmochitest-chrome suite/common/downloads/tests/test_select_all.xul" runs
just that one Mochitest (works only if you built without --disable-tests and
--disable-mochitest). To run all chrome tests: "mod; make mochitest-chrome"
- "mozgetnightly 2010 06 01 1.9.1" will get the SeaMonkey 2.0 branch nightly
build from 2010-06-01 for your platform, extract it, create a start script
for you and tell you where it is.