From: Mike Frysinger Date: Mon, 26 Mar 2012 15:23:00 +0000 (-0400) Subject: initial --remote support X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c297fe22b4cbb8c8fa7cf639df339e4cfc767e37;p=home.git initial --remote support --- diff --git a/.bin/cros-cbuildbot b/.bin/cros-cbuildbot index aae5a56..79d5503 100755 --- a/.bin/cros-cbuildbot +++ b/.bin/cros-cbuildbot @@ -1,7 +1,16 @@ #!/bin/bash +vexec() { echo "$@"; exec "$@"; } + cd ~/chromiumos || exit 1 +case " $* " in +*" --remote "*) + export GIT_CONFIG=$PWD/.repo/manifests.git/config + vexec cbuildbot "$@" + ;; +esac + # cache the sudo timestamp sudo echo "" >/dev/null @@ -36,7 +45,9 @@ else trybot_archive ) sudo rm -rf "${clean[@]}" - sudo find "${d}"/sdks -mtime +3 -delete + if [[ -d ${d}/sdks ]] ; then + sudo find "${d}"/sdks -mtime +3 -delete + fi popd >/dev/null fi @@ -70,5 +81,4 @@ if [[ -n ${repos} ]] ; then set -- -p "${p_flag}" "$@" fi -vexec() { echo "$@"; exec "$@"; } vexec cbuildbot --buildroot=${d} "$@"