]> git.wh0rd.org Git - home.git/commitdiff
initial --remote support
authorMike Frysinger <vapier@gentoo.org>
Mon, 26 Mar 2012 15:23:00 +0000 (11:23 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:45 +0000 (15:36 -0400)
.bin/cros-cbuildbot

index aae5a5651301edbf2f0ad1659045474d64a5e624..79d55035e447ea827196e60fac3ddefd3775a6a0 100755 (executable)
@@ -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} "$@"