build.bash: use $(go env GOPATH)
This commit is contained in:
parent
1139c27c36
commit
166c62fd21
@ -64,7 +64,13 @@ as well as in the go-fuse library.
|
|||||||
Compile
|
Compile
|
||||||
-------
|
-------
|
||||||
|
|
||||||
$ go get github.com/rfjakob/gocryptfs
|
$ go get -d github.com/rfjakob/gocryptfs
|
||||||
|
$ cd $(go env GOPATH)/src/github.com/rfjakob/gocryptfs
|
||||||
|
$ ./build.bash
|
||||||
|
|
||||||
|
Or, if you don't have OpenSSL installed:
|
||||||
|
|
||||||
|
$ ./build-without-openssl.bash
|
||||||
|
|
||||||
Use
|
Use
|
||||||
---
|
---
|
||||||
|
@ -4,13 +4,8 @@ set -eu
|
|||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
# Starting with Go v1.8, GOPATH may be unset. $HOME/go is used instead.
|
# GOPATH may contain multiple paths separated by ":"
|
||||||
if [[ -z ${GOPATH:-} ]] ; then
|
GOPATH1=$(go env GOPATH | cut -f1 -d:)
|
||||||
GOPATH1=$HOME/go
|
|
||||||
else
|
|
||||||
# GOPATH may contain multiple paths separated by ":"
|
|
||||||
GOPATH1=$(echo $GOPATH | cut -f1 -d:)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# gocryptfs version according to git
|
# gocryptfs version according to git
|
||||||
GITVERSION=$(git describe --tags --dirty)
|
GITVERSION=$(git describe --tags --dirty)
|
||||||
|
Loading…
Reference in New Issue
Block a user