mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 22:21:21 +00:00
fix a get_tools
This commit is contained in:
parent
a488c0f027
commit
e1e3ea4e7f
@ -19,7 +19,7 @@ XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
|
|||||||
XC_OS=${XC_OS:-"solaris darwin freebsd linux windows"}
|
XC_OS=${XC_OS:-"solaris darwin freebsd linux windows"}
|
||||||
|
|
||||||
# Make sure build tools are available.
|
# Make sure build tools are available.
|
||||||
make tools
|
make get_tools
|
||||||
|
|
||||||
# Get VENDORED dependencies
|
# Get VENDORED dependencies
|
||||||
make get_vendor_deps
|
make get_vendor_deps
|
||||||
@ -29,23 +29,23 @@ BINARY="abci-cli"
|
|||||||
# Build!
|
# Build!
|
||||||
echo "==> Building..."
|
echo "==> Building..."
|
||||||
"$(which gox)" \
|
"$(which gox)" \
|
||||||
-os="${XC_OS}" \
|
-os="${XC_OS}" \
|
||||||
-arch="${XC_ARCH}" \
|
-arch="${XC_ARCH}" \
|
||||||
-osarch="!darwin/arm !solaris/amd64 !freebsd/amd64" \
|
-osarch="!darwin/arm !solaris/amd64 !freebsd/amd64" \
|
||||||
-ldflags "-X ${GIT_IMPORT}.GitCommit='${GIT_COMMIT}' -X ${GIT_IMPORT}.GitDescribe='${GIT_DESCRIBE}'" \
|
-ldflags "-X ${GIT_IMPORT}.GitCommit='${GIT_COMMIT}' -X ${GIT_IMPORT}.GitDescribe='${GIT_DESCRIBE}'" \
|
||||||
-output "build/pkg/{{.OS}}_{{.Arch}}/$BINARY" \
|
-output "build/pkg/{{.OS}}_{{.Arch}}/$BINARY" \
|
||||||
-tags="${BUILD_TAGS}" \
|
-tags="${BUILD_TAGS}" \
|
||||||
github.com/tendermint/abci/cmd/$BINARY
|
github.com/tendermint/abci/cmd/$BINARY
|
||||||
|
|
||||||
# Zip all the files.
|
# Zip all the files.
|
||||||
echo "==> Packaging..."
|
echo "==> Packaging..."
|
||||||
for PLATFORM in $(find ./build/pkg -mindepth 1 -maxdepth 1 -type d); do
|
for PLATFORM in $(find ./build/pkg -mindepth 1 -maxdepth 1 -type d); do
|
||||||
OSARCH=$(basename "${PLATFORM}")
|
OSARCH=$(basename "${PLATFORM}")
|
||||||
echo "--> ${OSARCH}"
|
echo "--> ${OSARCH}"
|
||||||
|
|
||||||
pushd "$PLATFORM" >/dev/null 2>&1
|
pushd "$PLATFORM" >/dev/null 2>&1
|
||||||
zip "../${OSARCH}.zip" ./*
|
zip "../${OSARCH}.zip" ./*
|
||||||
popd >/dev/null 2>&1
|
popd >/dev/null 2>&1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user