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:
Rob Pike 2008-11-14 12:53:44 -08:00
parent 0c4c842eb0
commit f3e354ec26

View File

@ -4,49 +4,52 @@
#!/bin/bash #!/bin/bash
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
}
set -e set -e
# Don't sort the files in the for loop - some of the orderings matter.
rm -f *.6 rm -f *.6
for i in \
strings.go\
do # Don't sort the elements of the lists - some of the orderings matter.
base=$(basename $i .go)
echo 6g -o $GOROOT/pkg/$base.6 $i
6g -o $GOROOT/pkg/$base.6 $i
done
for i in syscall os math reflect fmt buildfiles strings.go
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. builddirs syscall \
rm -f *.6 math \
for i in \ os \
flag.go\ reflect \
container/vector.go\
rand.go\
sort.go\
io.go\
bufio.go\
once.go\
bignum.go\
do buildfiles io.go
base=$(basename $i .go)
echo 6g -o $GOROOT/pkg/$base.6 $i builddirs fmt
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