mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-02-05 00:15:52 +00:00
18 lines
286 B
Bash
Executable File
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 .
|
|
)
|