From: Rob Pike Date: Thu, 4 Sep 2008 20:09:49 +0000 (-0700) Subject: include math in standard build X-Git-Tag: weekly.2009-11-06~3276 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eab46c6ef4c27cad4675ff0f884608ad8180b07e;p=gostls13.git include math in standard build R=ken OCL=14811 CL=14811 --- diff --git a/src/lib/clean.bash b/src/lib/clean.bash index 13af347a7d..c6e388e6be 100755 --- a/src/lib/clean.bash +++ b/src/lib/clean.bash @@ -5,3 +5,7 @@ #!/bin/bash rm -f $GOROOT/pkg/* + +cd math +bash clean.bash +cd .. diff --git a/src/lib/make.bash b/src/lib/make.bash index be62e0a5cb..f0f545f251 100755 --- a/src/lib/make.bash +++ b/src/lib/make.bash @@ -13,3 +13,10 @@ do echo 6g -o $GOROOT/pkg/$base.6 $i 6g -o $GOROOT/pkg/$base.6 $i done + +echo; echo; echo %%%% making lib/math %%%%; echo + +cd math +bash make.bash +cd .. + diff --git a/src/lib/math/clean.bash b/src/lib/math/clean.bash new file mode 100644 index 0000000000..2cafa206d4 --- /dev/null +++ b/src/lib/math/clean.bash @@ -0,0 +1,7 @@ +# 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 + +rm -f 6.out *.6 math.a diff --git a/src/lib/math/make.bash b/src/lib/math/make.bash new file mode 100644 index 0000000000..52d0727ad3 --- /dev/null +++ b/src/lib/math/make.bash @@ -0,0 +1,9 @@ +# 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 + +# should probably just be a makefile + +bash g1 && cp math.a $GOROOT/pkg/math.a