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 9765 for utils – NEMO

Changeset 9765 for utils


Ignore:
Timestamp:
2018-06-07T19:15:39+02:00 (6 years ago)
Author:
nicolasmartin
Message:

Cosmetic changes to makenemo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/build/makenemo

    r9735 r9765  
    119119Usage: 
    120120------ 
    121 ./makenemo -[adru] ... -m ... [-h] [-[dejntv] ...] [{list_key,clean,clean_config}] [{add_key,del_key} ...] 
    122  
    123 The previous build is reused by default if no given options 
    124  
    125 Mandatory: 'all' to list available arguments by option 
    126    -a   Demonstration case            (./tests) 
     121./makenemo -[aru] CONFIG -m ARCH [-[dehjntv] ...] [{list_key,clean,clean_config}] [{add_key,del_key} ...] 
     122 
     123The previous build is reused by default if no mandatory option given 
     124 
     125Mandatory: 
     126   -a   Academic test case            (./tests) 
    127127   -m   Computing architecture        (./arch) 
    128128   -r   Reference configuration       (./cfgs) 
    129129   -u   Scripted remote configuration (./tests/rmt_cfgs.txt) 
     130Pass 'all' to any option to list available arguments 
    130131 
    131132Optional: 
    132133   -d   Set of new sub-components (space separated list from ./src directory) 
    133134   -e   Path for alternative patch  location (default: 'MY_SRC' in configuration folder) 
     135   -h   Print this help 
    134136   -j   Number of processes to compile (0: no build) 
    135137   -n   Name for new configuration 
     
    139141 
    140142Examples: 
    141    ¤ Configuration build 
    142         Creation       : ./makenemo -[adru] ... -m ... [...] 
    143         Duplication    : ./makenemo -r      ... -n ... [...] 
     143   ¤ Configuration creation 
     144        Build          : ./makenemo -[aru] ... [...] 
     145        Duplication    : ./makenemo -n ...  -[aru] ... [...] 
    144146   ¤ Configuration management 
    145147        List CPP keys  : ./makenemo [...] list_key 
     
    147149        Fresh start    : ./makenemo [...] clean 
    148150        Erasure        : ./makenemo [...] clean_config 
    149  
    150151EOF 
    151152            exit 0       ;; 
     
    259260else 
    260261 
     262   ## Reuse a working cfg   
    261263   if [[ -f ${CONFIG_DIR}/work_cfgs.txt && $( grep "${TML_CONF} " ${CONFIG_DIR}/work_cfgs.txt ) ]]; then 
    262264      conf_file=work_cfgs.txt 
    263265   fi 
    264266 
     267   ## If new cfg exists, work in it 
    265268   [ -z "${NEW_CONF}" ] && NEW_CONF=${TML_CONF} 
    266269 
     
    380383      rm -rf ${NEMO_TDIR}/${NEW_CONF}/AGRIFLIB 
    381384      rm -rf ${NEMO_TDIR}/${NEW_CONF}/BLD 
     385      rm -f  ${NEMO_TDIR}/${NEW_CONF}/EXP00/nemo 
    382386      rm -rf ${NEMO_TDIR}/${NEW_CONF}/LONG 
    383387      rm -rf ${NEMO_TDIR}/${NEW_CONF}/NEMOFILES 
     
    385389      rm -rf ${NEMO_TDIR}/${NEW_CONF}/SHORT 
    386390      rm -rf ${NEMO_TDIR}/${NEW_CONF}/WORK 
    387       rm -rf ${NEMO_TDIR}/${NEW_CONF}/EXP00/nemo 
    388       rm -f ${COMPIL_DIR}/*history ${COMPIL_DIR}/*fcm ${COMPIL_DIR}/*txt 
     391      rm -f  ${COMPIL_DIR}/*history ${COMPIL_DIR}/*fcm ${COMPIL_DIR}/*txt 
    389392      echo "cleaning ${NEW_CONF} AGRIFLIB, BLD, LONG, NEMOFILES, REPRO_*, SHORT, WORK" 
    390393   fi 
Note: See TracChangeset for help on using the changeset viewer.