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

Add clean section

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