mirror of
https://github.com/golang/go.git
synced 2025-05-16 04:44:39 +00:00
clean up make script
reorder pieces so io is earlier R=rsc DELTA=66 (27 added, 24 deleted, 15 changed) OCL=19248 CL=19255
This commit is contained in:
parent
0c4c842eb0
commit
f3e354ec26
@ -4,49 +4,52 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
function buildfiles() {
|
||||||
|
rm -f *.6
|
||||||
# Don't sort the files in the for loop - some of the orderings matter.
|
for i
|
||||||
rm -f *.6
|
do
|
||||||
for i in \
|
|
||||||
strings.go\
|
|
||||||
|
|
||||||
do
|
|
||||||
base=$(basename $i .go)
|
base=$(basename $i .go)
|
||||||
echo 6g -o $GOROOT/pkg/$base.6 $i
|
echo 6g -o $GOROOT/pkg/$base.6 $i
|
||||||
6g -o $GOROOT/pkg/$base.6 $i
|
6g -o $GOROOT/pkg/$base.6 $i
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
for i in syscall os math reflect fmt
|
function builddirs() {
|
||||||
do
|
for i
|
||||||
|
do
|
||||||
echo; echo; echo %%%% making lib/$i %%%%; echo
|
echo; echo; echo %%%% making lib/$i %%%%; echo
|
||||||
cd $i
|
cd $i
|
||||||
make install
|
make install
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# Don't sort the files in the for loop - some of the orderings matter.
|
set -e
|
||||||
rm -f *.6
|
rm -f *.6
|
||||||
for i in \
|
|
||||||
flag.go\
|
# Don't sort the elements of the lists - some of the orderings matter.
|
||||||
|
|
||||||
|
buildfiles strings.go
|
||||||
|
|
||||||
|
builddirs syscall \
|
||||||
|
math \
|
||||||
|
os \
|
||||||
|
reflect \
|
||||||
|
|
||||||
|
buildfiles io.go
|
||||||
|
|
||||||
|
builddirs fmt
|
||||||
|
|
||||||
|
buildfiles flag.go\
|
||||||
container/vector.go\
|
container/vector.go\
|
||||||
rand.go\
|
rand.go\
|
||||||
sort.go\
|
sort.go\
|
||||||
io.go\
|
|
||||||
bufio.go\
|
bufio.go\
|
||||||
once.go\
|
once.go\
|
||||||
bignum.go\
|
bignum.go\
|
||||||
|
|
||||||
do
|
builddirs net\
|
||||||
base=$(basename $i .go)
|
time\
|
||||||
echo 6g -o $GOROOT/pkg/$base.6 $i
|
http\
|
||||||
6g -o $GOROOT/pkg/$base.6 $i
|
regexp\
|
||||||
done
|
|
||||||
|
|
||||||
for i in net time http regexp
|
|
||||||
do
|
|
||||||
echo; echo; echo %%%% making lib/$i %%%%; echo
|
|
||||||
cd $i
|
|
||||||
make install
|
|
||||||
cd ..
|
|
||||||
done
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user