X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9f1850a385ee8e0a011474de19ee6507b0b168f3..4534a1b7f48538344959baf56bf4464b6098e82f:/build/run-build-test-packages-one-target.sh diff --git a/build/run-build-test-packages-one-target.sh b/build/run-build-test-packages-one-target.sh index 9af95d13d3..d1217162e6 100755 --- a/build/run-build-test-packages-one-target.sh +++ b/build/run-build-test-packages-one-target.sh @@ -7,10 +7,10 @@ read -rd "\000" helpmessage < [options] --target - Distribution to build packages for (default: debian10) + Distribution to build packages for --only-build Build only a specific package (or ONLY_BUILD from environment) --arch @@ -61,10 +61,10 @@ if [ $? -ne 0 ]; then exit 1 fi -TARGET=debian10 UPLOAD=0 RC=0 DEBUG= +TARGET= declare -a build_args=() @@ -117,6 +117,14 @@ while [ $# -gt 0 ]; do shift done +if [[ -z "$TARGET" ]]; then + echo "FATAL: --target must be specified" >&2 + exit 2 +elif [[ ! -d "$WORKSPACE/build/package-build-dockerfiles/$TARGET" ]]; then + echo "FATAL: unknown build target '$TARGET'" >&2 + exit 2 +fi + build_args+=(--target "$TARGET") if [[ -n "$ONLY_BUILD" ]]; then