Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sergey Gorbunov
CbmTools
Commits
02566c01
Commit
02566c01
authored
Jan 09, 2022
by
sergeizharko
Browse files
myBashFuncitons.sh: add make clean option to rebuild-cbm function
parent
73be18b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
macro/myBashFunctions.sh
macro/myBashFunctions.sh
+7
-0
No files found.
macro/myBashFunctions.sh
View file @
02566c01
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment