2014-05-25 15:40:15 -05:00
|
|
|
if [ ! -f tools/windowsconstgen.go ]; then
|
|
|
|
echo error: $0 must be run from the package source root 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
set -e
|
|
|
|
if [ x$GOOS = xwindows ]; then
|
2014-05-25 15:50:52 -05:00
|
|
|
# have to invoke go run with the host $GOOS/$GOARCH
|
|
|
|
GOOS= GOARCH= go run tools/windowsconstgen.go . 386 "$@"
|
|
|
|
GOOS= GOARCH= go run tools/windowsconstgen.go . amd64 "$@"
|
2014-05-25 15:40:15 -05:00
|
|
|
fi
|
2014-03-01 14:18:29 -06:00
|
|
|
cd test
|
2014-03-04 22:10:48 -06:00
|
|
|
go build "$@"
|