#!/bin/bash cd "$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" CMD=go if [[ "${GOROOT}" != "" ]]; then CMD="${GOROOT}/bin/go" fi CGO_ENABLED=0 GOOS=linux GOARCH=amd64 "${CMD}" build -v -buildvcs=false -trimpath -gcflags=all="-l" -ldflags="-s -w -buildid=" -o bin/concat ./cmd/concat/ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 "${CMD}" build -v -buildvcs=false -trimpath -gcflags=all="-l" -ldflags="-s -w -buildid=" -o bin/dcp ./cmd/dcp/