From d8815c8316df00354613c821ad4818bd2b718797 Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Tue, 13 Dec 2016 16:18:25 +0100 Subject: [PATCH] add ./build.sh --- build.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/build.sh b/build.sh index dd93c8f..f1ccadc 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,25 @@ P=$PWD; cd $GOPATH/src/dev.sum7.eu/sum7/warehost/cmd/warehost; go install -tags all; + cd $GOPATH/src/dev.sum7.eu/sum7/warehost/cmd/warehost-web; go install; +cd $GOPATH/src/dev.sum7.eu/sum7/warehost/cmd/warehost-host; +go install; + +cd $GOPATH/src/dev.sum7.eu/sum7/warehost/cmd/warehost-ftp; +go install; + +cd $GOPATH/src/dev.sum7.eu/sum7/warehost/cmd/warehost-auth; +go install; + +SERVER="apus.h.sum7.eu"; + +scp $GOPATH/bin/warehost $SERVER:/srv/http/domain/warehost.sum7.eu/downloads/current/warehost-api; +scp $GOPATH/bin/warehost-web $SERVER:/srv/http/domain/warehost.sum7.eu/downloads/current/warehost-web; +scp $GOPATH/bin/warehost-host $SERVER:/srv/http/domain/warehost.sum7.eu/downloads/current/warehost-host; +scp $GOPATH/bin/warehost-ftp $SERVER:/srv/http/domain/warehost.sum7.eu/downloads/current/warehost-ftp; +scp $GOPATH/bin/warehost-auth $SERVER:/srv/http/domain/warehost.sum7.eu/downloads/current/warehost-auth; + cd $P;