Chromium Code Reviews| Index: scripts/travis-checkout.sh |
| diff --git a/scripts/travis-checkout.sh b/scripts/travis-checkout.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..6c825c1063767d27dd96ce078940f38170ac1938 |
| --- /dev/null |
| +++ b/scripts/travis-checkout.sh |
| @@ -0,0 +1,13 @@ |
| +#!/bin/sh |
| +set -ex |
| + |
|
vapier
2016/04/11 15:09:18
same comment here about using a main func so it's
Ted Mielczarek
2016/04/11 16:30:19
Done.
|
| +(cd; git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git) |
| + |
| +PATH="$HOME/depot_tools:$PATH" |
| + |
| +# Rename the source dir to match what gclient expects. |
| +srcdir=`basename $TRAVIS_BUILD_DIR` |
|
vapier
2016/04/11 15:09:18
please write instead:
srcdir=$(basename "${TRAVI
Ted Mielczarek
2016/04/11 16:30:19
Done.
|
| +cd ${TRAVIS_BUILD_DIR}/.. |
|
vapier
2016/04/11 15:09:18
please quote it
Ted Mielczarek
2016/04/11 16:30:19
Done.
|
| +mv $srcdir src |
|
vapier
2016/04/11 15:09:18
quote & use braces
mv "${srcdir}" src
Ted Mielczarek
2016/04/11 16:30:19
Done.
|
| +gclient config --unmanaged https://github.com/google/breakpad.git |
| +gclient sync |