Changeset 346
- Timestamp:
- 2005-11-16T17:31:52+01:00 (19 years ago)
- Location:
- trunk/UTIL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/fait_AA_make
r309 r346 445 445 echo ' fi ' 446 446 echo ' @check=`grep TOP_SRC .config` ; \' 447 echo ' check2=`grep SRC_OFFLINE_TRC .config` ; \' 448 echo ' if ( [ -n "$$check" ] && [ -z "$$check2" ] ) ; then \' 447 echo ' if [ -n "$$check" ] ; then \' 449 448 echo ' echo " use TOP_SRC files" ; \' 450 449 echo ' \$(RM) trcstp.F90 ; \' 451 450 echo ' \$(RM) sms.F90 ; \' 452 451 echo ' \$(RM) initrc.F90 ; \' 453 echo ' ln -sf ../TOP_SRC/*.[Ffh] . ; \'454 452 echo ' ln -sf ../TOP_SRC/*.[Ffh]90 . ; \' 455 453 echo ' ln -sf ../TOP_SRC/SMS/*.[Ffh] . ; \' … … 457 455 echo ' ln -sf ../TOP_SRC/TRP/*.[Ffh]90 . ; \' 458 456 echo ' fi ' 459 echo ' @check=`grep SRC_OFFLINE_TRC .config`; \'457 echo ' @check=`grep OFF_SRC .config` ; \' 460 458 echo ' if [ -n "$$check" ] ; then \' 461 echo ' echo " use TOP_SRC and SRC_OFFLINE_TRC files" ; \' 462 echo ' ln -sf ../TOP_SRC/*.[Ffh] . ; \' 463 echo ' ln -sf ../TOP_SRC/SMS/*.[Ffh] . ; \' 464 echo ' ln -sf ../SRC_OFFLINE_TRC/*.[Ffh] . ; \' 459 echo ' echo " use OFF_SRC files" ; \' 460 echo ' ln -sf ../OFF_SRC/*.[Ffh]90 . ; \' 461 echo ' ln -sf ../OFF_SRC/*/*.[Ffh]90 . ; \' 465 462 echo ' fi ' 466 463 echo ' @\$(RM) tmplist' -
trunk/UTIL/fait_config
r277 r346 4 4 # Contact : opatlod@lodyc.jussieu.fr 5 5 # 6 # This script aims to create the OPA/WORK directory 6 # This script aims to create the OPA/WORK directory 7 # with links to target directories for the sources 7 8 # and to link in the WORK the BB_make and BB_make.ldef 8 9 # associated to a chosen configuration … … 23 24 # the config/ORCA2_LIM directory is copied under NAME 24 25 # 25 # Example : in order to create a GYRE_TRC configuration :26 # Example 1 : in order to create a GYRE_TRC configuration : 26 27 # 1. In this script, change LIST to LIST="ORCA2_LIM \nGYRE \nGYRE_TRC" 27 # 2. In this script, add set -A DIR_GYRE_TRC OPA_SRC LIM_SRC TOP_SRC , take care of the syntax28 # 2. In this script, add set -A DIR_GYRE_TRC OPA_SRC LIM_SRC TOP_SRC C1D_SRC, take care of the syntax 28 29 # 3. Run fait_config GYRE_TRC 30 # Example 2 : in order to create an OFFLINE_TRC configuration : 31 # 1. In this script, change LIST to LIST="ORCA2_LIM \nGYRE \nOFFLINE_TRC" 32 # 2. In this script, add set -A DIR_OFFLINE_TRC OFF_SRC TOP_SRC, take care of the syntax 33 # 3. Run fait_config OFFLINE_TRC 29 34 30 35 LIST="ORCA2_LIM \nGYRE" … … 97 102 98 103 elif [ "${TAB[i]}" = "TOP_SRC" ]; then 99 \rm trcstp.F90 100 \rm sms.F90 101 \rm initrc.F90 102 ln -sf ../TOP_SRC/*.[Ffh] . 104 [ -f trcstp.F90 ] && \rm trcstp.F90 105 [ -f sms.F90 ] && \rm sms.F90 106 [ -f initrc.F90 ] && \rm initrc.F90 103 107 ln -sf ../TOP_SRC/*.[Ffh]90 . 104 108 ln -sf ../TOP_SRC/SMS/*.[Ffh] . … … 106 110 ln -sf ../TOP_SRC/TRP/*.[Ffh]90 . 107 111 108 elif [ "${TAB[i]}" = "SRC_OFFLINE_TRC" ]; then 109 ln -sf ../TOP_SRC/*.[Ffh] . 110 ln -sf ../TOP_SRC/SMS/*.[Ffh] . 111 ln -sf ../SRC_OFFLINE_TRC/*.[Ffh] . 112 elif [ "${TAB[i]}" = "OFF_SRC" ]; then 113 ln -sf ../OFF_SRC/*.[Ffh]90 . 114 ln -sf ../OFF_SRC/*/*.[Ffh]90 . 112 115 fi 113 116 let i=$i+1
Note: See TracChangeset
for help on using the changeset viewer.