Skip to content

Commit

Permalink
Set GOPATH in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
owenthereal committed May 6, 2015
1 parent 97e4bbf commit c29151b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c29151b

Please sign in to comment.