remove old build.sh

This commit is contained in:
Cadey Ratio 2017-09-30 11:48:08 -07:00
parent 853973ad46
commit 0f13d0d0fc
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
1 changed files with 0 additions and 24 deletions

View File

@ -1,24 +0,0 @@
#!/bin/sh
set -e
set -x
dir="$(mktemp -d)"
plugdir="$dir/plugins"
githash="$(git rev-parse HEAD)"
wd="$(pwd)"
libc="glibc"
[[ -f "/lib/libc.musl-x86_64.so.1" ]] && libc="musl"
export GOBIN="$dir/bin"
go build git.xeserv.us/xena/route/cmd/...
go install git.xeserv.us/xena/route/cmd/...
go build -buildmode plugin -o $plugdir/autohttpagent.so git.xeserv.us/xena/route/plugins/autohttpagent
cd $dir
tar czf "$wd/route-$libc-$githash.tgz" *
cd $wd
rm -rf $dir