0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 15:41:05 +08:00

Problem: syntax errors in ci_build.sh

Solution: fix them
This commit is contained in:
Luca Boccassi 2020-05-05 12:16:19 +01:00
parent cdd9e9d1f4
commit 0c5396849b

View File

@ -3,7 +3,7 @@
set -x set -x
set -e set -e
if [ $BUILD_TYPE == "default" ]; then if [ $BUILD_TYPE = "default" ]; then
mkdir tmp mkdir tmp
BUILD_PREFIX=$PWD/tmp BUILD_PREFIX=$PWD/tmp
@ -16,19 +16,19 @@ if [ $BUILD_TYPE == "default" ]; then
CONFIG_OPTS+=("--prefix=${BUILD_PREFIX}") CONFIG_OPTS+=("--prefix=${BUILD_PREFIX}")
CHECK="distcheck" CHECK="distcheck"
if [ -n "$ADDRESS_SANITIZER" ] && [ "$ADDRESS_SANITIZER" == "enabled" ]; then if [ -n "$ADDRESS_SANITIZER" ] && [ "$ADDRESS_SANITIZER" = "enabled" ]; then
CONFIG_OPTS+=("--enable-address-sanitizer=yes") CONFIG_OPTS+=("--enable-address-sanitizer=yes")
# distcheck does an out-of-tree build, and the fuzzer tests use a hard-coded relative path for simplicity # distcheck does an out-of-tree build, and the fuzzer tests use a hard-coded relative path for simplicity
CHECK="check" CHECK="check"
fi fi
if [ $USE_NSS == "yes" ]; then if [ "$USE_NSS" = "yes" ]; then
CONFIG_OPTS+=("--with-nss") CONFIG_OPTS+=("--with-nss")
fi fi
if [ -z $CURVE ]; then if [ -z "$CURVE" ]; then
CONFIG_OPTS+=("--disable-curve") CONFIG_OPTS+=("--disable-curve")
elif [ $CURVE == "libsodium" ]; then elif [ "$CURVE" = "libsodium" ]; then
CONFIG_OPTS+=("--with-libsodium=yes") CONFIG_OPTS+=("--with-libsodium=yes")
if ! ((command -v dpkg-query >/dev/null 2>&1 && dpkg-query --list libsodium-dev >/dev/null 2>&1) || \ if ! ((command -v dpkg-query >/dev/null 2>&1 && dpkg-query --list libsodium-dev >/dev/null 2>&1) || \
@ -38,19 +38,19 @@ if [ $BUILD_TYPE == "default" ]; then
fi fi
fi fi
if [ -n "$GSSAPI" ] && [ "$GSSAPI" == "enabled" ]; then if [ -n "$GSSAPI" ] && [ "$GSSAPI" = "enabled" ]; then
CONFIG_OPTS+=("--with-libgssapi_krb5=yes") CONFIG_OPTS+=("--with-libgssapi_krb5=yes")
fi fi
if [ -n "$PGM" ] && [ "$PGM" == "enabled" ]; then if [ -n "$PGM" ] && [ "$PGM" = "enabled" ]; then
CONFIG_OPTS+=("--with-pgm=yes") CONFIG_OPTS+=("--with-pgm=yes")
fi fi
if [ -n "$NORM" ] && [ "$NORM" == "enabled" ]; then if [ -n "$NORM" ] && [ "$NORM" = "enabled" ]; then
CONFIG_OPTS+=("--with-norm=yes") CONFIG_OPTS+=("--with-norm=yes")
fi fi
if [ -n "$TIPC" ] && [ "$TIPC" == "enabled" ]; then if [ -n "$TIPC" ] && [ "$TIPC" = "enabled" ]; then
sudo modprobe tipc sudo modprobe tipc
fi fi
@ -58,17 +58,17 @@ if [ $BUILD_TYPE == "default" ]; then
CONFIG_OPTS+=("--with-poller=${POLLER}") CONFIG_OPTS+=("--with-poller=${POLLER}")
fi fi
if [ -n "$TLS" ] && [ "$TLS" == "enabled" ]; then if [ -n "$TLS" ] && [ "$TLS" = "enabled" ]; then
CONFIG_OPTS+=("--with-tls=yes") CONFIG_OPTS+=("--with-tls=yes")
fi fi
if [ -z $DRAFT ] || [ $DRAFT == "disabled" ]; then if [ -z "$DRAFT" ] || [ "$DRAFT" = "disabled" ]; then
CONFIG_OPTS+=("--enable-drafts=no") CONFIG_OPTS+=("--enable-drafts=no")
elif [ $DRAFT == "enabled" ]; then elif [ "$DRAFT" = "enabled" ]; then
CONFIG_OPTS+=("--enable-drafts=yes") CONFIG_OPTS+=("--enable-drafts=yes")
fi fi
if [ -n "$FORCE_98" ] && [ "$FORCE_98" == "enabled" ]; then if [ -n "$FORCE_98" ] && [ "$FORCE_98" = "enabled" ]; then
CONFIG_OPTS+=("--enable-force-CXX98-compat=yes") CONFIG_OPTS+=("--enable-force-CXX98-compat=yes")
fi fi