- Timestamp:
- 2015-11-26T16:55:09+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/install_new_branch.sh
r5799 r5929 6 6 ## Set defaults 7 7 ##--------------------------------------------------- 8 TRUS_DIRE=$PWD9 8 TRUS_DBUG=0; TRUS_PROD=0; TRUS_HELP=0 10 9 … … 16 15 '-d'|'--debug' ) TRUS_DBUG=1 ; shift ;; '-j'|'--job' ) TRUS_NPRO=$2; shift 2;; 17 16 '-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 ;; 20 18 esac 21 19 done … … 25 23 ##--------------------------------------------------- 26 24 if [[ ! -e config/${TRUS_USER}.cfg || ! -e config/${TRUS_HPCC}.cfg || ${TRUS_HELP} -eq 1 ]]; then 27 cat trusting_help.txt25 cat ./inc/trusting_help.txt 28 26 29 27 if [ ${TRUS_HELP} -eq 0 ]; then … … 39 37 exit 1 40 38 else 41 . trusting.env39 . ./inc/trusting.env 42 40 [ ${TRUS_DBUG} -eq 1 ] && set -vx 43 41 fi … … 53 51 54 52 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" 56 54 read answer 57 55 [[ $answer == 'Y' || $answer == 'y' || $answer == 'yes' ]] && break … … 72 70 73 71 for elmt in ${TRUS_CKOT}; do 72 [ $elmt == '\' ] && continue 74 73 printf "%s " $elmt 75 74 … … 90 89 if [ $( find ARCH -name arch-${TRUS_HPCC}.fcm ) ]; then 91 90 echo 'Compile NEMO rebuild tool' 92 cd TOOLS && ./maketools -n REBUILD_NEMO -m ${TRUS_HPCC} -j ${TRUS_NPRO} > /dev/null93 [ $? -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" 94 93 printf "\n\n" 95 94 else
Note: See TracChangeset
for help on using the changeset viewer.