From 3829fc0ee0d293c43fa27dfbffaacd7cd39d234c Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Thu, 21 Mar 2019 14:46:35 -0400 Subject: [PATCH] allow configurable release target in mac --- scripts/release/mac-remote-build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/release/mac-remote-build b/scripts/release/mac-remote-build index 0c0b2387c..207f44535 100755 --- a/scripts/release/mac-remote-build +++ b/scripts/release/mac-remote-build @@ -43,12 +43,13 @@ rsync -az \ "${remote_macos_host}:${REPO_REMOTE_PATH}" echo '=======>>>> Compiling Mac Binaries' -cat <<'EOF' | ssh ${remote_macos_host} /bin/bash -s "${TMP_WORKSPACE}" +cat <<'EOF' | ssh ${remote_macos_host} /bin/bash -s "${TMP_WORKSPACE}" "${RELEASE_TARGET}" set -o errexit set -o xtrace TMP_WORKSPACE="$1" +RELEASE_TARGET="$2" REPO_PATH="${TMP_WORKSPACE}/gopath/src/github.com/hashicorp/nomad" @@ -73,7 +74,7 @@ compile() { git checkout . git status git log -1 - make release + make ${RELEASE_TARGET} } install_go