*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit abdb3c76 authored by Valentin Hanser's avatar Valentin Hanser
Browse files

default values for input argument of num_procs for .install

parent dbf289c0
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,18 @@ INSTALL_DIR=./C++/cmake/build ...@@ -4,6 +4,18 @@ INSTALL_DIR=./C++/cmake/build
NUM_PROC=$(grep -c ^processor /proc/cpuinfo) NUM_PROC=$(grep -c ^processor /proc/cpuinfo)
NUM_PROC=$(($NUM_PROC - 1)) NUM_PROC=$(($NUM_PROC - 1))
MAX_NUM_PROC=$1
if [[ -z $MAX_NUM_PROC ]]
then
MAX_NUM_PROC=7
fi
if [ $NUM_PROC -gt $MAX_NUM_PROC ]
then
NUM_PROC=$MAX_NUM_PROC
fi
if [[ ! -d $INSTALL_DIR ]] if [[ ! -d $INSTALL_DIR ]]
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment