1
0
mirror of https://github.com/golang/go synced 2024-11-23 09:30:03 -07:00

misc/dist: fix file regexp

This step makes it possible to upload the -osx10.x binaries
separately to their construction (after signing, for example).

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/28160043
This commit is contained in:
Andrew Gerrand 2013-11-18 13:30:25 +11:00
parent bad181e2c2
commit 7cfcd2f87a

View File

@ -117,8 +117,7 @@ var staticLinkAvailable = []string{
"netbsd", "netbsd",
} }
var fileRe = regexp.MustCompile( var fileRe = regexp.MustCompile(`^(go[a-z0-9-.]+)\.(src|([a-z0-9]+)-([a-z0-9]+)(?:-([a-z0-9.]+))?)\.(tar\.gz|zip|pkg|msi)$`)
`^(go[a-z0-9-.]+)\.(src|([a-z0-9]+)-([a-z0-9]+)(?:-([a-z0-9.]))?)\.`)
func main() { func main() {
flag.Usage = func() { flag.Usage = func() {