mozilla

Compare Revisions

Getting comm-central Source Code Using Mercurial

Change Revisions

Revision 101120:

Revision 101120 by Tonymec on

Revision 101121:

Revision 101121 by Tonymec on

Title:
Getting comm-central Source Code Using Mercurial
Getting comm-central Source Code Using Mercurial
Slug:
Developer_Guide/Source_Code/Getting_comm-central
Developer_Guide/Source_Code/Getting_comm-central
Tags:
NeedsHelp, NeedsEditorialReview, thunderbird, Mercurial, SeaMonkey, "Developing Mozilla", "Build documentation", "MDC Project"
NeedsHelp, NeedsEditorialReview, thunderbird, Mercurial, SeaMonkey, "Developing Mozilla", "Build documentation", "MDC Project"
Content:

Revision 101120
Revision 101121
n13    <h3>n13    <h3 id="Client_Settings">
n22    <h3 name="Checking_out_a_source_tree">n22    <h3 id="Checking_out_a_source_tree" name="Checking_out_a_sour
 >ce_tree">
n25    <h4>n25    <h4 id="Branches">
n45    <h4>n45    <h4 id="Initial_checkout">
n109    <h4>n109    <h4 id="Updating_the_Repository">
n118    <h3 name="Building">n118    <h3 id="Building" name="Building">
n135    <h4 name="Firefox_and_xulrunner">n135    <h4 id="Example" name="Example">
136      Example
137    </h4>
138    <p>
139      The following script will run the checkout, build and packa
 >ge operations in turn, telling you what it does (and when) and st
 >opping at (and displaying) the first nonzero program exit code. I
 >t is written for the <code>bash</code> shell on Linux-i686 and fo
 >r an object directory set with <code>mk_add_options MOZ_OBJDIR=@T
 >OPSRCDIR@/obj-@CONFIG_GUESS@</code> but it can be easily adapted 
 >for other Mozilla building environments:
140    </p>
141    <pre>
142#!/bin/bash
143# set the following to the actual location of your objdir
144# if you want to package an installable archive
145export MY_OBJDIR=obj-i686-pc-linux-gnu
146date &amp;&amp; \
147echo 'python client.py checkout' &amp;&amp; \
148python client.py checkout &amp;&amp; \
149date &amp;&amp; \
150echo 'make -f client.mk build' &amp;&amp; \
151make -f client.mk build &amp;&amp; \
152test -n "$MY_OBJDIR" -a -d $MY_OBJDIR &amp;&amp; \
153date &amp;&amp; \
154echo "make -C $MY_OBJDIR package" &amp;&amp; \
155make -C $MY_OBJDIR package
156echo 'Exit status' $?
157date 
158</pre>
159    <h4 id="Firefox_and_xulrunner" name="Firefox_and_xulrunner">
t145    <h3 name="See_Also">t169    <h3 id="See_Also" name="See_Also">

Back to History