Ignore:
Timestamp:
Apr 30, 2013, 8:34:06 AM (12 years ago)
Author:
Ehouarn Millour
Message:

Add better handling of fcm path from makelmdz_fcm script to build_gcm script; and some translation of output messages to English.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing/makelmdz_fcm

    r1707 r1752  
    158158
    159159###############################################################
    160 # mettre le chemin du fcm dans le path
     160# path to fcm
    161161###############################################################
    162 export PATH=${fcm_path}:${PATH}
    163 
    164 echo "Chemin du fcm utlise :"
    165 which fcm
     162# handle case when provided path to fcm was given as a relative
     163# path (from makelmdz_fcm script directory) and not an absolute path
     164if [[ ${fcm_path:0:1} != "/" ]] ; then
     165  # prepend with makelmdz_fcm location
     166  fcm_path=$(cd $(dirname $0) ; pwd)"/"${fcm_path}
     167fi
     168
     169echo "Path to fcm:"
     170echo ${fcm_path}
    166171
    167172###############################################################
     
    291296  echo  vous pouvez continuer en repondant oui.
    292297  echo "Voulez-vous vraiment continuer?"
     298  echo ""
     299  echo "WARNING: you are probably already compiling the model somewhere else."
     300  echo "Wait until the first compilation is finished before launching this one."
     301  echo "If you are sure that you are not compiling elsewhere, just answer "
     302  echo "yes (or 'oui') to the question below to proceed."
     303  echo "Do you wish to continue?"
    293304  read reponse
    294   if [[ $reponse == "oui" ]]
     305  if [[ $reponse == "oui" || $reponse == "yes" ]]
    295306  then
    296307    \rm -f $LIBFGCM/grid/dimensions.h
     
    433444
    434445rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock
    435 ./build_gcm
     446./build_gcm ${fcm_path}
    436447
    437448rm -rf tmp_src
Note: See TracChangeset for help on using the changeset viewer.