]> git.ozlabs.org Git - next-scripts/blobdiff - do_last_build
make some stuff common
[next-scripts] / do_last_build
index 0717f2de572a50b776dce7a8c7a4e03f4fbaacdf..3cb4113e7cff58d2ef519257cfbb2b83c10bad95 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"
 
 set -e