diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2011-01-12 10:45:24 -0800 |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2011-01-12 10:45:24 -0800 |
commit | fc25d951ec476bf190352c5e702c9880c846a045 (patch) | |
tree | 49703fcd475b62f5c19fbf4bbf6b4dc8adb8b3d4 | |
parent | 843b492dcd85a6a2884958062cb85768efda2714 (diff) | |
download | go-fc25d951ec476bf190352c5e702c9880c846a045.tar.gz |
goinstall: Fix template to use exported fields
It's currently broken due to f6d5bac536c5.
R=r, r2
CC=golang-dev
http://codereview.appspot.com/3967041
Committer: Rob Pike <r@golang.org>
-rw-r--r-- | src/cmd/goinstall/make.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/cmd/goinstall/make.go b/src/cmd/goinstall/make.go index c95156c03..93a648b2b 100644 --- a/src/cmd/goinstall/make.go +++ b/src/cmd/goinstall/make.go @@ -83,34 +83,34 @@ func makeMakefile(dir, pkg string) ([]byte, os.Error) { // makedata is the data type for the makefileTemplate. type makedata struct { - pkg string // package import path - goFiles []string // list of non-cgo .go files - cgoFiles []string // list of cgo .go files - oFiles []string // list of ofiles for cgo + Pkg string // package import path + GoFiles []string // list of non-cgo .go files + CgoFiles []string // list of cgo .go files + OFiles []string // list of ofiles for cgo } var makefileTemplate = template.MustParse(` include $(GOROOT)/src/Make.inc -TARG={pkg} +TARG={Pkg} -{.section goFiles} +{.section GoFiles} GOFILES=\ -{.repeated section goFiles} +{.repeated section GoFiles} {@}\ {.end} {.end} -{.section cgoFiles} +{.section CgoFiles} CGOFILES=\ -{.repeated section cgoFiles} +{.repeated section CgoFiles} {@}\ {.end} {.end} -{.section oFiles} +{.section OFiles} CGO_OFILES=\ -{.repeated section oFiles} +{.repeated section OFiles} {@}\ {.end} |