add --enable-redis flag
This commit is contained in:
parent
fde7ed3d3b
commit
561a0156be
14
build.sh
14
build.sh
@ -6,9 +6,9 @@ if [ "" == "$root" ] ; then
|
|||||||
fi
|
fi
|
||||||
cd "$root"
|
cd "$root"
|
||||||
|
|
||||||
tags="-tags disable_redis"
|
tags=""
|
||||||
|
|
||||||
help_text="usage: $0 [--disable-neochan]"
|
help_text="usage: $0 [--disable-neochan] [--enable-redis]"
|
||||||
|
|
||||||
# check for help flags first
|
# check for help flags first
|
||||||
for arg in "$@" ; do
|
for arg in "$@" ; do
|
||||||
@ -26,9 +26,13 @@ rebuildjs="yes"
|
|||||||
_next=""
|
_next=""
|
||||||
unstable="no"
|
unstable="no"
|
||||||
neochan="no"
|
neochan="no"
|
||||||
|
buildredis="no"
|
||||||
# check for build flags
|
# check for build flags
|
||||||
for arg in "$@" ; do
|
for arg in "$@" ; do
|
||||||
case $arg in
|
case $arg in
|
||||||
|
"--enable-redis")
|
||||||
|
buildredis="yes"
|
||||||
|
;;
|
||||||
"--enable-neochan")
|
"--enable-neochan")
|
||||||
neochan="yes"
|
neochan="yes"
|
||||||
;;
|
;;
|
||||||
@ -54,6 +58,10 @@ for arg in "$@" ; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "$buildredis" == "yes" ] ; then
|
||||||
|
tags="$tags -tags disable_redis"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$rev" == "" ] ; then
|
if [ "$rev" == "" ] ; then
|
||||||
echo "revision not specified"
|
echo "revision not specified"
|
||||||
exit 1
|
exit 1
|
||||||
@ -98,7 +106,7 @@ else
|
|||||||
cp "$GOPATH/bin/nntpchan" "$root"
|
cp "$GOPATH/bin/nntpchan" "$root"
|
||||||
echo "built unstable, if you don't know what to do, run without --unstable"
|
echo "built unstable, if you don't know what to do, run without --unstable"
|
||||||
else
|
else
|
||||||
go get -u -v github.com/majestrate/srndv2
|
go get -u -v $tags github.com/majestrate/srndv2
|
||||||
cp "$GOPATH/bin/srndv2" "$root"
|
cp "$GOPATH/bin/srndv2" "$root"
|
||||||
echo -e "Built\n"
|
echo -e "Built\n"
|
||||||
echo "Now configure NNTPChan with ./srndv2 setup"
|
echo "Now configure NNTPChan with ./srndv2 setup"
|
||||||
|
Reference in New Issue
Block a user