1
0
mirror of https://github.com/rancher/norman.git synced 2025-04-28 19:35:09 +00:00
norman/scripts/build

11 lines
243 B
Plaintext
Raw Permalink Normal View History

2017-10-12 05:48:07 +00:00
#!/bin/bash
set -e
source $(dirname $0)/version
cd $(dirname $0)/..
mkdir -p bin
2018-09-25 18:43:11 +00:00
[ "$(uname)" != "Darwin" ] && LINKFLAGS="-extldflags -static -s"
2017-11-21 20:46:30 +00:00
CGO_ENABLED=0 go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/norman ./example