make.bash 668 Bytes
Newer Older
Rob Pike's avatar
Rob Pike committed
1 2 3 4 5 6
# Copyright 2009 The Go Authors.  All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

#!/bin/bash

7 8
set -e

Rob Pike's avatar
Rob Pike committed
9 10 11 12 13 14 15
for i in os math
do
	echo; echo; echo %%%% making lib/$i %%%%; echo
	cd $i
	make install
	cd ..
done
Rob Pike's avatar
Rob Pike committed
16

Russ Cox's avatar
Russ Cox committed
17
# Don't sort the files in the for loop - some of the orderings matter.
Russ Cox's avatar
Russ Cox committed
18
rm -f *.6
Russ Cox's avatar
Russ Cox committed
19 20 21 22 23 24 25 26 27 28
for i in \
	fmt.go\
	flag.go\
	container/vector.go\
	rand.go\
	sort.go\
	io.go\
	bufio.go\
	strings.go\

Russ Cox's avatar
Russ Cox committed
29 30 31 32 33 34
do
	base=$(basename $i .go)
	echo 6g -o $GOROOT/pkg/$base.6 $i
	6g -o $GOROOT/pkg/$base.6 $i
done

Russ Cox's avatar
Russ Cox committed
35
for i in net time
Russ Cox's avatar
Russ Cox committed
36 37 38 39 40 41
do
	echo; echo; echo %%%% making lib/$i %%%%; echo
	cd $i
	make install
	cd ..
done