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

Changeset 15223


Ignore:
Timestamp:
2021-09-01T14:12:03+02:00 (3 years ago)
Author:
gsamson
Message:

correct issue introduced at r15186

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/build/mk/Fmake_WORK.sh

    r15186 r15223  
    7878done 
    7979 
     80cd ${ZCONF} 
    8081for ZDIR in ${ZSRC[@]}; do 
    8182    if [ -d ${ZDIR} ] ; then 
    8283        d=${ZDIR} 
    83     elif [ -d ${ZCONF}/${ZDIR} ] ; then 
    84         d=${ZCONF}/${ZDIR} 
    8584    else 
    86         d=${ZCONF}/MY_SRC 
     85        d='MY_SRC' 
    8786        echo 'External directory for MY_SRC unspecified or does not exist. Using default.' 
    8887    fi 
     
    9089    for ff in `(find ${d} -name *.[Ffh]90 2>/dev/null)` 
    9190    do 
    92         f=`basename $ff` 
    93         ln -sf $ff ${ZCONF}/WORK/.  
     91        if [ "$ff" != "${ff#/}" ]; then 
     92          ln -sf $ff WORK/. 
     93        else 
     94          ln -sf ../$ff WORK/. 
     95        fi 
    9496    done 
    9597    echo ${d}' content is linked to '${ZCONF}/WORK 
    9698done 
     99cd - 
    97100 
    98101unset -v ZCONF ZTAB NDIR 
Note: See TracChangeset for help on using the changeset viewer.