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 8883 for branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/inc/env.sh – NEMO

Ignore:
Timestamp:
2017-12-01T18:51:27+01:00 (6 years ago)
Author:
nicolasmartin
Message:

Continuation of global refactoring of Trusting tool: modification of options list to maintain consistency with makenemo
After getting a code snippet on https://stackoverflow.com/questions/402377/using-getopts-in-bash-shell-script-to-get-long-and-short-command-line-options in order to handle short '-[a-z]' and long '[a-z]*=' options, I have modified the main trusting script to split betwwen:

  • Short options reserved shared options with makenemo ( -[hjmnr])
  • Long pattern for trusting specified options
File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/inc/env.sh

    r8859 r8883  
    7070## Source user & (super)computer configurations 
    7171##-------------------------------------------------------------------------------- 
    72 . ./cfg/${TRUST_MAIN_USER}.cfg 
     72. ./cfg/${TRUST_MAIN_SETUP}.cfg 
    7373. ./cfg/${TRUST_MAIN_HPCC}.cfg 
    7474 
     
    193193##-------------- 
    194194 
    195 export TRUST_TEST_NAME=${TRUST_MAIN_USER}'_'${TRUST_MAIN_HPCC} 
     195export TRUST_TEST_NAME=${TRUST_MAIN_SETUP}'_'${TRUST_MAIN_HPCC} 
    196196export TRUST_TEST_DATE=$( date -u +"%Y%m%d%Z%H%M" ) 
    197197 
Note: See TracChangeset for help on using the changeset viewer.