From: Stephen Rothwell Date: Mon, 20 May 2013 03:20:00 +0000 (+1000) Subject: move the setup_build script to here from the build machine X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=ed8744a3e0fe086b61e156c12e11b6604e49d792;p=next-scripts move the setup_build script to here from the build machine --- diff --git a/setup_build b/setup_build new file mode 100755 index 0000000..85a8986 --- /dev/null +++ b/setup_build @@ -0,0 +1,30 @@ +#!/bin/sh + +build_host="ka2" +build_dir="/scratch/sfr/next" + +[ "$NEXT_BUILD_HOST" ] && build_host="$NEXT_BUILD_HOST" +[ "$NEXT_BUILD_DIR" ] && build_dir="$NEXT_BUILD_DIR" + +[ -n "$1" ] && { + build_host="$1" + shift +} +[ -n "$1" ] && { + build_dir="$1" + shift +} + +export NEXT_BUILD_HOST="$build_host" +export NEXT_BUILD_DIR="$build_dir" + +ssh "$build_host" /bin/sh <