]> git.ozlabs.org Git - next-scripts/commitdiff
setup_build: use common.sh
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 11 Jun 2015 07:14:21 +0000 (17:14 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 11 Jun 2015 07:14:21 +0000 (17:14 +1000)
setup_build

index 3b9fc15d37dde1f2e70fad1ef773ea7a6035df5b..3103871d52cc9160b62d4460a88d0f68eaa300cf 100755 (executable)
@@ -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 <<EOF
        set -x -e