mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
12 lines
455 B
Bash
Executable File
12 lines
455 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# allow builds outside the standard GOPATH via symlink
|
|
export GOPATH=${PWD}/Godeps/_workspace
|
|
export GOBIN=${PWD}/bin
|
|
|
|
mkdir -p $GOPATH/src/github.com/coreos
|
|
# directory or symlink must be present
|
|
[ -d $GOPATH/src/github.com/coreos/coreos-baremetal ] || ln -s ${PWD} $GOPATH/src/github.com/coreos/coreos-baremetal
|
|
|
|
CGO_ENABLED=0 GOOS=linux go build -o bin/server -a -tags netgo -ldflags '-w' github.com/coreos/coreos-baremetal/cmd/bootcfg
|