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/Fcheck_config.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/Fcheck_config.sh

    r2520 r3294  
    3939# - Nothing set, use the previous in use  
    4040# 
    41 # We use TOOLS/COMPILE/cfg.txt to check if the onfiguration exists. 
     41# We use TOOLS/CONFIG_DIR/cfg.txt to check if the onfiguration exists. 
    4242# 
    4343# EXAMPLES 
     
    6868declare -a ZTAB 
    6969if [ ${#2} -eq 0 ]; then 
    70    tail -1  ${COMPIL_DIR}/$1  > ${COMPIL_DIR}/cfg.tmp 
    71    read -a ZTAB < ${COMPIL_DIR}/cfg.tmp 
     70   tail -1  ${CONFIG_DIR}/$1  > ${CONFIG_DIR}/cfg.tmp 
     71   read -a ZTAB < ${CONFIG_DIR}/cfg.tmp 
    7272   NEW_CONF=${ZTAB[0]} ; TAB=( ${ZTAB[@]:1} ) 
    73    \rm ${COMPIL_DIR}/cfg.tmp 
     73   \rm ${CONFIG_DIR}/cfg.tmp 
    7474   echo "Warning !!!" 
    7575   echo "No configuration specified" 
     
    7979fi 
    8080if [ "$1" == cfg.txt ]; then 
    81    cat ${COMPIL_DIR}/$1 | grep "${NEW_CONF} " > ${COMPIL_DIR}/cfg.tmp 
    82    read -a ZTAB < ${COMPIL_DIR}/cfg.tmp 
     81   cat ${CONFIG_DIR}/$1 | grep "${NEW_CONF} " > ${CONFIG_DIR}/cfg.tmp 
     82   read -a ZTAB < ${CONFIG_DIR}/cfg.tmp 
    8383   NEW_CONF=${ZTAB[0]} ; TAB=( ${ZTAB[@]:1} ) 
    84    \rm ${COMPIL_DIR}/cfg.tmp 
     84   \rm ${CONFIG_DIR}/cfg.tmp 
    8585fi 
    8686 
Note: See TracChangeset for help on using the changeset viewer.