mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-02 03:58:45 +00:00
28 lines
741 B
Bash
Executable File
28 lines
741 B
Bash
Executable File
#!/bin/bash -vex
|
|
|
|
goanna_dir=$1
|
|
test -d $goanna_dir
|
|
|
|
if [ ! -d "$goanna_dir/gcc" ]; then
|
|
cd $goanna_dir
|
|
curl https://s3-us-west-2.amazonaws.com/test-caching/packages/gcc.tar.xz | tar Jx
|
|
cd -
|
|
fi
|
|
|
|
if [ ! -d "$goanna_dir/sccache" ]; then
|
|
cd $goanna_dir
|
|
curl https://s3-us-west-2.amazonaws.com/test-caching/packages/sccache.tar.bz2 | tar jx
|
|
cd -
|
|
fi
|
|
|
|
# Remove cached moztt directory if it exists when a user supplied a git url/revision
|
|
if [ ! -z $MOZTT_GIT_URL ] || [ ! -z $MOZTT_REVISION ]; then
|
|
echo "Removing cached moztt package"
|
|
rm -rf moztt
|
|
fi
|
|
|
|
moztt_url=${MOZTT_GIT_URL:=https://github.com/mozilla-b2g/moztt}
|
|
moztt_revision=${MOZTT_REVISION:=master}
|
|
|
|
tc-vcs checkout $goanna_dir/moztt $moztt_url $moztt_url $moztt_revision
|