File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33SOURCE_DIR=" $( pwd) "
4- BUILD_DIR=" $( pwd ) /cppbuild/Release"
4+ BUILD_DIR=" ${SOURCE_DIR} /cppbuild/Release"
55
66ncpus=1
77case " $( uname) " in
@@ -13,13 +13,14 @@ case "$(uname)" in
1313 ;;
1414esac
1515
16- echo " Will make with \" -j $ncpus \" ."
16+ echo " Will make with \" -j ${ ncpus} \" ."
1717
18- if [ -d " $BUILD_DIR " ] ; then
19- echo " Build directory ($BUILD_DIR ) exists, removing."
20- rm -rf " $BUILD_DIR "
18+ if [ -d " ${ BUILD_DIR} " ] ; then
19+ echo " Build directory (${ BUILD_DIR} ) exists, removing."
20+ rm -rf " ${ BUILD_DIR} "
2121fi
2222
23- mkdir -p " $BUILD_DIR "
23+ mkdir -p " ${BUILD_DIR} "
24+ cd " ${BUILD_DIR} " || exit
2425
25- (cd " $BUILD_DIR " && cmake -G " Unix Makefiles" " $SOURCE_DIR " && make clean && make -j " $ ncpus" all && ctest -C Release --output-on-failure)
26+ (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