Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UEABS
ueabs
Commits
5848957d
Commit
5848957d
authored
Jan 31, 2019
by
Cedric Jourdain
Browse files
Handle clean part
parent
65e536d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
specfem3d/compile.sh
View file @
5848957d
...
...
@@ -90,7 +90,21 @@ Install(){
Clean
(){
if
[
!
-z
"
$install_dir
"
]
&&
[
-d
$install_dir
]
;
then
echo
"==> Clean installation directory"
rm
-rf
$install_dir
while
true
do
echo
"===> Choose Test Case directory to delete: (A, B, none)"
read
answer1
if
[
"
$answer1
"
=
"A"
]
||
[
"
$answer1
"
=
"B"
]
||
[
"
$answer1
"
=
"none"
]
;
then
break
;
fi
done
if
[
$answer1
=
"A"
]
;
then
echo
"Delete
$install_dir
/TestCaseA"
rm
-rf
$install_dir
/TestCaseA
elif
[
$answer1
=
"B"
]
;
then
echo
"Delete
$install_dir
/TestCaseB"
rm
-rf
$install_dir
/TestCaseB
elif
[
$answer1
=
"none"
]
;
then
echo
"Nothing to delete, next step"
fi
else
echo
"Error with install_dir variable"
exit
...
...
@@ -101,7 +115,7 @@ Deploy(){
echo
"install_dir ="
$install_dir
if
[
$machine
=
"occigen"
]
||
[
$machine
=
"marenostrum"
]
||
[
$machine
=
"marconi-knl"
]
||
[
$machine
=
"daint-cpu-only"
]
||
[
$machine
=
"daint-gpu"
]
||
[
$machine
=
"davide"
]
||
[
$machine
=
"juwels"
]
||
[
$machine
=
"irene-skl"
]
||
[
$machine
=
"irene-knl"
]
||
[
$machine
=
"dibona"
]
||
[
$machine
=
"frioul"
]
;
then
echo
"==> Install on
$machine
:"
#
Clean
Clean
mkdir
-p
$install_dir
export
ueabs_dir
=
`
pwd
`
Untar
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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