[release-branch.go1.4] api: create go1.4.txt

I read through and vetted these but others should look too.

LGTM=bradfitz, adg
R=r, minux, bradfitz, adg
CC=adg, golang-codereviews, gri, iant
https://golang.org/cl/182560043
This commit is contained in:
Russ Cox 2014-12-10 11:07:40 +11:00 committed by Andrew Gerrand
parent eb91b5f224
commit 77e96c9208
2 changed files with 607 additions and 2 deletions

View file

@ -21,6 +21,7 @@ import (
"os/exec"
"os/user"
"path/filepath"
"runtime"
"strings"
)
@ -53,7 +54,7 @@ func main() {
}
out, err = exec.Command("go", "tool", "api",
"-c", file("go1", "go1.1", "go1.2", "go1.3"),
"-c", file("go1", "go1.1", "go1.2", "go1.3", "go1.4"),
"-next", file("next"),
"-except", file("except")).CombinedOutput()
if err != nil {
@ -105,7 +106,7 @@ func prepGoPath() string {
}
// The GOPATH we'll return
gopath := filepath.Join(os.TempDir(), "gopath-api-"+cleanUsername(username), goToolsVersion)
gopath := filepath.Join(os.TempDir(), "gopath-api-"+cleanUsername(username)+"-"+cleanUsername(strings.Fields(runtime.Version())[0]), goToolsVersion)
// cloneDir is where we run "hg clone".
cloneDir := filepath.Join(gopath, "src", "code.google.com", "p")