Changeset 80 for trunk


Ignore:
Timestamp:
04/26/10 14:09:00 (14 years ago)
Author:
pinsard
Message:

improve environnement definition

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/adm/makefile

    r79 r80  
    249249spellcheck \ 
    250250all \ 
     251man \ 
    251252man_troff \ 
    252253man_html \ 
     
    328329all : \ 
    329330man \ 
    330 browse 
     331html_src_browser 
    331332 
    332333man : \ 
     
    335336man_pdf \ 
    336337 
    337 browse : \ 
     338html_src_browser : \ 
    338339html_src_browser_doxygen 
    339340 
     
    399400 
    400401$(DIRTMP)/index_many.rst : 
    401         @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ 
     402        @echo "$(PRODUCTNAME) manuals" | tr [:print:] = > $@ 
    402403        @echo "$(PRODUCTNAME) manuals" >> $@ 
    403404        @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ 
    404405        @echo " " >> $@ 
    405406        @echo "Shell scripts" >> $@ 
    406         @echo "=============" >> $@ 
     407        @echo "Shell scripts" | tr [:print:] = >> $@ 
    407408        @for file in $(LIST_SRCSH); \ 
    408409        do echo " "; \ 
     
    413414        @echo " " >> $@ 
    414415        @echo "MATLAB scripts" >> $@ 
    415         @echo "==============" >> $@ 
     416        @echo "MATLAB scripts" | tr [:print:] = >> $@ 
    416417        @for file in $(LIST_SRCMATLAB); \ 
    417418        do echo " "; \ 
     
    422423        @echo " " >> $@ 
    423424        @echo "Fortran Sources" >> $@ 
    424         @echo "===============" >> $@ 
     425        @echo "Fortran Sources" | tr [:print:] = >> $@ 
    425426        @for file in $(LIST_SRCFORTRAN); \ 
    426427        do echo " "; \ 
     
    432433 
    433434$(DIRTMP)/sphinx_tmpdir/index.rst : 
    434         @echo ".. _index:" >> $@ 
     435        @echo ".. _index:" > $@ 
    435436        @echo " " >> $@ 
    436437        @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ 
  • trunk/adm/sphinx/conf.py

    r76 r80  
    3232 
    3333# The encoding of source files. 
    34 #source_encoding = 'utf-8' 
     34source_encoding = 'iso-8859-15' 
    3535 
    3636# The master toctree document. 
  • trunk/src/ircaam_profile.sh

    r77 r80  
    8484# $Id$ 
    8585# 
     86# - fplod 20100426T094821Z aedon.locean-ipsl.upmc.fr (Darwin) 
     87# 
     88#   * improve PATH and MANPATH modification 
     89# 
     90# - fplod 20100423T143244Z aedon.locean-ipsl.upmc.fr (Darwin) 
     91# 
     92#   * add error handling on mkdir 
     93# 
    8694# - fplod 2009-02-17T11:59:35Z aedon.locean-ipsl.upmc.fr (Darwin) 
    8795# 
    88 * more unset statements 
     96 * more unset statements 
    8997# 
    9098# - fplod 2009-02-04T13:35:30Z zeus.locean-ipsl.upmc.fr (Linux) 
    9199# 
    92 * ${IRCAAM}/../bin/ is added to PATH. 
     100 * ${IRCAAM}/../bin/ is added to PATH. 
    93101# 
    94102# - fplod 2008-08-14T12:28:16Z aedon.locean-ipsl.upmc.fr (Darwin) 
    95103# 
    96 * move all \*.sh and \*.pro files to src/ 
     104 * move all \*.sh and \*.pro files to src/ 
    97105# 
    98106# - fplod 2008-07-21T10:58:47Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    124132do 
    125133   case ${1} in 
    126       -d) # directory for application choosen by user (see svn checkout command used) 
     134      -d) 
     135         # directory for application choosen by user (see svn checkout command used) 
    127136         directory=${2} 
    128137         shift 
    129138      ;; 
    130       -i) # directory for inputs choosen by user 
     139      -i) 
     140         # directory for inputs choosen by user 
    131141         indir=${2} 
    132142         shift 
    133143      ;; 
    134       -o) # directory for outputs choosen by user 
     144      -o) 
     145         # directory for outputs choosen by user 
    135146         outdir=${2} 
    136147         shift 
    137148      ;; 
    138       -t) # directory for temporary outputs choosen by user 
     149      -t) 
     150         # directory for temporary outputs choosen by user 
    139151         tempdir=${2} 
    140152         shift 
    141153      ;; 
    142       *) # other choice 
     154      *) 
     155         # other choice 
    143156         echo "eee : unknown option ${1}" 
    144157         echo "${usage}" 
     
    146159      ;; 
    147160   esac 
    148    shift # next flag 
     161   # next flag 
     162   shift 
    149163done 
    150164unset usage 
     
    172186# add IRCAAM tools to PATH 
    173187# if not already done 
    174 echo ${PATH} | grep -q ${IRCAAM} 
     188suppath=$(echo ${IRCAAM} | tr -s "/") 
     189echo ${PATH} | grep -q "${suppath}:" 
    175190test_path=${?} 
    176191if [ ${test_path} -ne 0 ] 
    177192then 
    178    PATH=${IRCAAM}/:${PATH} 
     193   PATH=${suppath}:${PATH} 
    179194   export PATH 
    180195else 
    181196   # option bavarde oui/non pas encore implantée ++ 
    182    echo "${command} : iii : ${IRCAAM}/ already in \${PATH}" 
     197   echo "${command} : iii : ${suppath} already in \${PATH}" 
    183198fi 
    184199unset test_path 
     200unset suppath 
    185201# 
    186202# add ${IRCAAM}/../bin tools to PATH 
    187203# if not already done 
    188 echo ${PATH} | grep -q "${IRCAAM}/../bin" 
     204suppath=$(echo ${IRCAAM}/../bin | tr -s "/") 
     205echo ${PATH} | grep -q "${suppath}:" 
    189206test_path=${?} 
    190207if [ ${test_path} -ne 0 ] 
    191208then 
    192    PATH=${IRCAAM}/../bin/:${PATH} 
     209   PATH=${suppath}:${PATH} 
    193210   export PATH 
    194211else 
    195212   # option bavarde oui/non pas encore implantée ++ 
    196    echo "${command} : iii : ${IRCAAM}/../bin/ already in \${PATH}" 
     213   echo "${command} : iii : ${suppath} already in \${PATH}" 
    197214fi 
    198215unset test_path 
     216unset suppath  
    199217# 
    200218# add IRCAAM manuals to MANPATH 
    201219# if not already done 
    202 echo ${MANPATH} | grep -q ${IRCAAM} 
     220suppath=$(echo ${IRCAAM}/doc/manuals/man | tr -s "/") 
     221echo ${MANPATH} | grep -q ${suppath} 
    203222test_manpath=${?} 
    204223if [ ${test_manpath} -ne 0 ] 
    205224then 
    206    MANPATH=${IRCAAM}/doc/manuals/man/:${MANPATH} 
     225   MANPATH=${suppath}:${MANPATH} 
    207226   export MANPATH 
    208227else 
    209228   # option bavarde oui/non pas encore implantée ++ 
    210    echo "${command} : iii : ${IRCAAM}/doc/manuals/man/ already in \${MANPATH}" 
     229   echo "${command} : iii : ${suppath} already in \${MANPATH}" 
    211230fi 
    212231unset test_manpath 
     232unset suppath 
    213233# 
    214234IRCAAM_LOG=${tempdir} 
     
    217237if [ ! -d ${IRCAAM_LOG} ] 
    218238then 
    219   mkdir -p ${IRCAAM_LOG} 
    220   echo "${command} : iii : creation of \${IRCAAM_LOG}" 
     239   mkdir -p ${IRCAAM_LOG} 
     240   status=${?} 
     241   if [ ${status} -ne 0 ] 
     242   then 
     243      echo "${command} : eee : can not create \${IRCAAM_LOG}" 
     244      # nb : no exit because this file should be launched by login process 
     245   else 
     246      echo "${command} : iii : creation of \${IRCAAM_LOG}" 
     247   fi 
     248   unset status 
    221249fi 
    222250# check for permission on IRCAAM_LOG 
  • trunk/src/refdataget.sh

    r77 r80  
    1818# =========== 
    1919# 
    20 # Put in ${IRCAAM_ID} all the reference data files  
     20# Put in ${IRCAAM_ID} all the reference data files 
    2121# 
    2222# This includes : 
    2323# 
    24 # - ARPEGE data  
     24# - ARPEGE data 
    2525#   4 parameters (rlut_d zg_d pr_d) in 5 simulations experiences 
    2626#   (CtIV CtCl AfNQIVIV AsNQIVIV TrNQIVIV) between 1971 and 2000. 
    2727# 
    28 #   You will need password from authorized people to access to ARPEGE  
     28#   You will need password from authorized people to access to ARPEGE 
    2929#   simulation files. 
    3030# 
     
    3939# ======== 
    4040# 
    41 # If you are working on LOCEAN machine and you don't have any reference data,  
     41# If you are working on LOCEAN machine and you don't have any reference data, 
    4242# you just have to run this tool :: 
    4343# 
    4444#  $ refdataget.sh 
    45 #  
     45# 
    4646# And look at log file with :: 
    4747# 
    4848#  $ tlogd.sh refdataget 
    49 #  
     49# 
    5050# and of course on files in ${IRCAAM_ID}. 
    5151# 
     
    150150# ARPEGE 
    151151list_param="rlut_d zg_d pr_d" 
    152 list_simu="CtIV CtCl AfNQIVIV AsNQIVIV TrNQIVIV"  
     152list_simu="CtIV CtCl AfNQIVIV AsNQIVIV TrNQIVIV" 
    153153year_min=1971 
    154154year_max=2000 
Note: See TracChangeset for help on using the changeset viewer.