1#!/bin/bash
2set -ex
3
4get_depot_tools() {
5  cd
6  git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
7  PATH="$HOME/depot_tools:$PATH"
8}
9
10gclient_sync() {
11  # Rename the source dir to match what gclient expects.
12  srcdir=$(basename "$TRAVIS_BUILD_DIR")
13  cd "${TRAVIS_BUILD_DIR}"/..
14  mv "${srcdir}" src
15  gclient config --unmanaged https://github.com/google/breakpad.git
16  gclient sync
17}
18
19main() {
20  get_depot_tools
21  gclient_sync
22}
23
24main "$@"
25