#!/bin/bash
+if ! cbuildbot -h >& /dev/null ; then
+ cd ~/chromiumos || exit 1
+fi
+
+# cache the sudo timestamp
+sudo echo "" >/dev/null
+
d=/usr/local/google/home/vapier
if [[ -d ${d} ]] ; then
d+="/trybot"
fi
echo "Cleaning ${d}"
- sudo rm -rf ${d}
+ pushd "${d}" >/dev/null
+ clean=(
+ built-sdk.tbz2
+ chroot
+ new-sdk-chroot
+ #sdks
+ src/build
+ test_results.tgz
+ trybot_archive
+ )
+ sudo rm -rf "${clean[@]}"
+ popd >/dev/null
else
exit 1
fi
# find all the buildbot branches
+echo "Looking up repo branches"
repos=$(r b | cut -b4- | awk '$1 == "bb" {
# Single repo output:
# bb | in src/third_party/portage-stable