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.
fmake.patch on Ticket #1895 – Attachment – NEMO

Ticket #1895: fmake.patch

File fmake.patch, 899 bytes (added by mdunphy, 7 years ago)

Change ls to \ls in Fmake_WORK.sh

  • NEMOGCM/TOOLS/COMPILE/Fmake_WORK.sh

    # HG changeset patch
    # User Michael Dunphy
    # Date 1494271255 25200
    #      Mon May 08 12:20:55 2017 -0700
    # Node ID 4979fc15317c1c899697c1b89d5a64d688917253
    # Parent  e0e82550c50fb118f913c229a54df27893b11657
    Patch Fmake_WORK.sh to bypass any alias for 'ls'
    
    Without this adjustment, users who alias 'ls' to include
    the -F flag get an incorrect WORK directory if their
    configuration's MY_SRC contains symlinks.
    
    diff -r e0e82550c50f -r 4979fc15317c NEMOGCM/TOOLS/COMPILE/Fmake_WORK.sh
    a b  
    104104   let i=$i+1 
    105105done 
    106106 
    107 for i in `(cd ${ZCONF}/MY_SRC ; ls *.[Ffh]90 2>/dev/null ) ` 
     107for i in `(cd ${ZCONF}/MY_SRC ; \ls *.[Ffh]90 2>/dev/null ) ` 
    108108   do 
    109109      [ -f ${ZCONF}/MY_SRC/$i ] &&  ln -sf $PWD/${ZCONF}/MY_SRC/${i} ${ZCONF}/WORK/. 
    110110   done