2009-11-14 16:29:09 -07:00
|
|
|
#!/usr/bin/env bash
|
2009-09-22 17:56:28 -06:00
|
|
|
# Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
# TODO(rsc): delete in favor of all.bash once nacl support is complete
|
|
|
|
|
2009-12-04 11:11:32 -07:00
|
|
|
export GOARCH=386
|
|
|
|
export GOOS=nacl
|
2010-05-03 12:12:54 -06:00
|
|
|
export GORUN=${GORUN:-$GOROOT/misc/nacl/naclrun}
|
2009-12-04 11:11:32 -07:00
|
|
|
|
2009-09-22 17:56:28 -06:00
|
|
|
set -e
|
|
|
|
bash make.bash
|
|
|
|
|
|
|
|
xcd() {
|
|
|
|
echo
|
|
|
|
echo --- cd $1
|
|
|
|
builtin cd $1
|
|
|
|
}
|
|
|
|
|
2010-04-22 18:52:22 -06:00
|
|
|
(xcd pkg
|
|
|
|
make install
|
|
|
|
make test
|
|
|
|
) || exit $?
|
|
|
|
|
2009-10-14 18:16:21 -06:00
|
|
|
(xcd pkg/exp/nacl/srpc
|
2010-02-01 16:20:19 -07:00
|
|
|
make clean
|
2009-10-14 18:16:21 -06:00
|
|
|
make install
|
|
|
|
) || exit $?
|
|
|
|
|
|
|
|
(xcd pkg/exp/nacl/av
|
2010-02-01 16:20:19 -07:00
|
|
|
make clean
|
2009-10-14 18:16:21 -06:00
|
|
|
make install
|
|
|
|
) || exit $?
|
|
|
|
|
2009-12-04 11:11:32 -07:00
|
|
|
(xcd pkg/exp/4s
|
2010-02-01 16:20:19 -07:00
|
|
|
make clean
|
2009-12-04 11:11:32 -07:00
|
|
|
make
|
|
|
|
) || exit $?
|
|
|
|
|
|
|
|
(xcd pkg/exp/spacewar
|
2010-02-01 16:20:19 -07:00
|
|
|
make clean
|
2009-12-04 11:11:32 -07:00
|
|
|
make
|
|
|
|
) || exit $?
|
|
|
|
|
2009-09-22 17:56:28 -06:00
|
|
|
(xcd ../test
|
2010-04-22 18:52:22 -06:00
|
|
|
./run
|
2009-09-22 17:56:28 -06:00
|
|
|
) || exit $?
|