File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- SOURCE_DIR=" ` pwd` "
4
- BUILD_DIR=" ` pwd` /cppbuild/Release"
3
+ SOURCE_DIR=" $( pwd) "
4
+ BUILD_DIR=" $( pwd) /cppbuild/Release"
5
5
6
6
ncpus=1
7
- case " ` uname` " in
7
+ case " $( uname) " in
8
8
Darwin* )
9
- ncpus=` sysctl -n hw.ncpu`
9
+ ncpus=$( sysctl -n hw.ncpu)
10
10
;;
11
11
Linux* )
12
12
ncpus=$( lscpu -p | egrep -v ' ^#' | wc -l)
@@ -17,9 +17,9 @@ echo "Will make with \"-j $ncpus\"."
17
17
18
18
if [ -d " $BUILD_DIR " ] ; then
19
19
echo " Build directory ($BUILD_DIR ) exists, removing."
20
- rm -rf $BUILD_DIR
20
+ rm -rf " $BUILD_DIR "
21
21
fi
22
22
23
- mkdir -p $BUILD_DIR
23
+ mkdir -p " $BUILD_DIR "
24
24
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