New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 15019 for utils/build/makenemo – NEMO

Changeset 15019 for utils/build/makenemo


Ignore:
Timestamp:
2021-06-18T15:07:09+02:00 (3 years ago)
Author:
gsamson
Message:

small bugfix related & enhancement to #2684 in the case of config names containing special characters such as ISOMIP+

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/build/makenemo

    r14958 r15019  
    8888x_u=''; x_a=''; x_m=''; x_t=''; 
    8989x_c=''; 
    90 x_j='1'; x_e='none'; x_s='src'; x_v='1' 
     90x_j='1'; x_e=(); x_s='src'; x_v='1' 
    9191 
    9292##- Local variables --- 
     
    154154      ('d') x_d=${OPTARG};; ('n') x_n=${OPTARG};; ('r') x_r=${OPTARG};; ('u') x_u=${OPTARG};; 
    155155      ('a') x_a=${OPTARG};; ('m') x_m=${OPTARG};; ('j') x_j=${OPTARG};; ('t') x_t=${OPTARG};; 
    156       ('e') x_e=${OPTARG};; ('s') x_s=${OPTARG};; ('v') x_v=${OPTARG}                      ;; 
     156      ('e') x_e+=(${OPTARG});; ('s') x_s=${OPTARG};; ('v') x_v=${OPTARG}                      ;; 
    157157      ('k') chk_key=${OPTARG}                                                              ;; 
    158158      (':') echo ${b_n}" : -"${OPTARG}" option : missing value" 1>&2;   exit 2             ;; 
     
    277277 
    278278export NEMO_TDIR=${x_t:-$CONFIG_DIR} 
    279 export $NEM_SUBDIR $NEW_CONF 
     279export NEM_SUBDIR="${NEM_SUBDIR}" NEW_CONF="${NEW_CONF}" 
    280280 
    281281## Save new configuration with sub-components set in work_cfgs.txt 
Note: See TracChangeset for help on using the changeset viewer.