dist: add .exe extension to tour.exe

Fixes #5246.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/8558044
This commit is contained in:
Andrew Gerrand 2013-04-09 18:17:55 +10:00
parent 0ccfbea5b0
commit 81063812b4

View File

@ -423,13 +423,13 @@ func (b *Build) tour() error {
} }
// Copy gotour binary to tool directory as "tour"; invoked as "go tool tour". // Copy gotour binary to tool directory as "tour"; invoked as "go tool tour".
gotour := "gotour" ext := ""
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
gotour += ".exe" ext = ".exe"
} }
return cp( return cp(
filepath.Join(b.root, "pkg", "tool", b.OS+"_"+b.Arch, "tour"), filepath.Join(b.root, "pkg", "tool", b.OS+"_"+b.Arch, "tour"+ext),
filepath.Join(b.gopath, "bin", gotour), filepath.Join(b.gopath, "bin", "gotour"+ext),
) )
} }