]>
git.wh0rd.org - home.git/blob - .bin/cros-cbuildbot
5 for (( i
= 1; i
<= $#; ++i
)) ; do
10 printf "${fmt}" "${!i}"
11 if [[ $i -lt $# ]] ; then
20 cd ~
/chromiumos ||
exit 1
22 # cache the sudo timestamp
23 sudo
echo "" >/dev
/null
25 d
=/usr
/local
/google
/home
/vapier
26 if [[ ! -d ${d} ]] ; then
31 if mount |
grep -qs $d ; then
32 echo "mounts found in $d"
36 if mount |
grep -qs $rd ; then
37 echo "mounts found in $rd"
41 if [[ $1 == "--noclean" ]] ; then
43 elif [[ " $* " != *" --remote "* ]] ; then
45 pushd "${d}" >/dev
/null
55 sudo
rm -rf "${clean[@]}"
56 if [[ -d ${d}/sdks
]] ; then
57 sudo
find "${d}"/sdks
-mtime +3 -delete
62 # find all the buildbot branches
63 echo "Looking up repo branches"
64 repos
=$
(r b | cut
-b4- |
awk '$1 == "bb" {
66 # bb | in src/third_party/portage-stable
69 # src/third_party/portage-stable
70 # src/third_party/chromiumos-overlay
79 if [[ -n ${repos} ]] ; then
80 echo "Auto pulling patches from 'bb' branch in repos:"
81 printf '\t%s\n' ${repos}
84 for r
in ${repos} ; do
85 r
=$
(r list |
awk -v r
="${r}" '$1 == r { print $NF }')
89 set -- -p "${p_flag}" "$@"
92 vexec cbuildbot
--buildroot=${d} "$@"