X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/48ffdd5ac196771381c8dc9ab47cfad5f1929720..83561af02e156758b09ea771510ad4f9ee506b06:/services/keep/go.sh diff --git a/services/keep/go.sh b/services/keep/go.sh index fa6b5f6b4e..156fe90df2 100755 --- a/services/keep/go.sh +++ b/services/keep/go.sh @@ -1,11 +1,16 @@ #! /bin/sh -rootdir=$(dirname $0) +# Wraps the 'go' executable with some environment setup. Sets GOPATH, creates +# 'pkg' and 'bin' directories, automatically installs dependencies, then runs +# the underlying 'go' executable with any command line parameters provided to +# the script. + +rootdir=$(readlink -f $(dirname $0)) GOPATH=$rootdir:$rootdir/../../sdk/go:$GOPATH export GOPATH -mkdir -p pkg -mkdir -p bin +mkdir -p $rootdir/pkg +mkdir -p $rootdir/bin go get github.com/gorilla/mux