Commit 210bd3fc authored by Cedric Jourdain's avatar Cedric Jourdain
Browse files

Add clean section

parent e09269d1
...@@ -5,7 +5,7 @@ echo " - occigen" ...@@ -5,7 +5,7 @@ echo " - occigen"
echo " - marenostrum " echo " - marenostrum "
echo " - marconi-knl " echo " - marconi-knl "
echo " - daint-gpu " echo " - daint-gpu "
echo " - daint-cpu " echo " - daint-mc "
read machine read machine
source ./env/env_${machine} source ./env/env_${machine}
...@@ -79,14 +79,21 @@ Install(){ ...@@ -79,14 +79,21 @@ Install(){
time -p make -j 12 all >& make.log & time -p make -j 12 all >& make.log &
} }
Deploy(){ Clean(){
echo "install_dir ="$install_dir
if [ $machine = "occigen" ] || [ $machine = "marenostrum" ] || [ $machine = "marconi-knl" ] || [ $machine = "daint-cpu" ] || [ $machine = "daint-gpu" ];then
echo "==> Install on $machine :"
if [ ! -z "$install_dir" ] && [ -d $install_dir ];then if [ ! -z "$install_dir" ] && [ -d $install_dir ];then
echo "==> Clean installation directory" echo "==> Clean installation directory"
rm -rf $install_dir rm -rf $install_dir
else
echo "Error with install_dir variable"
exit
fi fi
}
Deploy(){
echo "install_dir ="$install_dir
if [ $machine = "occigen" ] || [ $machine = "marenostrum" ] || [ $machine = "marconi-knl" ] || [ $machine = "daint-mc" ] || [ $machine = "daint-gpu" ];then
echo "==> Install on $machine :"
#Clean
mkdir -p $install_dir mkdir -p $install_dir
export ueabs_dir=`pwd` export ueabs_dir=`pwd`
Untar Untar
......
Supports Markdown
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