Software Update:GeneratingSnippetsAndPartialsForReleases
Jump to navigation
Jump to search
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