Changeset 45


Ignore:
Timestamp:
04/26/10 14:08:30 (14 years ago)
Author:
pinsard
Message:

improve environnement definition

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/adm/extract_rst.sh

    r44 r45  
    33# 
    44# ========== 
    5 # extract.sh  
     5# extract.sh 
    66# ========== 
    77# 
     
    2626# Comment block (start, end) identification depends on language : 
    2727# 
    28 #  *F90*  
     28#  *F90* 
    2929#   FORTRAN source free form 
    3030#  *fortran* 
     
    4949# 
    5050# :: 
    51 #  
     51# 
    5252#   $ extract_rst.sh -i extract_rst.sh -l sh -o extract_rst.sh.rst 
    5353#   iii : rst lines of extract_rst.sh are in extract_rst.sh.rst 
     
    7676# 
    7777# Becaue of poor implementation of Standard FORTRAN in cpp (prepocessing) 
    78 # within gfortran and g95, ReST comments might induce trouble in  
     78# within gfortran and g95, ReST comments might induce trouble in 
    7979# FORTRAN sources. 
    8080# 
     
    8383# This is because ``/*`` is the beginning of a C style comment !! 
    8484# :: 
    85 #     
     85# 
    8686#      !    **MEAN** = sum( *X*\ (:) )/*ntime* 
    8787# 
     
    9393# 
    9494#      !    **MEAN** = sum( *X*\ (:) ) / *ntime* 
    95 #  
     95# 
    9696# 
    9797# 
     
    113113# 
    114114# Docutils_ 
    115 #  
     115# 
    116116# .. _Docutils: http://docutils.sourceforge.net/ 
    117117# 
     
    121121# 
    122122# /usr/home/fplod/incas/ncstat/ncstat_ws/adm/extract_rst.sh sur aedon.locean-ipsl.upmc.fr 
    123 #  
     123# 
    124124# EVOLUTIONS 
    125125# ========== 
    126126# 
    127127# - fplod 2009-04-20T08:13:37Z aedon.locean-ipsl.upmc.fr (Darwin) 
    128 #    
     128# 
    129129#   * add CAUTIONS paragraph to warn about possible FORTRAN compiling problem 
    130130# 
     
    134134#   * usage of tr instead of sed to remove ``\r`` 
    135135#     due to difference between ``/sw/bin/sed`` and ``/usr/bin/sed`` (the last 
    136 #     one do not work coorectly on ``\r`` interpertation ie: remove the first occurence of  
     136#     one do not work coorectly on ``\r`` interpertation ie: remove the first occurence of 
    137137#     ``r``) 
    138138# 
     
    143143# - fplod 2009-01-05T11:41:33Z aedon.locean-ipsl.upmc.fr (Darwin) 
    144144# 
    145 #   * remove \\r (CRLF) from file before awk and sed (otherwise ReST block  
     145#   * remove \\r (CRLF) from file before awk and sed (otherwise ReST block 
    146146#     was not found in "ISO-8859 text, with CRLF line terminators" files 
    147147# 
     
    164164# 
    165165# - fplod 200807 
    166 #  
     166# 
    167167#   * creation 
    168168# 
     
    212212         shift 
    213213      ;; 
    214       -h)  
     214      -h) 
     215         echo "${usage}" 
     216         exit 0 
     217      ;; 
     218      *) 
     219         echo "eee : unknown option ${1}" 
    215220         echo "${usage}" 
    216221         exit 1 
    217222      ;; 
    218       *) 
    219         echo "eee : unknown option ${1}" 
    220         echo "${usage}" 
    221         exit 1 
    222       ;; 
    223223   esac 
    224    shift # next flag 
     224   # next flag 
     225   shift 
    225226done 
    226227# 
  • trunk/adm/makefile

    r43 r45  
    115115spellcheck \ 
    116116all \ 
     117man \ 
    117118man_troff \ 
    118119man_html \ 
     
    242243 
    243244$(DIRTMP)/index.rst : 
    244         @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ 
     245        @echo "$(PRODUCTNAME) manuals" | tr [:print:] = > $@ 
    245246        @echo "$(PRODUCTNAME) manuals" >> $@ 
    246247        @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ 
    247248        @echo " " >> $@ 
    248249        @echo "Shell scripts" >> $@ 
    249         @echo "=============" >> $@ 
     250        @echo "Shell scripts" | tr [:print:] = >> $@ 
    250251        @for file in $(LIST_SRCSH); do echo " ";echo "$$(basename $${file})_"; echo " "; echo ".. _$$(basename $${file}) : $$(basename $${file}).html"; done >> $@ 
    251252 
     
    253254 
    254255$(DIRTMP)/sphinx_tmpdir/index.rst : 
    255         @echo ".. _index:" >> $@ 
     256        @echo ".. _index:" > $@ 
    256257        @echo " " >> $@ 
    257258        @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ 
  • trunk/adm/sphinx/conf.py

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

    r44 r45  
    44# 
    55# ======================= 
    6 # detectbarotropicmode.sh  
     6# detectbarotropicmode.sh 
    77# ======================= 
    88# 
     
    9494         shift 
    9595      ;; 
    96       *) # other choice 
     96      *) 
     97         # other choice 
    9798         echo "eee : unknown option ${1}" 
    9899         echo "${usage}" 
    99100      ;; 
    100101   esac 
    101    shift # next flag 
     102   # next flag 
     103   shift 
    102104done 
    103105# 
  • trunk/geomag_profile.sh

    r44 r45  
    6565# $Id$ 
    6666# 
     67# - fplod 20100426T094821Z aedon.locean-ipsl.upmc.fr (Darwin) 
     68# 
     69#   * improve PATH and MANPATH modification 
     70# 
     71# - fplod 20100423T143134Z aedon.locean-ipsl.upmc.fr (Darwin) 
     72# 
     73#   * add error handling on mkdir 
     74# 
    6775# - fplod 20100318T073619Z aedon.locean-ipsl.upmc.fr (Darwin) 
    6876# 
     
    97105do 
    98106   case ${1} in 
    99       -d) # directory for application choosen by user (see svn checkout command used) 
     107      -d) 
     108         # directory for application choosen by user (see svn checkout command used) 
    100109         directory=${2} 
    101110         shift 
    102111      ;; 
    103       -i) # directory for inputs choosen by user 
     112      -i) 
     113         # directory for inputs choosen by user 
    104114         indir=${2} 
    105115         shift 
    106116      ;; 
    107       -o) # directory for outputs choosen by user 
     117      -o) 
     118         # directory for outputs choosen by user 
    108119         outdir=${2} 
    109120         shift 
    110121      ;; 
    111       -t) # directory for temporary outputs choosen by user 
     122      -t) 
     123         # directory for temporary outputs choosen by user 
    112124         tempdir=${2} 
    113125         shift 
    114126      ;; 
    115       *) # other choice 
     127      *) 
     128         # other choice 
    116129         echo "eee : unknown option ${1}" 
    117130         echo "${usage}" 
     
    119132      ;; 
    120133   esac 
    121    shift # next flag 
     134   # next flag 
     135   shift 
    122136done 
    123137unset usage 
     
    157171# add GEOMAG tools to PATH 
    158172# if not already done 
    159 echo ${PATH} | grep -q ${GEOMAG} 
     173suppath=$(echo ${GEOMAG} | tr -s "/") 
     174echo ${PATH} | grep -q "${suppath}:" 
    160175test_path=${?} 
    161176if [ ${test_path} -ne 0 ] 
    162177then 
    163    PATH=${GEOMAG}/:${PATH} 
     178   PATH=${suppath}:${PATH} 
    164179   export PATH 
    165180else 
    166181   # option bavarde oui/non pas encore implantée ++ 
    167    echo "${command} : iii : ${GEOMAG}/ already in \${PATH}" 
     182   echo "${command} : iii : ${suppath}/ already in \${PATH}" 
    168183fi 
    169184unset test_path 
     185unset suppath 
    170186# 
    171187# add GEOMAG manuals to MANPATH 
    172188# if not already done 
    173 echo ${MANPATH} | grep -q ${GEOMAG} 
     189suppath=$(echo ${GEOMAG}/doc/manuals/man/ | tr -s "/") 
     190echo ${MANPATH} | grep -q "${suppath}:" 
    174191test_manpath=${?} 
    175192if [ ${test_manpath} -ne 0 ] 
    176193then 
    177    MANPATH=${GEOMAG}/doc/manuals/man/:${MANPATH} 
     194   MANPATH=${suppath}:${MANPATH} 
    178195   export MANPATH 
    179196else 
    180197   # option bavarde oui/non pas encore implantée ++ 
    181    echo "${command} : iii : ${GEOMAG}/doc/manuals/man/ already in \${MANPATH}" 
     198   echo "${command} : iii : ${suppath} already in \${MANPATH}" 
    182199fi 
    183200unset test_manpath 
     201unset suppath 
    184202# 
    185203GEOMAG_LOG=${tempdir} 
     
    189207then 
    190208   mkdir -p ${GEOMAG_LOG} 
    191    echo "${command} : iii : creation of \${GEOMAG_LOG}" 
     209   status=${?} 
     210   if [ ${status} -ne 0 ] 
     211   then 
     212      echo "${command} : eee : can not create \${GEOMAG_LOG}" 
     213      # nb : no exit because this file should be launched by login process 
     214   else 
     215      echo "${command} : iii : creation of \${GEOMAG_LOG}" 
     216   fi 
     217   unset status 
    192218fi 
    193219# check for permission on GEOMAG_LOG 
  • trunk/getmodelout.sh

    r44 r45  
    7474         shift 
    7575      ;; 
    76       *) # other choice 
     76      *) 
     77         # other choice 
    7778         echo "eee : unknown option ${1}" 
    7879         echo "${usage}" 
    7980      ;; 
    8081   esac 
    81    shift # next flag 
     82   # next flag 
     83   shift 
    8284done 
    8385unset usage 
     
    101103case ${orcares} in 
    102104   ORCA025) 
    103       dirref=/u/rech/cli/rcli002/ # sur l'idris 
     105      # sur l'idris 
     106      dirref=/u/rech/cli/rcli002/ 
    104107   ;; 
    105108   *) 
  • trunk/step2_diff.sh

    r44 r45  
    5858do 
    5959   case ${1} in 
    60       -y) # year 
     60      -y) 
    6161         year=${2} 
    6262         shift 
    6363      ;; 
    64       *) # other choice 
     64      *) 
     65         # other choice 
    6566         echo "eee : unknown option ${1}" 
    6667         echo "${usage}" 
     
    6869      ;; 
    6970   esac 
    70    shift # next flag 
     71   # next flag 
     72   shift 
    7173done 
    7274unset usage 
Note: See TracChangeset for help on using the changeset viewer.