|
@@ -1,28 +0,0 @@
|
1
|
|
-#!/bin/sh
|
2
|
|
-
|
3
|
|
-set -e
|
4
|
|
-
|
5
|
|
-if [ -z "$GOPATH" ]; then
|
6
|
|
- echo Error: \$GOPATH is unset
|
7
|
|
- echo See https://golang.org/doc/code.html for details, or try these steps:
|
8
|
|
- printf "\tmkdir -p ~/go\n"
|
9
|
|
- printf "\texport GOPATH=~/go\n"
|
10
|
|
- exit 1
|
11
|
|
-fi
|
12
|
|
-
|
13
|
|
-EXPECTED_DIR=${GOPATH}/src/github.com/oragono/oragono
|
14
|
|
-
|
15
|
|
-if [ "$PWD" != "$EXPECTED_DIR" ] ; then
|
16
|
|
- echo Error: working directory is not where \$GOPATH expects it to be
|
17
|
|
- echo "Expected: $EXPECTED_DIR"
|
18
|
|
- echo "Actual: $PWD"
|
19
|
|
- echo See https://golang.org/doc/code.html for details, or try these steps:
|
20
|
|
- printf "\tmkdir -p %s/src/github.com/oragono\n" "$GOPATH"
|
21
|
|
- printf "\tcd %s/src/github.com/oragono\n" "$GOPATH"
|
22
|
|
- printf "\tmv %s oragono\n" "$PWD"
|
23
|
|
- printf "\tcd oragono\n"
|
24
|
|
- exit 1
|
25
|
|
-fi
|
26
|
|
-
|
27
|
|
-go install -v
|
28
|
|
-echo successfully installed as "${GOPATH}/bin/oragono"
|