]> Cypherpunks repositories - gostls13.git/commitdiff
dist: add .exe extension to tour.exe
authorAndrew Gerrand <adg@golang.org>
Tue, 9 Apr 2013 08:17:55 +0000 (18:17 +1000)
committerAndrew Gerrand <adg@golang.org>
Tue, 9 Apr 2013 08:17:55 +0000 (18:17 +1000)
Fixes #5246.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/8558044

misc/dist/bindist.go

index 831673d27cd7191c80c663d45af6fe7547b4a708..19b0baac20538264b10f820bf17bb1b35579bb91 100644 (file)
@@ -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),
        )
 }