Changeset 2143 for branches/DEV_r1879_FCM/NEMOGCM/CONFIG/makenemo
- Timestamp:
- 2010-10-04T14:49:55+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DEV_r1879_FCM/NEMOGCM/CONFIG/makenemo
- Property svn:keywords set to Id
r2136 r2143 72 72 # 73 73 # 74 # - rblod 2010-06-20T16:11:47Z75 74 # 76 75 # * creation … … 98 97 x_m=""; 99 98 x_t=""; 99 x_c=""; 100 100 x_j=1; 101 while getopts :h ld:n:r:m:j:t: V101 while getopts :hd:n:r:m:j:t: V 102 102 do 103 103 case $V in 104 104 (h) echo "Usage : "${b_n} \ 105 " [-h] [- l] [-n name] [-m arch] [-d "dir1 dir2"] [-r conf] [-j No]";105 " [-h] [-n name] [-m arch] [-d "dir1 dir2"] [-r conf] [-j No]"; 106 106 echo " -h : help"; 107 echo " -l : list existing configurations"; 108 echo " -n name : config name"; 109 echo " -m arch : choose machine"; 107 echo " -n name : config name, [-n help] to list existing configurations"; 108 echo " -m arch : choose compiler, [-m help] to list exiting compilers"; 110 109 echo " -d dir : choose NEMO sub-directories"; 111 110 echo " -r conf : choose reference configuration"; … … 117 116 echo "makenemo -n MY_CONFIG -d \"OPA_SRC LIM_SRC_2\""; 118 117 echo ""; 119 echo "Defaults : "; 118 echo "Available configurations :"; cat ${COMPIL_DIR}/cfg.txt; 120 119 echo ""; 120 . ${COMPIL_DIR}/Flist_archfile.sh ; 121 echo ""; 122 echo "Default : previous configuration and compiler"; 121 123 exit 0;; 122 124 (d) x_d=${OPTARG};; … … 126 128 (j) x_j=${OPTARG};; 127 129 (t) x_t=${OPTARG};; 128 (l) echo "Available configurations :"; cat ${COMPIL_DIR}/cfg.txt; exit;;129 130 (:) echo ${b_n}" : -"${OPTARG}" option : missing value" 1>&2; 130 131 exit 2;; … … 134 135 done 135 136 shift $(($OPTIND-1)); 137 138 #- 139 #- Get the clean option 140 [[ "${#@}" -ne 0 && "${@}" != clean ]] && echo "Invalid option "$@" " && exit 141 [ "${#@}" -ne 0 ] && x_c="--$@" 136 142 137 143 #- … … 148 154 NEMO_TDIR=${x_t:-$NEMO_TDIR} 149 155 export NEMO_TDIR=${NEMO_TDIR:-$CONFIG_DIR} 156 157 #- Check if the tool or the compiler exist or list it 158 if [ "${NEW_CONF}" == help ] ; then 159 echo "Available configurations :" 160 cat ${COMPIL_DIR}/cfg.txt 161 exit 162 fi 163 [ "${CMP_NAM}" == help ] && . ${COMPIL_DIR}/Flist_archfile.sh && exit 150 164 151 165 #- When used for the first time, choose a compiler --- … … 212 226 213 227 #if AGRIF we do a first preprocessing 228 if [ ${#x_c} -eq 0 ]; then 214 229 [ "$AGRIFUSE" == 1 ] && fcm build --ignore-lock -s 2 ${COMPIL_DIR}/bld.cfg 215 230 [ "$AGRIFUSE" == 1 ] && rm -rf ${NEMO_TDIR}/${NEW_CONF}/BLD/* 216 fcm build --ignore-lock -v 1 -j ${NBR_PRC} ${COMPIL_DIR}/bld.cfg || cd - 231 fi 232 fcm build ${x_c} --ignore-lock -v 1 -j ${NBR_PRC} ${COMPIL_DIR}/bld.cfg || cd - 217 233 [ -f ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/nemo.exe ] && ln -sf ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/nemo.exe ${CONFIG_DIR}/${NEW_CONF}/EXP00/opa 218 234 [ -f ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/server.exe ] && ln -sf ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/server.exe ${CONFIG_DIR}/${NEW_CONF}/EXP00/server.exe
Note: See TracChangeset
for help on using the changeset viewer.