summaryrefslogtreecommitdiff
path: root/src/all-nacl.bash
blob: 23107d25e34e2a33cc6b22ed9414fe5a54898de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
# 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

export GOARCH=386
export GOOS=nacl

set -e
bash make.bash

xcd() {
	echo
	echo --- cd $1
	builtin cd $1
}

(xcd pkg/exp/nacl/srpc
make clean
make install
) || exit $?

(xcd pkg/exp/nacl/av
make clean
make install
) || exit $?

(xcd pkg/exp/4s
make clean
make
) || exit $?

(xcd pkg/exp/spacewar
make clean
make
) || exit $?

(xcd ../test
./run-nacl
) || exit $?