File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 2
2
3
3
if [ " $REPO_ROOT " == " " ] ; then REPO_ROOT=" $( readlink -f $( dirname $( readlink -f $0 ) ) /../) " ; fi
4
4
5
- # check for build environment, tools and libraries
6
-
7
- if [ " $( command -v cmake) " == " " ] ;
8
- then
5
+ if [ " $( command -v cmake) " == " " ] ;
6
+ then
9
7
echo " error: cmake not found." 1>&2
10
- exit -1
8
+ exit
11
9
fi
12
10
13
- if [ " $( command -v dotnet) " == " " ] ;
14
- then
11
+ if [ " $( command -v dotnet) " == " " ] ;
12
+ then
15
13
echo " error: dotnet not found." 1>&2
16
14
echo " see: https://www.microsoft.com/net/download/linux"
17
- exit -1
15
+ exit
18
16
fi
19
17
20
18
# build
21
- mkdir -p " $REPO_ROOT /build" && pushd " $_ " || exit -1
22
- cmake " $REPO_ROOT " -DCMAKE_BUILD_TYPE=Release || exit -1
23
- make -j || exit -1
19
+ mkdir -p " $REPO_ROOT /build" && pushd " $_ " || exit
20
+ cmake " $REPO_ROOT " -DCMAKE_BUILD_TYPE=Release || exit
21
+ make -j $( nproc ) || exit
24
22
popd
You can’t perform that action at this time.
0 commit comments