2015-09-15 19:38:54 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if ! test -e gen.go; then
|
|
|
|
echo >&2 'error: generate must be run before binary'
|
|
|
|
false
|
|
|
|
fi
|
|
|
|
|
2015-09-27 13:54:44 +00:00
|
|
|
rm -f dist/traefik
|
2015-09-22 09:29:41 +00:00
|
|
|
rm -rf Godeps/_workspace/pkg
|
2015-09-15 19:38:54 +00:00
|
|
|
|
|
|
|
# Build binaries
|
2015-09-22 09:29:41 +00:00
|
|
|
CGO_ENABLED=0 godep go build -a -installsuffix nocgo -o dist/traefik .
|
2015-09-15 19:38:54 +00:00
|
|
|
|