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

Changeset 14979


Ignore:
Timestamp:
2021-06-11T15:25:26+02:00 (3 years ago)
Author:
acc
Message:

#2689 . Replace use of ln -r in Fmake_WORK.sh with a POSIX2-compliant alternative. No change in behaviour expected but should work on all systems

File:
1 edited

Legend:

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

    r14947 r14979  
    8383      echo ${ZDIR}' content is linked to '${ZCONF}/WORK 
    8484    elif [ -d ${ZCONF}/${ZDIR} ] ; then 
    85       ln -rsf ${ZCONF}/${ZDIR}/*.[Ffh]90 ${ZCONF}/WORK/.  
    86       echo ${ZDIR}' content is linked to '${ZCONF}/WORK 
     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 
    8791    else 
    88       ln -rsf ${ZCONF}/MY_SRC/*.[Ffh]90 ${ZCONF}/WORK/.  
    89       echo 'External directory for MY_SRC does not exist. Using default.' 
    90       echo 'MY_SRC content is linked to '${ZCONF}/WORK 
     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 
    9199    fi 
    92100done 
Note: See TracChangeset for help on using the changeset viewer.