You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gosuv/build_standalone.sh

20 lines
339 B

#!/bin/bash -
#
set -e
set -o pipefail
cd $(dirname $0)
if test $(whoami) = "pi"
then
export GOPATH=/home/pi/build_tmp
export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin
fi
#[[ -f $HOME/.bash_profile ]] && source "$HOME/.bash_profile"
#[[ -f $HOME/.bashrc ]] && source "$HOME/.bashrc"
go generate
exec go build -tags vfs "$@"