mirror of
https://github.com/golang/go
synced 2024-11-21 20:24:50 -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:
parent
1042572528
commit
9107b530d8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user