]> Cypherpunks repositories - gostls13.git/commitdiff
include math in standard build
authorRob Pike <r@golang.org>
Thu, 4 Sep 2008 20:09:49 +0000 (13:09 -0700)
committerRob Pike <r@golang.org>
Thu, 4 Sep 2008 20:09:49 +0000 (13:09 -0700)
R=ken
OCL=14811
CL=14811

src/lib/clean.bash
src/lib/make.bash
src/lib/math/clean.bash [new file with mode: 0644]
src/lib/math/make.bash [new file with mode: 0644]

index 13af347a7d6163cde69d4c2017cfa5205cd81aa8..c6e388e6be314c623655b7f189fbf62fcd0f10b9 100755 (executable)
@@ -5,3 +5,7 @@
 #!/bin/bash
 
 rm -f $GOROOT/pkg/*
+
+cd math
+bash clean.bash
+cd ..
index be62e0a5cb79cf1426179b0e93c363470a8310d1..f0f545f251f9c9ce52d5cdb0f10ed07aeff3cc8c 100755 (executable)
@@ -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 (file)
index 0000000..2cafa20
--- /dev/null
@@ -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 (file)
index 0000000..52d0727
--- /dev/null
@@ -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