Files
ghorg/gobuild.sh
2018-09-30 12:10:35 -07:00

18 lines
286 B
Bash
Executable File

#!/bin/bash
set -eux
export GOPATH="$(pwd)/.gobuild"
SRCDIR="${GOPATH}/src/github.com/gabrie30/ghorg"
[ -d ${GOPATH} ] && rm -rf ${GOPATH}
mkdir -p ${GOPATH}/{src,pkg,bin}
mkdir -p ${SRCDIR}
cp ghorg.go ${SRCDIR}
(
echo ${GOPATH}
cd ${SRCDIR}
go get .
go install .
)