]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] undo CL 6118059 / 79503f11634a
authorAndrew Gerrand <adg@golang.org>
Thu, 26 Apr 2012 20:32:05 +0000 (13:32 -0700)
committerAndrew Gerrand <adg@golang.org>
Thu, 26 Apr 2012 20:32:05 +0000 (13:32 -0700)
Accidentally applied to release branch.

««« original CL description
misc/dist: drop repetition in filenames, default to release tag

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6118059
»»»

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6120056

misc/dist/bindist.go

index bdbbbb7af7ca794bdda6977b51b693839290fcdd..16193bdc1de31594546653071a5c95473612b02f 100644 (file)
@@ -30,7 +30,7 @@ import (
 )
 
 var (
-       tag      = flag.String("tag", "release", "mercurial tag to check out")
+       tag      = flag.String("tag", "weekly", "mercurial tag to check out")
        repo     = flag.String("repo", "https://code.google.com/p/go", "repo URL")
        verbose  = flag.Bool("v", false, "verbose output")
        upload   = flag.Bool("upload", true, "upload resulting files to Google Code")
@@ -211,20 +211,14 @@ func (b *Build) Do() error {
        }
 
        // Create packages.
-       base := fmt.Sprintf("%s.%s-%s", version, b.OS, b.Arch)
-       if !strings.HasPrefix(base, "go") {
-               base = "go." + base
-       }
+       base := fmt.Sprintf("go.%s.%s-%s", version, b.OS, b.Arch)
        var targs []string
        switch b.OS {
        case "linux", "freebsd", "":
                // build tarball
                targ := base
                if b.Source {
-                       targ = fmt.Sprintf("%s.src", version)
-                       if !strings.HasPrefix(targ, "go") {
-                               targ = "go." + targ
-                       }
+                       targ = fmt.Sprintf("go.%s.src", version)
                }
                targ += ".tar.gz"
                err = makeTar(targ, work)