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 5929 for branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/install_new_branch.sh – NEMO

Ignore:
Timestamp:
2015-11-26T16:55:09+01:00 (8 years ago)
Author:
nicolasmartin
Message:

dev_r5092_CNRS18_TRUST Last commits before merging to trunk

File:
1 edited

Legend:

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

    r5799 r5929  
    66## Set defaults 
    77##--------------------------------------------------- 
    8 TRUS_DIRE=$PWD 
    98TRUS_DBUG=0; TRUS_PROD=0; TRUS_HELP=0 
    109 
     
    1615   '-d'|'--debug'  ) TRUS_DBUG=1 ; shift  ;; '-j'|'--job'     ) TRUS_NPRO=$2; shift 2;; 
    1716   '-m'|'--machine') TRUS_HPCC=$2; shift 2;; '-h'|'--help'    ) TRUS_HELP=1 ; shift  ;; 
    18    '-u'|'--user'   ) TRUS_USER=$2; shift 2;; '-w'|'--workdir') TRUS_WORK=$2; shift 2;; 
    19    "*"             ) TRUS_HELP=1 ; shift  ;; 
     17   '-u'|'--user'   ) TRUS_USER=$2; shift 2;; "*"             ) TRUS_HELP=1 ; shift  ;; 
    2018    esac 
    2119done 
     
    2523##--------------------------------------------------- 
    2624if [[ ! -e config/${TRUS_USER}.cfg || ! -e config/${TRUS_HPCC}.cfg || ${TRUS_HELP} -eq 1 ]]; then 
    27     cat trusting_help.txt 
     25    cat ./inc/trusting_help.txt 
    2826 
    2927    if [ ${TRUS_HELP} -eq 0 ]; then 
     
    3937    exit 1 
    4038else 
    41     . trusting.env 
     39    . ./inc/trusting.env 
    4240    [ ${TRUS_DBUG} -eq 1 ] && set -vx 
    4341fi 
     
    5351 
    5452    printf "\nInstallation of a working copy of '%s' branch in '%s'? " ${TRUS_BRAN} ${TRUS_WORK} 
    55     echo 'Type [Y|y|yes] to confirm, if not back to branches list number' 
     53    printf "\nType [Y|y|yes] to confirm, if not back to branches list number\n" 
    5654    read answer 
    5755    [[ $answer == 'Y' || $answer == 'y' || $answer == 'yes' ]] && break 
     
    7270 
    7371for elmt in ${TRUS_CKOT}; do 
     72    [ $elmt == '\' ] && continue 
    7473    printf "%s " $elmt 
    7574 
     
    9089if [ $( find ARCH -name arch-${TRUS_HPCC}.fcm ) ]; then 
    9190    echo 'Compile NEMO rebuild tool' 
    92     cd TOOLS && ./maketools -n REBUILD_NEMO -m ${TRUS_HPCC} -j ${TRUS_NPRO} > /dev/null 
    93     [ $? -eq 0 ] && printf "\033[0;32mOK\033[0m" || printf "\033[0;31mKO\033[0m" 
     91    cd TOOLS && ./maketools -n REBUILD_NEMO -m ${TRUS_HPCC} -j ${TRUS_NPRO} >& /dev/null 
     92    [ -e REBUILD_NEMO/rebuild_nemo.exe ] && printf "\033[0;32mOK\033[0m" || printf "\033[0;31mKO\033[0m" 
    9493    printf "\n\n" 
    9594else 
Note: See TracChangeset for help on using the changeset viewer.