3 cd ~/chromiumos || exit 1
5 # cache the sudo timestamp
6 sudo echo "" >/dev/null
8 d=/usr/local/google/home/vapier
9 if [[ ! -d ${d} ]] ; then
14 if mount | grep -qs $d ; then
15 echo "mounts found in $d"
19 if mount | grep -qs $rd ; then
20 echo "mounts found in $rd"
24 if [[ $1 == "--noclean" ]] ; then
28 pushd "${d}" >/dev/null
38 sudo rm -rf "${clean[@]}"
39 sudo find "${d}"/sdks -mtime +3 -delete
43 # find all the buildbot branches
44 echo "Looking up repo branches"
45 repos=$(r b | cut -b4- | awk '$1 == "bb" {
47 # bb | in src/third_party/portage-stable
50 # src/third_party/portage-stable
51 # src/third_party/chromiumos-overlay
60 if [[ -n ${repos} ]] ; then
61 echo "Auto pulling patches from 'bb' branch in repos:"
62 printf '\t%s\n' ${repos}
65 for r in ${repos} ; do
66 r=$(r list | awk -v r="${r}" '$1 == r { print $NF }')
70 set -- -p "${p_flag}" "$@"
73 vexec() { echo "$@"; exec "$@"; }
74 vexec cbuildbot --buildroot=${d} "$@"