From 561a0156be7052dc0664b839a6161f59a2e18586 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 18 Oct 2016 08:44:15 -0400 Subject: [PATCH] add --enable-redis flag --- build.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 8522718..670d7b9 100755 --- a/build.sh +++ b/build.sh @@ -6,9 +6,9 @@ if [ "" == "$root" ] ; then fi 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 for arg in "$@" ; do @@ -26,9 +26,13 @@ rebuildjs="yes" _next="" unstable="no" neochan="no" +buildredis="no" # check for build flags for arg in "$@" ; do case $arg in + "--enable-redis") + buildredis="yes" + ;; "--enable-neochan") neochan="yes" ;; @@ -54,6 +58,10 @@ for arg in "$@" ; do esac done +if [ "$buildredis" == "yes" ] ; then + tags="$tags -tags disable_redis" +fi + if [ "$rev" == "" ] ; then echo "revision not specified" exit 1 @@ -98,7 +106,7 @@ else cp "$GOPATH/bin/nntpchan" "$root" echo "built unstable, if you don't know what to do, run without --unstable" else - go get -u -v github.com/majestrate/srndv2 + go get -u -v $tags github.com/majestrate/srndv2 cp "$GOPATH/bin/srndv2" "$root" echo -e "Built\n" echo "Now configure NNTPChan with ./srndv2 setup"