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 3294 for trunk/NEMOGCM/TOOLS/COMPILE/Fmake_WORK.sh – NEMO

Ignore:
Timestamp:
2012-01-28T17:44:18+01:00 (12 years ago)
Author:
rblod
Message:

Merge of 3.4beta into the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/TOOLS/COMPILE/Fmake_WORK.sh

    r2520 r3294  
    6464# 
    6565#- 
    66 declare ZCONF=$1 ; shift  
     66declare ZSRC=$1 ; shift  
     67declare ZCONF=$1 ; shift 
    6768ZTAB=( $@ ) 
    6869declare i=0 ; declare NDIR=${#ZTAB[@]} 
    6970 
    7071echo "Creating ${ZCONF}/WORK = ${ZTAB[*]} for ${ZCONF}" 
    71 echo "" 
    7272 
    7373[ ! -d ${ZCONF}/MY_SRC ] && \mkdir ${ZCONF}/MY_SRC 
    7474[   -d ${ZCONF}/WORK   ] || \mkdir ${ZCONF}/WORK 
     75 
     76if [ "${ZSRC}" != "none" ] ; then  
     77  if [ -d ${ZSRC} ] ; then  
     78     ln -sf ${ZSRC}/*.[Ffh]90 ${ZCONF}/MY_SRC/.  
     79     echo "MY_SRC content is linked to ${ZSRC}"  
     80  else 
     81     echo "External directory for MY_SRC does not exist. Using default." 
     82  fi 
     83else  
     84echo "MY_SRC directory is : ${ZCONF}/MY_SRC" 
     85fi 
    7586 
    7687\rm -f ../${1}/WORK/* 
Note: See TracChangeset for help on using the changeset viewer.