mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
7a97623568
MozReview-Commit-ID: EmLzh977XWi --HG-- extra : rebase_source : 9ef54a5cb83f722bfc5fecee2c2c98e9eea45231
34 lines
990 B
Bash
Executable File
34 lines
990 B
Bash
Executable File
#!/bin/bash -vex
|
|
|
|
# Ensure all the scripts in this dir are on the path....
|
|
DIRNAME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
PATH=$DIRNAME:$PATH
|
|
|
|
WORKSPACE=$1
|
|
|
|
gecko_objdir=/home/worker/objdir-gecko/objdir
|
|
|
|
### Check that require variables are defined
|
|
test -d $WORKSPACE
|
|
test $GECKO_HEAD_REPOSITORY # Should be an hg repository url to pull from
|
|
test $GECKO_BASE_REPOSITORY # Should be an hg repository url to clone from
|
|
test $GECKO_HEAD_REV # Should be an hg revision to pull down
|
|
test $TARGET
|
|
test $VARIANT
|
|
|
|
. ../builder/setup-ccache.sh
|
|
|
|
# Figure out where the remote manifest is so we can use caches for it.
|
|
MANIFEST=$(repository-url.py $GECKO_HEAD_REPOSITORY $GECKO_HEAD_REV b2g/config/$TARGET/sources.xml)
|
|
tc-vcs repo-checkout $WORKSPACE/B2G https://github.com/mozilla-b2g/B2G $MANIFEST
|
|
|
|
# Ensure symlink has been created to gecko...
|
|
rm -f $WORKSPACE/B2G/gecko
|
|
ln -s $WORKSPACE/gecko $WORKSPACE/B2G/gecko
|
|
|
|
debug_flag=""
|
|
if [ 0$B2G_DEBUG -ne 0 ]; then
|
|
debug_flag='--debug'
|
|
fi
|
|
|