traefik/script/binary
Vincent Demeester 47015433cc Split binary into 2
- binary (simple traefik build)
- crossbinary, cross build using gox

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2015-09-28 20:27:59 +02:00

14 lines
249 B
Bash
Executable file

#!/bin/bash
set -e
if ! test -e gen.go; then
echo >&2 'error: generate must be run before binary'
false
fi
rm -f dist/traefik
rm -rf Godeps/_workspace/pkg
# Build binaries
CGO_ENABLED=0 godep go build -a -installsuffix nocgo -o dist/traefik .