TF_DEV->VAULT_DEV_BUILD

This commit is contained in:
Jeff Mitchell
2016-02-25 11:05:51 -05:00
parent 7a036842ea
commit c77e00d773
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ bin: generate
# dev creates binaries for testing Vault locally. These are put
# into ./bin/ as well as $GOPATH/bin
dev: generate
@TF_DEV=1 sh -c "'$(CURDIR)/scripts/build.sh'"
@VAULT_DEV_BUILD=1 sh -c "'$(CURDIR)/scripts/build.sh'"
# test runs the unit tests and vets the code
test: generate

View File

@@ -33,7 +33,7 @@ rm -rf pkg/*
mkdir -p bin/
# If its dev mode, only build for ourself
if [ "${TF_DEV}x" != "x" ]; then
if [ "${VAULT_DEV_BUILD}x" != "x" ]; then
XC_OS=$(go env GOOS)
XC_ARCH=$(go env GOARCH)
fi
@@ -61,7 +61,7 @@ for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do
cp ${F} ${MAIN_GOPATH}/bin/
done
if [ "${TF_DEV}x" = "x" ]; then
if [ "${VAULT_DEV_BUILD}x" = "x" ]; then
# Zip and copy to the dist dir
echo "==> Packaging..."
for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do