From c297fe22b4cbb8c8fa7cf639df339e4cfc767e37 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 26 Mar 2012 11:23:00 -0400 Subject: [PATCH] initial --remote support --- .bin/cros-cbuildbot | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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} "$@" -- 2.39.5