Commit 02566c01 authored by sergeizharko's avatar sergeizharko
Browse files

myBashFuncitons.sh: add make clean option to rebuild-cbm function

parent 73be18b0
......@@ -32,6 +32,7 @@ REGEXP_ISINTEGER='^[0-9]+$'
rebuild-cbm() {
# Variables
local N_THREADS=1
local IF_CLEAN=0
# Check input parameters
while [[ $# > 0 ]]; do
......@@ -42,6 +43,9 @@ rebuild-cbm() {
N_THREADS=${2}
fi
;;
-c | --clean )
IF_CLEAN=1
;;
* )
;;
esac
......@@ -51,6 +55,9 @@ rebuild-cbm() {
# Run cbmroot compilation
pushd .
cd $VMCWORKDIR/build
if [[ $IF_CLEAN -eq 1 ]]; then
make clean
fi
make -j"${N_THREADS}"
RES=$?
popd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment