# Tried to use . <($MAKE ...) here, but it cannot set environment
# variables in the version of bash that ships with OS X. Amazing.
-eval $($MAKE --no-print-directory -f Make.inc go-env | egrep 'GOARCH|GOOS|GO_ENV')
+eval $($MAKE --no-print-directory -f Make.inc go-env | egrep 'GOARCH|GOOS|GOHOSTARCH|GOHOSTOS|GO_ENV')
# Shell doesn't tell us whether make succeeded,
# so Make.inc generates a fake variable name.
) || exit $?
[ "$GOARCH" == arm ] ||
+[ "$GOHOSTOS" == windows ] ||
(xcd ../misc/cgo/stdio
-if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
- gomake clean
- ./test.bash
-fi
+gomake clean
+./test.bash
) || exit $?
[ "$GOARCH" == arm ] ||
+[ "$GOHOSTOS" == windows ] ||
(xcd ../misc/cgo/life
-if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
- gomake clean
- ./test.bash
-fi
+gomake clean
+./test.bash
) || exit $?
(xcd pkg/exp/ogle
time gomake ogle
) || exit $?
+[ "$GOHOSTOS" == windows ] ||
(xcd ../doc/progs
-if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
- time ./run
-fi
+time ./run
) || exit $?
+[ "$GOHOSTOS" == windows ] ||
(xcd ../doc/codelab/wiki
-if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
- gomake test
-fi
+gomake test
) || exit $?
for i in ../misc/dashboard/builder ../misc/goplay
done
[ "$GOARCH" == arm ] ||
+[ "$GOHOSTOS" == windows ] ||
(xcd ../test/bench
-if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
- ./timing.sh -test
-fi
+./timing.sh -test
) || exit $?
+[ "$GOHOSTOS" == windows ] ||
(xcd ../test
-if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
- ./run
-fi
+./run
) || exit $?