2008-06-11 14:34:08 -06:00
|
|
|
#!/bin/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.
|
|
|
|
|
2008-09-18 16:06:43 -06:00
|
|
|
set -e
|
|
|
|
export MAKEFLAGS=-j4
|
|
|
|
|
2008-10-08 10:46:20 -06:00
|
|
|
if ! test -f $GOROOT/include/u.h
|
|
|
|
then
|
|
|
|
echo '$GOROOT is not set correctly or not exported' 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2008-06-13 13:55:37 -06:00
|
|
|
bash clean.bash
|
|
|
|
|
2008-09-26 15:11:26 -06:00
|
|
|
for i in lib9 libbio libmach_amd64 libregexp cmd runtime lib
|
2008-08-07 18:36:50 -06:00
|
|
|
do
|
|
|
|
echo; echo; echo %%%% making $i %%%%; echo
|
|
|
|
cd $i
|
2008-09-19 12:55:46 -06:00
|
|
|
case $i in
|
|
|
|
cmd | lib)
|
|
|
|
bash make.bash
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
make install
|
|
|
|
esac
|
2008-08-07 18:36:50 -06:00
|
|
|
cd ..
|
|
|
|
done
|
2008-09-11 14:03:46 -06:00
|
|
|
|