Changeset 1498


Ignore:
Timestamp:
05/03/18 16:09:31 (6 years ago)
Author:
oabramkina
Message:

Corrections of r1497.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/make_xios

    r1497 r1498  
    3434            echo "       [--full] : to generate dependencies and recompile from scratch" 
    3535            echo "       [--use_oasis 'oasis3' 'oasis3_mct' : default oasis3_mct] : to use Oasis coupler" 
    36         echo "       [--build_path : absolute or relative path to the build directory" 
     36        echo "       [--build_path : absolute path to the build directory" 
    3737        echo "       [--build_dir : name of the build directory" 
    3838        echo "       [--build_suffixed : generate automatically suffixed name of the build directory (e.g. config_X64_CURIE_prod)" 
     
    8282fi 
    8383 
    84 # Definition of the root directory of the build  
     84# Definition of the root directory of the build 
     85 
     86if [[ "$build_path" == "./" ]]; then 
     87  install_dir=$PWD 
     88else 
     89  install_dir=${build_path} 
     90fi 
     91 
    8592if [[ "$build_suffixed" == "true" ]]; then 
    86     install_dir=$PWD/${build_path}/config_${arch}_${compil_mode} 
    87 else 
    88     install_dir=$PWD/${build_path}/${build_dir} 
    89 fi 
     93    install_dir="${install_dir}/config_${arch}_${compil_mode}" 
     94else 
     95    install_dir="${install_dir}/${build_dir}" 
     96fi 
     97 
    9098mkdir -p $install_dir 
    9199 
Note: See TracChangeset for help on using the changeset viewer.