go-dcp/build-tools.sh
2024-07-17 00:39:30 +02:00

12 lines
No EOL
450 B
Bash
Executable file

#!/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/