update build.sh to use in repo source for daemon
This commit is contained in:
parent
3a6cbf9de6
commit
f0b3de1c6e
16
build.sh
16
build.sh
@ -109,14 +109,10 @@ if [ "$ipfs" == "yes" ] ; then
|
|||||||
echo -e "Built\n"
|
echo -e "Built\n"
|
||||||
echo "Now configure NNTPChan with ./srndv2 setup"
|
echo "Now configure NNTPChan with ./srndv2 setup"
|
||||||
else
|
else
|
||||||
if [ "$unstable" == "yes" ] ; then
|
echo "building the daemon..."
|
||||||
make -C contrib/backends/srndv2
|
echo
|
||||||
cp contrib/backends/srndv2/nntpchand "$root/nntpchan"
|
make -C contrib/backends/srndv2
|
||||||
echo "built unstable, if you don't know what to do, run without --unstable"
|
cp contrib/backends/srndv2/srndv2 .
|
||||||
else
|
echo "built"
|
||||||
go get -u -v $tags github.com/majestrate/srndv2
|
echo "now configure NNTPChan with ./srndv2 setup"
|
||||||
cp "$GOPATH/bin/srndv2" "$root"
|
|
||||||
echo -e "Built\n"
|
|
||||||
echo "Now configure NNTPChan with ./srndv2 setup"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
REPO=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
REPO=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
all: srndv2
|
all: clean build
|
||||||
|
|
||||||
|
build: srndv2
|
||||||
|
|
||||||
srndv2:
|
srndv2:
|
||||||
GOPATH=$(REPO) go build -v
|
GOPATH=$(REPO) go build -v
|
||||||
|
Reference in New Issue
Block a user