Build for Solaris

This commit is contained in:
Jakob Borg 2014-06-07 03:56:13 +02:00
parent b2f66cfb60
commit 5a2328d9a5
3 changed files with 10 additions and 1 deletions

View File

@ -121,7 +121,7 @@ case "$1" in
godep go build ./cmd/stpidx
godep go build ./cmd/stcli
for os in darwin-amd64 linux-386 linux-amd64 freebsd-amd64 windows-amd64 windows-386 ; do
for os in darwin-amd64 linux-386 linux-amd64 freebsd-amd64 windows-amd64 windows-386 solaris-amd64 ; do
export GOOS=${os%-*}
export GOARCH=${os#*-}

View File

@ -2,6 +2,8 @@
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.
// +build !solaris
package main
import (

View File

@ -0,0 +1,7 @@
package main
import "errors"
func upgrade() error {
return errors.New("Upgrade currently unsupported on Solaris")
}