OLD | NEW |
1 #!/bin/bash | 1 #!/usr/bin/env bash |
2 # Copyright 2009 The Go Authors. All rights reserved. | 2 # Copyright 2009 The Go Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style | 3 # Use of this source code is governed by a BSD-style |
4 # license that can be found in the LICENSE file. | 4 # license that can be found in the LICENSE file. |
5 | 5 |
6 set -e | 6 set -e |
7 | 7 |
8 bash clean.bash | 8 bash clean.bash |
9 | 9 |
10 . $GOROOT/src/Make.$GOARCH | 10 . $GOROOT/src/Make.$GOARCH |
11 if [ -z "$O" ]; then | 11 if [ -z "$O" ]; then |
12 echo 'missing $O - maybe no Make.$GOARCH?' 1>&2 | 12 echo 'missing $O - maybe no Make.$GOARCH?' 1>&2 |
13 exit 1 | 13 exit 1 |
14 fi | 14 fi |
15 | 15 |
16 cd ${O}l | 16 cd ${O}l |
17 bash mkenam | 17 bash mkenam |
18 make enam.o | 18 gomake enam.o |
19 cd .. | 19 cd .. |
20 | 20 |
21 for i in cc ${O}l ${O}a ${O}c gc ${O}g gopack nm cov godefs prof gotest | 21 for i in cc ${O}l ${O}a ${O}c gc ${O}g gopack nm cov godefs prof gotest |
22 do | 22 do |
23 echo; echo; echo %%%% making $i %%%%; echo | 23 echo; echo; echo %%%% making $i %%%%; echo |
24 cd $i | 24 cd $i |
25 » make install | 25 » gomake install |
26 cd .. | 26 cd .. |
27 done | 27 done |
OLD | NEW |