Commit f3e354ec authored by Rob Pike's avatar Rob Pike

clean up make script

reorder pieces so io is earlier

R=rsc
DELTA=66  (27 added, 24 deleted, 15 changed)
OCL=19248
CL=19255
parent 0c4c842e
...@@ -4,49 +4,52 @@ ...@@ -4,49 +4,52 @@
#!/bin/bash #!/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
for i in syscall os math reflect fmt
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.
rm -f *.6 rm -f *.6
for i in \
flag.go\ # Don't sort the elements of the lists - some of the orderings matter.
container/vector.go\
rand.go\ buildfiles strings.go
sort.go\
io.go\ builddirs syscall \
bufio.go\ math \
once.go\ os \
bignum.go\ reflect \
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\
for i in net time http regexp rand.go\
do sort.go\
echo; echo; echo %%%% making lib/$i %%%%; echo bufio.go\
cd $i once.go\
make install bignum.go\
cd ..
done builddirs net\
time\
http\
regexp\
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment