1
0
mirror of https://github.com/golang/go synced 2024-11-12 10:20:27 -07:00

goinstall: use bash to execute gomake

R=golang-dev, r, adg
CC=golang-dev
https://golang.org/cl/4551074
This commit is contained in:
Alex Brainman 2011-05-30 16:15:08 +10:00
parent 1042572528
commit 9107b530d8

View File

@ -21,12 +21,12 @@ import (
func domake(dir, pkg string, root *pkgroot, local, isCmd bool) (err os.Error) {
needMakefile := true
if local {
_, err := os.Stat(dir + "/Makefile")
_, err := os.Stat(filepath.Join(dir, "Makefile"))
if err == nil {
needMakefile = false
}
}
cmd := []string{"gomake"}
cmd := []string{"bash", "gomake"}
var makefile []byte
if needMakefile {
if makefile, err = makeMakefile(dir, pkg, root, isCmd); err != nil {