Software Update:GeneratingSnippetsAndPartialsForReleases: Difference between revisions
Jump to navigation
Jump to search
(New page: =Generating snippets and partial updates for releases= For releases of Firefox and Thunderbird, the Build & Release team at Mozilla Corp uses a program called [http://mxr.mozilla.org/seam...) |
No edit summary |
||
Line 1: | Line 1: | ||
For releases of Firefox and Thunderbird, the Build & Release team at Mozilla Corp uses a program called [http://mxr.mozilla.org/seamonkey/source/tools/patcher/ patcher2]. This document describes the basics of how to use it. | |||
=Define variables= | |||
PRODUCT=firefox | |||
VERSION=2.0.0.7 | |||
=Getting the code= | |||
# create a working dir | |||
mkdir $PRODUCT-$VERSION-updates/ | |||
cd $PRODUCT-$VERSION-updates/ | |||
export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org | |||
# pull patcher2 and the MozBuild support library | |||
cvs co -d patcher mozilla/tools/patcher | |||
cd patcher | |||
cvs co -d MozBuild mozilla/tools/release/MozBuild | |||
=Create/update config= | |||
=Make updates= | |||
# build tools | |||
./patcher2.pl --build-tools --app=${PRODUCT} \ | |||
--config=../config/moz180-branch-patcher2.cfg 2>&1 | tee ${PRODUCT}_build-tools.log | |||
# download complete MARs | |||
./patcher2.pl --download --app=${PRODUCT} \ | |||
--config=../config/moz180-branch-patcher2.cfg 2>&1 | tee ${PRODUCT}-download.log | |||
# Create partial patches and snippets | |||
./patcher2.pl --create-patches --app=${PRODUCT} \ | |||
--config=../config/moz180-branch-patcher2.cfg 2>&1 | tee ${PRODUCT}-create-patches.log | |||
=Publish updates= |
Revision as of 17:29, 9 October 2007
For releases of Firefox and Thunderbird, the Build & Release team at Mozilla Corp uses a program called patcher2. This document describes the basics of how to use it.
Define variables
PRODUCT=firefox VERSION=2.0.0.7
Getting the code
# create a working dir mkdir $PRODUCT-$VERSION-updates/ cd $PRODUCT-$VERSION-updates/ export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org # pull patcher2 and the MozBuild support library cvs co -d patcher mozilla/tools/patcher cd patcher cvs co -d MozBuild mozilla/tools/release/MozBuild
Create/update config
Make updates
# build tools ./patcher2.pl --build-tools --app=${PRODUCT} \ --config=../config/moz180-branch-patcher2.cfg 2>&1 | tee ${PRODUCT}_build-tools.log # download complete MARs ./patcher2.pl --download --app=${PRODUCT} \ --config=../config/moz180-branch-patcher2.cfg 2>&1 | tee ${PRODUCT}-download.log # Create partial patches and snippets ./patcher2.pl --create-patches --app=${PRODUCT} \ --config=../config/moz180-branch-patcher2.cfg 2>&1 | tee ${PRODUCT}-create-patches.log