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 3207 for branches/2011/dev_NEMO_MERGE_2011/NEMOGCM – NEMO

Ignore:
Timestamp:
2011-12-09T15:33:57+01:00 (12 years ago)
Author:
rblod
Message:

Fix on ARCH/subdir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/TOOLS/COMPILE/Fcheck_archfile.sh

    r3198 r3207  
    6969   fi 
    7070else 
    71    if [ -f  ${MAIN_DIR}/ARCH/arch-${2}.fcm ]; then 
    72       ln -sf ${MAIN_DIR}/ARCH/arch-${2}.fcm ${COMPIL_DIR}/$1 
     71   myfile=$( find ${MAIN_DIR}/ARCH -name arch-${2}.fcm -print ) 
     72   if [ ${#myfile} -gt 0 ]; then 
     73      ln -sf  ${myfile} ${COMPIL_DIR}/$1 
    7374   else 
    74       ln -sf ${MAIN_DIR}/ARCH/LOCAL/arch-${2}.fcm ${COMPIL_DIR}/$1 
     75      echo "Warning !!!" 
     76      echo "Compiler not existing" 
     77      echo "Try makenemo -h for help" 
     78      echo "EXITING..." 
     79      exit 1        
    7580   fi    
    7681fi 
Note: See TracChangeset for help on using the changeset viewer.