Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
0c44488a
Commit
0c44488a
authored
Oct 16, 2012
by
Shenghou Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/dist: support packaging for NetBSD
R=adg CC=golang-dev
https://golang.org/cl/6650053
parent
6e0df254
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
misc/dist/bindist.go
misc/dist/bindist.go
+5
-2
No files found.
misc/dist/bindist.go
View file @
0c44488a
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment