1
0
mirror of https://github.com/rancher/norman.git synced 2025-07-04 02:56:42 +00:00
norman/scripts/build
2017-11-21 15:37:22 -07:00

11 lines
262 B
Bash
Executable File

#!/bin/bash
set -e
source $(dirname $0)/version
cd $(dirname $0)/..
mkdir -p bin
[ "$(uname)" != "Darwin" ] && LINKFLAGS="-linkmode external -extldflags -static -s"
CGO_ENABLED=0 go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/norman ./example