)
var (
- tag = flag.String("tag", "weekly", "mercurial tag to check out")
+ tag = flag.String("tag", "release", "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")
}
// Create packages.
- base := fmt.Sprintf("go.%s.%s-%s", version, b.OS, b.Arch)
+ base := fmt.Sprintf("%s.%s-%s", version, b.OS, b.Arch)
+ if !strings.HasPrefix(base, "go") {
+ base = "go." + base
+ }
var targs []string
switch b.OS {
case "linux", "freebsd", "":
// build tarball
targ := base
if b.Source {
- targ = fmt.Sprintf("go.%s.src", version)
+ targ = fmt.Sprintf("%s.src", version)
+ if !strings.HasPrefix(targ, "go") {
+ targ = "go." + targ
+ }
}
targ += ".tar.gz"
err = makeTar(targ, work)