diff options
| author | Rob Pike <r@golang.org> | 2008-11-14 12:53:44 -0800 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2008-11-14 12:53:44 -0800 |
| commit | f3e354ec26622805f156e4f0d1a2b23fadead89c (patch) | |
| tree | e171d2459068ac97bfb22b123354690d62adfedb /src/lib/make.bash | |
| parent | 0c4c842eb07f65cf36c718e72a11c094b79296ae (diff) | |
| download | go-f3e354ec26622805f156e4f0d1a2b23fadead89c.tar.xz | |
clean up make script
reorder pieces so io is earlier
R=rsc
DELTA=66 (27 added, 24 deleted, 15 changed)
OCL=19248
CL=19255
Diffstat (limited to 'src/lib/make.bash')
| -rwxr-xr-x | src/lib/make.bash | 81 |
1 files changed, 42 insertions, 39 deletions
diff --git a/src/lib/make.bash b/src/lib/make.bash index 7ea1861921..820fdbf62f 100755 --- a/src/lib/make.bash +++ b/src/lib/make.bash @@ -4,49 +4,52 @@ #!/bin/bash -set -e +function buildfiles() { + rm -f *.6 + for i + do + base=$(basename $i .go) + echo 6g -o $GOROOT/pkg/$base.6 $i + 6g -o $GOROOT/pkg/$base.6 $i + done +} + +function builddirs() { + for i + do + echo; echo; echo %%%% making lib/$i %%%%; echo + cd $i + make install + cd .. + done +} -# Don't sort the files in the for loop - some of the orderings matter. +set -e rm -f *.6 -for i in \ - strings.go\ -do - base=$(basename $i .go) - echo 6g -o $GOROOT/pkg/$base.6 $i - 6g -o $GOROOT/pkg/$base.6 $i -done +# Don't sort the elements of the lists - some of the orderings matter. -for i in syscall os math reflect fmt -do - echo; echo; echo %%%% making lib/$i %%%%; echo - cd $i - make install - cd .. -done +buildfiles strings.go -# Don't sort the files in the for loop - some of the orderings matter. -rm -f *.6 -for i in \ - flag.go\ - container/vector.go\ - rand.go\ - sort.go\ - io.go\ - bufio.go\ - once.go\ - bignum.go\ +builddirs syscall \ + math \ + os \ + reflect \ + +buildfiles io.go + +builddirs fmt -do - base=$(basename $i .go) - echo 6g -o $GOROOT/pkg/$base.6 $i - 6g -o $GOROOT/pkg/$base.6 $i -done +buildfiles flag.go\ + container/vector.go\ + rand.go\ + sort.go\ + bufio.go\ + once.go\ + bignum.go\ + +builddirs net\ + time\ + http\ + regexp\ -for i in net time http regexp -do - echo; echo; echo %%%% making lib/$i %%%%; echo - cd $i - make install - cd .. -done |
