From ed8744a3e0fe086b61e156c12e11b6604e49d792 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Mon, 20 May 2013 13:20:00 +1000 Subject: [PATCH] move the setup_build script to here from the build machine --- setup_build | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 setup_build 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 <