floppymoose.com home projects about blog  

Sun, 10 Aug 2003
  /programming  
Tcsh Script for Mozilla Build

Here is a tcsh script for building mozilla and saving all the build output to a file.  In this script "~/mozroot" should be replaced by the path to you mozilla root, and "~/mozroot/buildlog.txt" should be replaced by the filename for your build log.

#! /bin/tcsh
echo "starting build" > ~/mozroot/buildlog.txt
date >> ~/mozroot/buildlog.txt
cd ~/mozroot
cvs co mozilla/client.mk >>& ~/mozroot/buildlog.txt
cd mozilla
make -w -f client.mk >>& ~/mozroot/buildlog.txt
echo "finished build" >> ~/mozroot/buildlog.txt
date >> ~/mozroot/buildlog.txt

Why tcsh?  Well, it's the default on macosx and most folks building mozilla probably have some build cruft in their .tcshrc, like:

source /sw/bin/init.csh
setenv CVSROOT :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
 
You can use the above script along with Cronnix to set up an automated daily build on your mac.

  permanent link  
floppaganda
all the moose that's fit to print

all of 2004 (8)
October (3)
July (1)
April (1)
March (2)
February (1)
all of 2003 (22)
November (6)
October (1)
September (5)
August (8)
July (2)


Categories
general
internet
politics
politics:siliconValley
politics:usa
programming
technology