mirror of
https://github.com/rancher/norman.git
synced 2025-04-27 19:15:07 +00:00
11 lines
243 B
Bash
Executable File
11 lines
243 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
source $(dirname $0)/version
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
mkdir -p bin
|
|
[ "$(uname)" != "Darwin" ] && LINKFLAGS="-extldflags -static -s"
|
|
CGO_ENABLED=0 go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/norman ./example
|