File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- SOURCE_DIR=" ` pwd` "
4- BUILD_DIR=" ` pwd` /cppbuild/Release"
3+ SOURCE_DIR=" $( pwd) "
4+ BUILD_DIR=" $( pwd) /cppbuild/Release"
55
66ncpus=1
7- case " ` uname` " in
7+ case " $( uname) " in
88 Darwin* )
9- ncpus=` sysctl -n hw.ncpu`
9+ ncpus=$( sysctl -n hw.ncpu)
1010 ;;
1111 Linux* )
1212 ncpus=$( lscpu -p | egrep -v ' ^#' | wc -l)
@@ -17,9 +17,9 @@ echo "Will make with \"-j $ncpus\"."
1717
1818if [ -d " $BUILD_DIR " ] ; then
1919 echo " Build directory ($BUILD_DIR ) exists, removing."
20- rm -rf $BUILD_DIR
20+ rm -rf " $BUILD_DIR "
2121fi
2222
23- mkdir -p $BUILD_DIR
23+ mkdir -p " $BUILD_DIR "
2424
25- (cd $BUILD_DIR && cmake -G " Unix Makefiles" $SOURCE_DIR && make clean && make -j " $ncpus " all && ctest -C Release --output-on-failure)
25+ (cd " $BUILD_DIR " && cmake -G " Unix Makefiles" " $SOURCE_DIR " && make clean && make -j " $ncpus " all && ctest -C Release --output-on-failure)
You can’t perform that action at this time.
0 commit comments