Commit 0c44488a authored by Shenghou Ma's avatar Shenghou Ma

misc/dist: support packaging for NetBSD

R=adg
CC=golang-dev
https://golang.org/cl/6650053
parent 6e0df254
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// This is a tool for packaging binary releases. // 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 package main
import ( import (
...@@ -215,7 +215,7 @@ func (b *Build) Do() error { ...@@ -215,7 +215,7 @@ func (b *Build) Do() error {
} }
var targs []string var targs []string
switch b.OS { switch b.OS {
case "linux", "freebsd", "": case "linux", "freebsd", "netbsd", "":
// build tarball // build tarball
targ := base targ := base
if b.Source { if b.Source {
...@@ -425,6 +425,9 @@ func (b *Build) Upload(version string, filename string) error { ...@@ -425,6 +425,9 @@ func (b *Build) Upload(version string, filename string) error {
case "darwin": case "darwin":
os_ = "Mac OS X" os_ = "Mac OS X"
opsys = "OSX" opsys = "OSX"
case "netbsd":
os_ = "NetBSD"
opsys = "NetBSD"
case "windows": case "windows":
os_ = "Windows" os_ = "Windows"
opsys = "Windows" opsys = "Windows"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment