3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-13 07:29:30 +01:00
ergo/install.sh
Shivaram Lingamneni b6feca05a3 first pass at #409
2019-02-21 03:38:06 -05:00

17 lines
379 B
Bash
Executable File

#!/bin/bash
if [ -z "$GOPATH" ]; then
echo \$GOPATH is unset: see https://golang.org/doc/code.html for details
exit 1
fi
EXPECTED_DIR=${GOPATH}/src/github.com/oragono/oragono
if [ `pwd` != "$EXPECTED_DIR" ] ; then
echo working checkout is not where \$GOPATH expects it: should be $EXPECTED_DIR
exit 1
fi
go install -v
echo successfully installed as ${GOPATH}/bin/oragono