fix build script warning message
authorMike Krinkin <krinkin.m.u@gmail.com>
Sat, 14 Mar 2015 07:34:37 +0000 (10:34 +0300)
committerMike Krinkin <krinkin.m.u@gmail.com>
Sat, 14 Mar 2015 07:34:37 +0000 (10:34 +0300)
With the following command line:
> bash build.sh -c gcc -x g++ -b 64 -o linux -j 2 --clean
i get the next warning message:
> build.sh: line 456: test: !=: unary operator expected
This patch fixes this warning.

build/build.sh

index 7e79549d583a3d130b1bf9ab828fc03f9014b0ea..dedc7ab06948e717f1afe96f1b3a150962a09de4 100644 (file)
@@ -453,7 +453,7 @@ cxx_debug_options="-D_DEBUG -O0 -g $cxx_debug_options"
 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
 
@@ -610,4 +610,4 @@ if test $MAKE_DEBUG_TEST = '1'; then
         exit $?
     fi
 fi   
\ No newline at end of file