Changeset 45
- Timestamp:
- 04/26/10 14:08:30 (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/adm/extract_rst.sh
r44 r45 3 3 # 4 4 # ========== 5 # extract.sh 5 # extract.sh 6 6 # ========== 7 7 # … … 26 26 # Comment block (start, end) identification depends on language : 27 27 # 28 # *F90* 28 # *F90* 29 29 # FORTRAN source free form 30 30 # *fortran* … … 49 49 # 50 50 # :: 51 # 51 # 52 52 # $ extract_rst.sh -i extract_rst.sh -l sh -o extract_rst.sh.rst 53 53 # iii : rst lines of extract_rst.sh are in extract_rst.sh.rst … … 76 76 # 77 77 # 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 79 79 # FORTRAN sources. 80 80 # … … 83 83 # This is because ``/*`` is the beginning of a C style comment !! 84 84 # :: 85 # 85 # 86 86 # ! **MEAN** = sum( *X*\ (:) )/*ntime* 87 87 # … … 93 93 # 94 94 # ! **MEAN** = sum( *X*\ (:) ) / *ntime* 95 # 95 # 96 96 # 97 97 # … … 113 113 # 114 114 # Docutils_ 115 # 115 # 116 116 # .. _Docutils: http://docutils.sourceforge.net/ 117 117 # … … 121 121 # 122 122 # /usr/home/fplod/incas/ncstat/ncstat_ws/adm/extract_rst.sh sur aedon.locean-ipsl.upmc.fr 123 # 123 # 124 124 # EVOLUTIONS 125 125 # ========== 126 126 # 127 127 # - fplod 2009-04-20T08:13:37Z aedon.locean-ipsl.upmc.fr (Darwin) 128 # 128 # 129 129 # * add CAUTIONS paragraph to warn about possible FORTRAN compiling problem 130 130 # … … 134 134 # * usage of tr instead of sed to remove ``\r`` 135 135 # 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 137 137 # ``r``) 138 138 # … … 143 143 # - fplod 2009-01-05T11:41:33Z aedon.locean-ipsl.upmc.fr (Darwin) 144 144 # 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 146 146 # was not found in "ISO-8859 text, with CRLF line terminators" files 147 147 # … … 164 164 # 165 165 # - fplod 200807 166 # 166 # 167 167 # * creation 168 168 # … … 212 212 shift 213 213 ;; 214 -h) 214 -h) 215 echo "${usage}" 216 exit 0 217 ;; 218 *) 219 echo "eee : unknown option ${1}" 215 220 echo "${usage}" 216 221 exit 1 217 222 ;; 218 *)219 echo "eee : unknown option ${1}"220 echo "${usage}"221 exit 1222 ;;223 223 esac 224 shift # next flag 224 # next flag 225 shift 225 226 done 226 227 # -
trunk/adm/makefile
r43 r45 115 115 spellcheck \ 116 116 all \ 117 man \ 117 118 man_troff \ 118 119 man_html \ … … 242 243 243 244 $(DIRTMP)/index.rst : 244 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = > >$@245 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = > $@ 245 246 @echo "$(PRODUCTNAME) manuals" >> $@ 246 247 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ 247 248 @echo " " >> $@ 248 249 @echo "Shell scripts" >> $@ 249 @echo " =============">> $@250 @echo "Shell scripts" | tr [:print:] = >> $@ 250 251 @for file in $(LIST_SRCSH); do echo " ";echo "$$(basename $${file})_"; echo " "; echo ".. _$$(basename $${file}) : $$(basename $${file}).html"; done >> $@ 251 252 … … 253 254 254 255 $(DIRTMP)/sphinx_tmpdir/index.rst : 255 @echo ".. _index:" > >$@256 @echo ".. _index:" > $@ 256 257 @echo " " >> $@ 257 258 @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@ -
trunk/adm/sphinx/conf.py
r43 r45 32 32 33 33 # The encoding of source files. 34 #source_encoding = 'utf-8'34 source_encoding = 'iso-8859-15' 35 35 36 36 # The master toctree document. -
trunk/detectbarotropicmode.sh
r44 r45 4 4 # 5 5 # ======================= 6 # detectbarotropicmode.sh 6 # detectbarotropicmode.sh 7 7 # ======================= 8 8 # … … 94 94 shift 95 95 ;; 96 *) # other choice 96 *) 97 # other choice 97 98 echo "eee : unknown option ${1}" 98 99 echo "${usage}" 99 100 ;; 100 101 esac 101 shift # next flag 102 # next flag 103 shift 102 104 done 103 105 # -
trunk/geomag_profile.sh
r44 r45 65 65 # $Id$ 66 66 # 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 # 67 75 # - fplod 20100318T073619Z aedon.locean-ipsl.upmc.fr (Darwin) 68 76 # … … 97 105 do 98 106 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) 100 109 directory=${2} 101 110 shift 102 111 ;; 103 -i) # directory for inputs choosen by user 112 -i) 113 # directory for inputs choosen by user 104 114 indir=${2} 105 115 shift 106 116 ;; 107 -o) # directory for outputs choosen by user 117 -o) 118 # directory for outputs choosen by user 108 119 outdir=${2} 109 120 shift 110 121 ;; 111 -t) # directory for temporary outputs choosen by user 122 -t) 123 # directory for temporary outputs choosen by user 112 124 tempdir=${2} 113 125 shift 114 126 ;; 115 *) # other choice 127 *) 128 # other choice 116 129 echo "eee : unknown option ${1}" 117 130 echo "${usage}" … … 119 132 ;; 120 133 esac 121 shift # next flag 134 # next flag 135 shift 122 136 done 123 137 unset usage … … 157 171 # add GEOMAG tools to PATH 158 172 # if not already done 159 echo ${PATH} | grep -q ${GEOMAG} 173 suppath=$(echo ${GEOMAG} | tr -s "/") 174 echo ${PATH} | grep -q "${suppath}:" 160 175 test_path=${?} 161 176 if [ ${test_path} -ne 0 ] 162 177 then 163 PATH=${ GEOMAG}/:${PATH}178 PATH=${suppath}:${PATH} 164 179 export PATH 165 180 else 166 181 # option bavarde oui/non pas encore implantée ++ 167 echo "${command} : iii : ${ GEOMAG}/ already in \${PATH}"182 echo "${command} : iii : ${suppath}/ already in \${PATH}" 168 183 fi 169 184 unset test_path 185 unset suppath 170 186 # 171 187 # add GEOMAG manuals to MANPATH 172 188 # if not already done 173 echo ${MANPATH} | grep -q ${GEOMAG} 189 suppath=$(echo ${GEOMAG}/doc/manuals/man/ | tr -s "/") 190 echo ${MANPATH} | grep -q "${suppath}:" 174 191 test_manpath=${?} 175 192 if [ ${test_manpath} -ne 0 ] 176 193 then 177 MANPATH=${ GEOMAG}/doc/manuals/man/:${MANPATH}194 MANPATH=${suppath}:${MANPATH} 178 195 export MANPATH 179 196 else 180 197 # 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}" 182 199 fi 183 200 unset test_manpath 201 unset suppath 184 202 # 185 203 GEOMAG_LOG=${tempdir} … … 189 207 then 190 208 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 192 218 fi 193 219 # check for permission on GEOMAG_LOG -
trunk/getmodelout.sh
r44 r45 74 74 shift 75 75 ;; 76 *) # other choice 76 *) 77 # other choice 77 78 echo "eee : unknown option ${1}" 78 79 echo "${usage}" 79 80 ;; 80 81 esac 81 shift # next flag 82 # next flag 83 shift 82 84 done 83 85 unset usage … … 101 103 case ${orcares} in 102 104 ORCA025) 103 dirref=/u/rech/cli/rcli002/ # sur l'idris 105 # sur l'idris 106 dirref=/u/rech/cli/rcli002/ 104 107 ;; 105 108 *) -
trunk/step2_diff.sh
r44 r45 58 58 do 59 59 case ${1} in 60 -y) # year60 -y) 61 61 year=${2} 62 62 shift 63 63 ;; 64 *) # other choice 64 *) 65 # other choice 65 66 echo "eee : unknown option ${1}" 66 67 echo "${usage}" … … 68 69 ;; 69 70 esac 70 shift # next flag 71 # next flag 72 shift 71 73 done 72 74 unset usage
Note: See TracChangeset
for help on using the changeset viewer.