From: Stephen Rothwell Date: Thu, 11 Jun 2015 07:14:21 +0000 (+1000) Subject: setup_build: use common.sh X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=d30e79f2421304e9170074ef8659f9bd59d1454b;p=next-scripts setup_build: use common.sh --- diff --git a/setup_build b/setup_build index 3b9fc15..3103871 100755 --- a/setup_build +++ b/setup_build @@ -1,19 +1,6 @@ #!/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 -} +. "$(dirname $0)/common.sh" ssh "$build_host" /bin/sh <