echo "Build helper script for one of the supported platforms"
echo "Usage: build.sh \"options\""
echo " where options may be any of the following:"
- echo " -t make target"
+ echo " -t <target> make target"
echo " -c <C compiler name> Possible values are: gcc,clang,icc"
echo " -x <C++ compiler name> (e.g. g++, CC)"
echo " -p <Processor architecture> Possible values are:"
cxx_release_options="-DNDEBUG $cxx_release_optimization $cxx_release_options"
-if test '$BOOST_INCLUDE_PATH' != ''; then
+if test 'x$BOOST_INCLUDE_PATH' != 'x'; then
buildCXXflags="$buildCXXflags -I$BOOST_INCLUDE_PATH"
fi
platform=$OS_FAMILY \
BIN_PATH=$BIN_PATH \
OBJ_PATH=$OBJ_PATH/test \
- $target
-
- if [ $? -ne 0 ]; then
- exit $?
- fi
+ $target \
+ || exit $?
fi
echo ---------------------------------
platform=$OS_FAMILY \
BIN_PATH=$BIN_PATH \
OBJ_PATH=$OBJ_PATH/test-debug \
- $target
-
- if [ $? -ne 0 ]; then
- exit $?
- fi
+ $target \
+ || exit $?
fi
-
\ No newline at end of file
+