Commit 81063812 authored by Andrew Gerrand's avatar Andrew Gerrand

dist: add .exe extension to tour.exe

Fixes #5246.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/8558044
parent 0ccfbea5
......@@ -423,13 +423,13 @@ func (b *Build) tour() error {
}
// Copy gotour binary to tool directory as "tour"; invoked as "go tool tour".
gotour := "gotour"
ext := ""
if runtime.GOOS == "windows" {
gotour += ".exe"
ext = ".exe"
}
return cp(
filepath.Join(b.root, "pkg", "tool", b.OS+"_"+b.Arch, "tour"),
filepath.Join(b.gopath, "bin", gotour),
filepath.Join(b.root, "pkg", "tool", b.OS+"_"+b.Arch, "tour"+ext),
filepath.Join(b.gopath, "bin", "gotour"+ext),
)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment