1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-31 23:02:01 +00:00
Files
norman/scripts/build

11 lines
243 B
Plaintext
Raw Normal View History

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