mirror of
https://github.com/golang/go
synced 2024-11-22 03:04:41 -07:00
goinstall: Fix template to use exported fields
It's currently broken due to f6d5bac536c5. R=r, r2 CC=golang-dev https://golang.org/cl/3967041
This commit is contained in:
parent
699864b696
commit
6f6b7e3a33
@ -83,34 +83,34 @@ func makeMakefile(dir, pkg string) ([]byte, os.Error) {
|
|||||||
|
|
||||||
// makedata is the data type for the makefileTemplate.
|
// makedata is the data type for the makefileTemplate.
|
||||||
type makedata struct {
|
type makedata struct {
|
||||||
pkg string // package import path
|
Pkg string // package import path
|
||||||
goFiles []string // list of non-cgo .go files
|
GoFiles []string // list of non-cgo .go files
|
||||||
cgoFiles []string // list of cgo .go files
|
CgoFiles []string // list of cgo .go files
|
||||||
oFiles []string // list of ofiles for cgo
|
OFiles []string // list of ofiles for cgo
|
||||||
}
|
}
|
||||||
|
|
||||||
var makefileTemplate = template.MustParse(`
|
var makefileTemplate = template.MustParse(`
|
||||||
include $(GOROOT)/src/Make.inc
|
include $(GOROOT)/src/Make.inc
|
||||||
|
|
||||||
TARG={pkg}
|
TARG={Pkg}
|
||||||
|
|
||||||
{.section goFiles}
|
{.section GoFiles}
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
{.repeated section goFiles}
|
{.repeated section GoFiles}
|
||||||
{@}\
|
{@}\
|
||||||
{.end}
|
{.end}
|
||||||
|
|
||||||
{.end}
|
{.end}
|
||||||
{.section cgoFiles}
|
{.section CgoFiles}
|
||||||
CGOFILES=\
|
CGOFILES=\
|
||||||
{.repeated section cgoFiles}
|
{.repeated section CgoFiles}
|
||||||
{@}\
|
{@}\
|
||||||
{.end}
|
{.end}
|
||||||
|
|
||||||
{.end}
|
{.end}
|
||||||
{.section oFiles}
|
{.section OFiles}
|
||||||
CGO_OFILES=\
|
CGO_OFILES=\
|
||||||
{.repeated section oFiles}
|
{.repeated section OFiles}
|
||||||
{@}\
|
{@}\
|
||||||
{.end}
|
{.end}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user