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 15186 – NEMO

Changeset 15186


Ignore:
Timestamp:
2021-08-12T18:39:09+02:00 (3 years ago)
Author:
gsamson
Message:

simplify commit done at r14979 (#2689) and restore MY_SRC subdir links introduced at r13528

Location:
utils/build
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • utils/build/makenemo

    r15021 r15186  
    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             ;; 
  • utils/build/mk/Fmake_WORK.sh

    r14979 r15186  
    6767ZCONF=${NEW_CONF} 
    6868ZTAB=${NEM_SUBDIR[@]} 
    69 declare i=0 ; declare NDIR=${#ZTAB[@]} 
     69declare NDIR=${#ZTAB[@]} 
    7070 
    7171echo 'Creating '${ZCONF}'/WORK = '${ZTAB[*]}' for '${ZCONF} 
     
    8080for ZDIR in ${ZSRC[@]}; do 
    8181    if [ -d ${ZDIR} ] ; then 
    82       ln -sf ${ZDIR}/*.[Ffh]90 ${ZCONF}/WORK/.  
    83       echo ${ZDIR}' content is linked to '${ZCONF}/WORK 
     82        d=${ZDIR} 
    8483    elif [ -d ${ZCONF}/${ZDIR} ] ; then 
    85         for ff in ${ZCONF}/${ZDIR}/*.[Ffh]90 
    86         do 
    87          f=`basename $ff` 
    88          ln -sf ../${ZDIR}/$f ${ZCONF}/WORK/.  
    89         done 
    90       echo ${ZCONF}/${ZDIR}' content is linked to '${ZCONF}/WORK 
     84        d=${ZCONF}/${ZDIR} 
    9185    else 
    92         for ff in ${ZCONF}/MY_SRC/*.[Ffh]90 
    93         do 
    94          f=`basename $ff` 
    95          ln -sf ../MY_SRC/$f ${ZCONF}/WORK/.  
    96         done 
    97       echo 'External directory for MY_SRC unspecified or does not exist. Using default.' 
    98       echo ${ZCONF}/MY_SRC' content is linked to '${ZCONF}/WORK 
     86        d=${ZCONF}/MY_SRC 
     87        echo 'External directory for MY_SRC unspecified or does not exist. Using default.' 
    9988    fi 
     89 
     90    for ff in `(find ${d} -name *.[Ffh]90 2>/dev/null)` 
     91    do 
     92        f=`basename $ff` 
     93        ln -sf $ff ${ZCONF}/WORK/.  
     94    done 
     95    echo ${d}' content is linked to '${ZCONF}/WORK 
    10096done 
    10197 
    102 unset -v ZCONF ZTAB i NDIR 
     98unset -v ZCONF ZTAB NDIR 
Note: See TracChangeset for help on using the changeset viewer.