diff options
author | Jakob Unterwurzacher | 2017-11-01 18:58:10 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-11-01 18:58:10 +0100 |
commit | 39839ade70035de32084a170faac2a93a771db38 (patch) | |
tree | 9a78a091eba530cecb1daf8ac73f9f6ad6109b30 /build.bash | |
parent | 9a3791fbc1e3422f06bdd3b63868aa28c04267c3 (diff) |
Add source packaging script
Diffstat (limited to 'build.bash')
-rwxr-xr-x | build.bash | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -16,6 +16,13 @@ go version > /dev/null # GOPATH may contain multiple paths separated by ":" GOPATH1=$(go env GOPATH | cut -f1 -d:) +if [[ $PWD != *"/src/github.com/rfjakob/gocryptfs" ]] ; then + echo "Warning: Building outside of GOPATH will most likely fail." + echo " Please rename $PWD to $GOPATH1/src/github.com/rfjakob/gocryptfs ." + sleep 5 + echo +fi + # gocryptfs version according to git or a VERSION file if [[ -d .git ]] ; then GITVERSION=$(git describe --tags --dirty) |