2009-11-14 16:29:09 -07:00
|
|
|
#!/usr/bin/env bash
|
2008-06-04 17:44:48 -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.
|
|
|
|
|
2008-09-18 16:06:43 -06:00
|
|
|
set -e
|
2008-06-04 17:44:48 -06:00
|
|
|
|
|
|
|
bash clean.bash
|
|
|
|
|
2009-12-11 16:14:09 -07:00
|
|
|
GOBIN="${GOBIN:-$HOME/bin}"
|
|
|
|
|
2009-11-23 18:32:51 -07:00
|
|
|
. "$GOROOT"/src/Make.$GOARCH
|
2009-06-05 11:59:55 -06:00
|
|
|
if [ -z "$O" ]; then
|
|
|
|
echo 'missing $O - maybe no Make.$GOARCH?' 1>&2
|
2009-06-04 12:16:03 -06:00
|
|
|
exit 1
|
2009-06-05 11:59:55 -06:00
|
|
|
fi
|
2009-06-04 12:16:03 -06:00
|
|
|
|
|
|
|
cd ${O}l
|
2008-06-04 17:44:48 -06:00
|
|
|
bash mkenam
|
2009-12-11 16:14:09 -07:00
|
|
|
"$GOBIN"/gomake enam.o
|
2008-06-04 17:44:48 -06:00
|
|
|
cd ..
|
|
|
|
|
2010-03-04 18:04:50 -07:00
|
|
|
# Note: commands written in Go are not listed here.
|
|
|
|
# They are in ../make.bash so that they can be built
|
|
|
|
# after the Go libraries on which they depend.
|
|
|
|
for i in cc ${O}l ${O}a ${O}c gc ${O}g cov godefs gopack gotest nm prof
|
2008-09-18 16:06:43 -06:00
|
|
|
do
|
|
|
|
echo; echo; echo %%%% making $i %%%%; echo
|
|
|
|
cd $i
|
2009-12-11 16:14:09 -07:00
|
|
|
"$GOBIN"/gomake install
|
2008-09-18 16:06:43 -06:00
|
|
|
cd ..
|
|
|
|
done
|