From 5a2328d9a5f6aca1ff3609c61788d7357d81df83 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 7 Jun 2014 03:56:13 +0200 Subject: [PATCH] Build for Solaris --- build.sh | 2 +- cmd/syncthing/upgrade.go | 2 ++ cmd/syncthing/upgrade_solaris.go | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 cmd/syncthing/upgrade_solaris.go diff --git a/build.sh b/build.sh index 89848245d..c782bf75b 100755 --- a/build.sh +++ b/build.sh @@ -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#*-} diff --git a/cmd/syncthing/upgrade.go b/cmd/syncthing/upgrade.go index 2ac2843b5..6b09f8533 100644 --- a/cmd/syncthing/upgrade.go +++ b/cmd/syncthing/upgrade.go @@ -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 ( diff --git a/cmd/syncthing/upgrade_solaris.go b/cmd/syncthing/upgrade_solaris.go new file mode 100644 index 000000000..0df2d0e2f --- /dev/null +++ b/cmd/syncthing/upgrade_solaris.go @@ -0,0 +1,7 @@ +package main + +import "errors" + +func upgrade() error { + return errors.New("Upgrade currently unsupported on Solaris") +}