exit 1
fi
-if [ "$1" == "--help" ]
+if [ "$1" = "--help" ]
then
echo "cql_config 'option' ['library']"
echo "options:"
cql_lib=$2
fi
-if [ "$1" == "--cflags-only-other" ]
+if [ "$1" = "--cflags-only-other" ]
then
exit 0
fi
-if [ "$1" == "--cflags-only-I" ]
+if [ "$1" = "--cflags-only-I" ]
then
echo "-I${CPP_DRIVER_PATH}/include/"
exit 0
fi
-if [ "$1" == "--libs" ]
+if [ "$1" = "--libs" ]
then
echo "-L${CPP_DRIVER_PATH}/build/ -l${cql_lib} -luv"
exit 0
fi
-if [ "$1" == "--modversion" ]
+if [ "$1" = "--modversion" ]
then
MAJOR=$(grep VERSION_MAJOR "${CPP_DRIVER_PATH}/include/cassandra.h" | cut -d " " -f 3)
MINOR=$(grep VERSION_MINOR "${CPP_DRIVER_PATH}/include/cassandra.h" | cut -d " " -f 3)
echo "${MAJOR}.${MINOR}.${PATCH}"
exit 0
fi
-if [ "$1" == "--print-errors" ]
+if [ "$1" = "--print-errors" ]
then
exit 0
fi
echo "run: \`$0 --help\` for more help1"
exit 0
fi
-if [ "$1" == "--help" ]
+if [ "$1" = "--help" ]
then
echo "sysrepo_config 'option' ['library']"
echo "options:"
exit 0
fi
-if [ "$1" == "--modversion" ]; then
+if [ "$1" = "--modversion" ]; then
MAJOR="1"
MINOR="0"
PATCH="0"
exit 0
fi
-if [ "$1" == "--variable=SR_REPOSITORY_LOC" ]; then
+if [ "$1" = "--variable=SR_REPOSITORY_LOC" ]; then
echo "${SYSREPO_PATH}/build/repository"
fi