From c29151b18413974e8742160522980df28b9b84af Mon Sep 17 00:00:00 2001 From: Jingwen Owen Ou Date: Wed, 6 May 2015 08:30:51 -0700 Subject: [PATCH] Set GOPATH in build script --- build | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build b/build index 19a048e..f5faa14 100755 --- a/build +++ b/build @@ -1,3 +1,12 @@ #!/bin/bash -e +setup_gopath() { + rm -rf .gopath + SELF="${PWD}/.gopath/src/github.com/jingweno/ccat" + mkdir -p "${SELF%/*}" + ln -snf "$PWD" "$SELF" + export GOPATH="${PWD}/.gopath" +} + +setup_gopath go build -o ccat