From: Shenghou Ma Date: Tue, 16 Oct 2012 07:53:17 +0000 (+0800) Subject: misc/dist: support packaging for NetBSD X-Git-Tag: go1.1rc2~2124 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0c44488ad94fe626a87c046662e714ee2058c8c2;p=gostls13.git misc/dist: support packaging for NetBSD R=adg CC=golang-dev https://golang.org/cl/6650053 --- diff --git a/misc/dist/bindist.go b/misc/dist/bindist.go index 72e86a8a51..cd0c7350df 100644 --- a/misc/dist/bindist.go +++ b/misc/dist/bindist.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. // This is a tool for packaging binary releases. -// It supports FreeBSD, Linux, OS X, and Windows. +// It supports FreeBSD, Linux, NetBSD, OS X, and Windows. package main import ( @@ -215,7 +215,7 @@ func (b *Build) Do() error { } var targs []string switch b.OS { - case "linux", "freebsd", "": + case "linux", "freebsd", "netbsd", "": // build tarball targ := base if b.Source { @@ -425,6 +425,9 @@ func (b *Build) Upload(version string, filename string) error { case "darwin": os_ = "Mac OS X" opsys = "OSX" + case "netbsd": + os_ = "NetBSD" + opsys = "NetBSD" case "windows": os_ = "Windows" opsys = "Windows"