Changeset 430


Ignore:
Timestamp:
04/15/10 15:13:55 (14 years ago)
Author:
pinsard
Message:

indent shell scripts

Location:
trunk/SRC
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/xmldoc/docompileall.sh

    r420 r430  
    102102system=$(uname) 
    103103case "${system}" in 
    104  AIX|IRIX64) 
    105  echo " www : no specific posix checking" 
    106  ;; 
    107  *) 
    108  set -o posix 
    109  ;; 
     104   AIX|IRIX64) 
     105      echo " www : no specific posix checking" 
     106   ;; 
     107   *) 
     108      set -o posix 
     109   ;; 
    110110esac 
    111111command=$(basename ${0}) 
     
    119119if [ ${#} -lt ${minargcount} ] 
    120120then 
    121  echo "eee : not enought arguments (${#} vs ${minargcount})" 
    122  echo "${usage}" 
    123  exit 1 
     121  echo "eee : not enought arguments (${#} vs ${minargcount})" 
     122  echo "${usage}" 
     123  exit 1 
    124124fi 
    125125# 
     
    134134while [ ! -z "${1}" ] 
    135135do 
    136  case ${1} in 
    137  -i) 
    138  indir=${2} 
    139  shift 
    140  ;; 
    141  -idl_dir) 
    142  idl_dir=${2} 
    143  shift 
    144  ;; 
    145  -h) 
    146  echo "${usage}" 
    147  exit 0 
    148  ;; 
    149  *) # other choice 
    150  echo "${usage}" 
    151  exit 1 
    152  ;; 
    153  esac 
    154  shift # next flag 
     136   case ${1} in 
     137      -i) 
     138         indir=${2} 
     139         shift 
     140      ;; 
     141      -idl_dir) 
     142         idl_dir=${2} 
     143         shift 
     144      ;; 
     145      -h) 
     146         echo "${usage}" 
     147         exit 0 
     148      ;; 
     149      *) # other choice 
     150        echo "${usage}" 
     151        exit 1 
     152      ;; 
     153   esac 
     154   shift # next flag 
    155155done 
    156156# 
     
    160160if [ ! -d ${indir} ] 
    161161then 
    162  echo "eee : ${indir} not found" 
    163  exit 1 
     162   echo "eee : ${indir} not found" 
     163   exit 1 
    164164fi 
    165165# 
     
    178178if [ "${indir}" != "${SAXO_DIR}/SRC/" ] 
    179179then 
    180  cat <<EOF >> /tmp/docompileall${$}.pro 
     180   cat <<EOF >> /tmp/docompileall${$}.pro 
    181181!path = expand_path('+' + '${indir}') + ':' + !path 
    182182EOF 
     
    208208if [ "${list_files}" = "" ] 
    209209then 
    210  echo "eee : no . pro files found under ${indir}" 
    211  exit 1 
     210   echo "eee : no . pro files found under ${indir}" 
     211   exit 1 
    212212fi 
    213213#  
     
    216216for i in ${list_files} 
    217217do 
    218  # does it contains pro or function ? 
    219  egrep -iq '^ * *(pro|function)' ${i} 
    220  if [ ${?} -eq 0 ] 
    221  then 
    222   echo "print, '$( basename ${i} .pro ) :'" >> /tmp/docompileall${$}.pro 
    223   echo "resolve_all, resolve_either = '$( basename ${i} .pro )', skip_routines = ['xxx2ps','trends', 'label_gmt', 'report']" >> /tmp/docompileall${$}.pro 
    224  fi 
     218   # does it contains pro or function ? 
     219   egrep -iq '^ *       *(pro|function)' ${i} 
     220   if [ ${?} -eq 0 ] 
     221   then 
     222      echo "print, '$( basename ${i} .pro ) :'" >> /tmp/docompileall${$}.pro 
     223      echo "resolve_all, resolve_either = '$( basename ${i} .pro )', skip_routines = ['xxx2ps','trends', 'label_gmt', 'report']" >> /tmp/docompileall${$}.pro 
     224   fi 
    225225done 
    226226echo "exit" >> /tmp/docompileall${$}.pro 
     
    233233if [ ${?} -ne 0 ] 
    234234then 
    235  echo "all files are OK" 
    236  # clean 
    237  rm -f /tmp/docompileallerr_${$} /tmp/docompileall${$}.pro 
     235   echo "all files are OK" 
     236   # clean 
     237   rm -f /tmp/docompileallerr_${$} /tmp/docompileall${$}.pro 
    238238else 
    239  grep "Compilation error(s)" /tmp/docompileallerr_${$} 
    240  echo "eee : see /tmp/docompileallerr_${$}" 
    241  more /tmp/docompileallerr_${$} 
    242  exit 1 
    243 fi 
    244  
     239   grep "Compilation error(s)" /tmp/docompileallerr_${$} 
     240   echo "eee : see /tmp/docompileallerr_${$}" 
     241   more /tmp/docompileallerr_${$} 
     242   exit 1 
     243fi 
    245244# end 
    246245exit 0 
  • trunk/SRC/Documentation/xmldoc/doidldoc.sh

    r420 r430  
    194194system=$(uname) 
    195195case "${system}" in 
    196 AIX|IRIX64) 
    197  echo " www : no specific posix checking" 
    198 ;; 
    199 *) 
    200  set -o posix 
    201 ;; 
     196   AIX|IRIX64) 
     197      echo " www : no specific posix checking" 
     198   ;; 
     199   *) 
     200      set -o posix 
     201   ;; 
    202202esac 
    203203# 
     
    224224if [ ${#} -lt ${minargcount} ] 
    225225then 
    226  echo "eee : not enought arguments" 
    227  echo "${usage}" 
    228  exit 1 
     226   echo "eee : not enought arguments" 
     227   echo "${usage}" 
     228   exit 1 
    229229fi 
    230230# 
    231231while [ ! -z "${1}" ] # ++ pb bash 
    232232do 
    233  case ${1} in 
    234  -i) 
    235  indir=${2} 
    236  shift 
    237  case ${indir} in 
    238  .) 
    239   indir=$(pwd) 
    240   ;; 
    241  esac 
    242  ;; 
    243  -t) 
    244  title=${2} 
    245  shift 
    246  ;; 
    247  -o) 
    248  outdir=${2} 
    249  shift 
    250  ;; 
    251  -idldoc_dir) 
    252  idldoc_dir=${2} 
    253  shift 
    254  ;; 
    255  -idldoc_version) 
    256  idldoc_version=${2} 
    257  shift 
    258  ;; 
    259  -idl_dir) 
    260  idl_dir=${2} 
    261  shift 
    262  ;; 
    263  -e) 
    264  element[${ielement}]=${2} 
    265  shift 
    266  ;; 
    267  -r) 
    268  refhtml[${ielement}]=${2} 
    269  shift 
    270  ielement=$(( ${ielement} + 1)) 
    271  ;; 
    272  -h) 
    273  echo "${usage}" 
    274  exit 0 
    275  ;; 
    276  *) # other choice 
    277  echo "${usage}" 
    278  exit 1 
    279  ;; 
    280  esac 
    281  shift # next flag 
     233   case ${1} in 
     234      -i) 
     235         indir=${2} 
     236         shift 
     237         case ${indir} in 
     238            .) 
     239               indir=$(pwd) 
     240            ;; 
     241         esac 
     242      ;; 
     243      -t) 
     244         title=${2} 
     245         shift 
     246      ;; 
     247      -o) 
     248         outdir=${2} 
     249         shift 
     250      ;; 
     251      -idldoc_dir) 
     252         idldoc_dir=${2} 
     253         shift 
     254      ;; 
     255      -idldoc_version) 
     256         idldoc_version=${2} 
     257         shift 
     258      ;; 
     259      -idl_dir) 
     260         idl_dir=${2} 
     261         shift 
     262      ;; 
     263      -e) 
     264         element[${ielement}]=${2} 
     265         shift 
     266      ;; 
     267      -r) 
     268         refhtml[${ielement}]=${2} 
     269         shift 
     270         ielement=$(( ${ielement} + 1)) 
     271      ;; 
     272      -h) 
     273         echo "${usage}" 
     274         exit 0 
     275      ;; 
     276      *) # other choice 
     277         echo "${usage}" 
     278         exit 1 
     279      ;; 
     280   esac 
     281   shift # next flag 
    282282done 
    283283# 
     
    287287if [ ! -d ${outdir} ] 
    288288then 
    289  echo "eee : outdir (${outdir}) not found" 
    290  exit 1 
     289   echo "eee : outdir (${outdir}) not found" 
     290   exit 1 
    291291fi 
    292292# check for permission access on outdir 
    293293if [ ! -x ${outdir} ] 
    294294then 
    295  echo " eee : ${outdir} not reachable" 
    296  exit 1 
    297  fi 
     295   echo " eee : ${outdir} not reachable" 
     296   exit 1 
     297fi 
    298298# 
    299299# check for write permission on outdir 
    300300if [ ! -w ${outdir} ] 
    301301then 
    302  echo " eee : ${outdir} not writable" 
    303  exit 1 
     302   echo " eee : ${outdir} not writable" 
     303   exit 1 
    304304fi 
    305305# 
     
    314314cd ${idldoc_dir} 
    315315case ${idldoc_version} in 
    316  3.1.1) 
    317  cat << EOF > ${pro} 
     316   3.1.1) 
     317      cat << EOF > ${pro} 
    318318!path = expand_path('+' + '${idldoc_dir}') 
    319319idldoc,root="${indir}",title="${title}", $ 
     
    324324exit 
    325325EOF 
    326  ;; 
    327  2.0) 
    328  cat << EOF > ${pro} 
     326   ;; 
     327   2.0) 
     328      cat << EOF > ${pro} 
    329329!path = expand_path('+' + '${idldoc_dir}') 
    330330idldoc,root="${indir}",title="${title}", $ 
     
    334334exit 
    335335EOF 
    336  ;; 
    337  *) 
    338   echo "eee : idldoc version not implemented ${idldoc_version}" 
    339   exit 1 
    340  ;; 
     336   ;; 
     337   *) 
     338      echo "eee : idldoc version not implemented ${idldoc_version}" 
     339      exit 1 
     340   ;; 
    341341esac 
    342342# 
     
    348348if [ ${transform} -eq 1 ] 
    349349then 
    350 # In order to do not have to many revision in svn, we modify some 
    351 # lines produced by idldoc : 
    352 # - add Source link in each html file corresponding to a .pro file 
    353 # example : 
    354 # <td>Source</td> 
    355 # will be replaced by 
    356 # <td><a href="../../Calendar/caldat.pro" title="Source code of a file">Source</a></td> 
    357 # 
    358 # - remove version, date and time of idldoc production 
    359 # ++ je ne sais pas dire en sed la ligne suivant l'occurence de Modification date 
    360 # 
    361 # count of directory levels in output 
    362 # this count will be use to format relative path later 
    363 nblev1=$(echo ${outputtmp} | sed -e "s@/\$@@" |awk -F "/" '{print NF}') 
    364 # 
    365 list_html_pro=$(find ${outputtmp} -name "*.html" -exec grep -l "<title>.*\.pro" {} \;) 
    366 for file_html in ${list_html_pro} 
    367 do 
    368  # build the .pro file name 
    369  bfile=$(basename ${file_html} .html) 
    370  # retrieve the path of html file relative to output.  
    371  # This path will be used in "Source" link. 
    372  nblev2=$(dirname ${file_html} | sed -e "s@/\$@@" | awk -F "/" '{print NF}') 
    373  difflev=$((${nblev2} - ${nblev1})) 
    374  if [ ${difflev} -ge 2 ] 
    375  then 
    376  ilev=1 
    377  reloutput_html=".." 
    378  while [ ${ilev} -le ${difflev} ] 
    379  do 
    380  reloutput_html="${reloutput_html}/.." 
    381  ilev=$(( ${ilev} + 1 )) 
    382  done 
    383  relpath_html=$(dirname ${file_html} | \ 
    384  sed \ 
    385  -e "s@${outputtmp}@${reloutput_html}@" \ 
    386  -e "s@\$@/@") 
    387  # echo "relpath ${relpath_html})" 
    388  else 
    389  relpath_html="./" 
    390  fi 
    391  # echo "relpath ${relpath_html}/${bfile}" 
    392  sed \ 
    393  -e "s@<td >Source<\/td>@<td><a href=\"${relpath_html}/${bfile}.pro\" title=\"Source code of a file\">Source<\/a><\/td>@" \ 
    394  ${file_html} > ${file_html}_modify 
    395  mv ${file_html}_modify ${file_html} 
    396 done 
    397 list_html=$(find ${outputtmp} -name "*.html") 
    398 for file_html in ${list_html} 
    399 do 
    400  sed \ 
    401  -e "s/\(Generated by IDLdoc\)\( .* on .*\)\( -->\)/\1\3/" \ 
    402  -e "s/\(Produced by IDLdoc\)\( .* on .*\)\(<\/div>\)/\1\3/" \ 
    403  -e "/<h2>Produced on/d" \ 
    404  -e "/Modifcation:/d" \ 
    405  -e "/<td>... ... .* ..:..:.. ....<\/td>/d" \ 
    406  -e 's@<div class="value">@<div class="preformat">@' \ 
    407  -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 
    408  -e 's@^ <fixe>@<pre>@' \ 
    409  -e 's@^ </fixe>@</pre>@' \ 
    410  -e 's@xhtml-transitional@xhtml1-transitional@' \ 
    411  ${file_html} > ${file_html}_modify 
    412  mv ${file_html}_modify ${file_html} 
    413 done 
    414 # suppress ".html" in idldoc-index*.html in lines like 
    415 # a parameter from the routine ./ReadWrite/idl-NetCDF/ncdf_read.html 
    416 list_html=$(find ${outputtmp} -name "idldoc-index*.html") 
    417 for file_html in ${list_html} 
    418 do 
    419  sed \ 
    420  -e "s/\(a parameter from the routine \)\(.*\)\(.html\)/\1\2/" \ 
    421  ${file_html} > ${file_html}_modify 
    422  mv ${file_html}_modify ${file_html} 
    423 done 
    424 nelement=${#element[@]} 
    425 ielement=1 
    426 while [ ${ielement} -le ${nelement} ] 
    427 do  
    428  # replace <element>ginette</element> by a sequence like 
    429  # <a href="./ginette.html">ginette</a> 
    430  ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} \ 
    431   -r ${refhtml[${ielement}]} \ 
    432   -e ${element[${ielement}]}  
    433  status=${?} 
    434  if [ ${status} -ne 0 ] 
    435  then 
    436   echo "eee : pb during pro2href.sh for ${element}...</${element}>" 
    437   exit 1 
    438  fi 
    439  ielement=$(( ${ielement} + 1)) 
    440 done 
     350   # In order to do not have to many revision in svn, we modify some 
     351   # lines produced by idldoc : 
     352   # - add Source link in each html file corresponding to a .pro file 
     353   # example : 
     354   # <td>Source</td> 
     355   # will be replaced by 
     356   # <td><a href="../../Calendar/caldat.pro" title="Source code of a file">Source</a></td> 
     357   # 
     358   # - remove version, date and time of idldoc production 
     359   # ++ je ne sais pas dire en sed la ligne suivant l'occurence de Modification date 
     360   # 
     361   # count of directory levels in output 
     362   # this count will be use to format relative path later 
     363   nblev1=$(echo ${outputtmp} | sed -e "s@/\$@@" |awk -F "/" '{print NF}') 
     364   # 
     365   list_html_pro=$(find ${outputtmp} -name "*.html" -exec grep -l "<title>.*\.pro" {} \;) 
     366   for file_html in ${list_html_pro} 
     367   do 
     368      # build the .pro file name 
     369      bfile=$(basename ${file_html} .html) 
     370      # retrieve the path of html file relative to output.  
     371      # This path will be used in "Source" link. 
     372      nblev2=$(dirname ${file_html} | sed -e "s@/\$@@" | awk -F "/" '{print NF}') 
     373      difflev=$((${nblev2} - ${nblev1})) 
     374      if [ ${difflev} -ge 2 ] 
     375      then 
     376         ilev=1 
     377         reloutput_html=".." 
     378         while [ ${ilev} -le ${difflev} ] 
     379         do 
     380            reloutput_html="${reloutput_html}/.." 
     381            ilev=$(( ${ilev} + 1 )) 
     382         done 
     383         relpath_html=$(dirname ${file_html} | \ 
     384            sed \ 
     385               -e "s@${outputtmp}@${reloutput_html}@" \ 
     386               -e "s@\$@/@") 
     387         # echo "relpath ${relpath_html})" 
     388      else 
     389         relpath_html="./" 
     390      fi 
     391      # echo "relpath ${relpath_html}/${bfile}" 
     392      sed \ 
     393         -e "s@<td >Source<\/td>@<td><a href=\"${relpath_html}/${bfile}.pro\" title=\"Source code of a file\">Source<\/a><\/td>@" \ 
     394         ${file_html} > ${file_html}_modify 
     395      mv ${file_html}_modify ${file_html} 
     396   done 
     397   list_html=$(find ${outputtmp} -name "*.html") 
     398   for file_html in ${list_html} 
     399   do 
     400      sed \ 
     401         -e "s/\(Generated by IDLdoc\)\( .* on .*\)\( -->\)/\1\3/" \ 
     402         -e "s/\(Produced by IDLdoc\)\( .* on .*\)\(<\/div>\)/\1\3/" \ 
     403         -e "/<h2>Produced on/d" \ 
     404         -e "/Modifcation:/d" \ 
     405         -e "/<td>... ... .* ..:..:.. ....<\/td>/d" \ 
     406         -e 's@<div class="value">@<div class="preformat">@' \ 
     407         -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 
     408         -e 's@^ <fixe>@<pre>@' \ 
     409         -e 's@^ </fixe>@</pre>@' \ 
     410         -e 's@xhtml-transitional@xhtml1-transitional@' \ 
     411         ${file_html} > ${file_html}_modify 
     412      mv ${file_html}_modify ${file_html} 
     413   done 
     414   # suppress ".html" in idldoc-index*.html in lines like 
     415   # a parameter from the routine ./ReadWrite/idl-NetCDF/ncdf_read.html 
     416   list_html=$(find ${outputtmp} -name "idldoc-index*.html") 
     417   for file_html in ${list_html} 
     418   do 
     419      sed \ 
     420         -e "s/\(a parameter from the routine \)\(.*\)\(.html\)/\1\2/" \ 
     421         ${file_html} > ${file_html}_modify 
     422      mv ${file_html}_modify ${file_html} 
     423   done 
     424   nelement=${#element[@]} 
     425   ielement=1 
     426   while [ ${ielement} -le ${nelement} ] 
     427   do  
     428      # replace <element>ginette</element> by a sequence like 
     429      # <a href="./ginette.html">ginette</a> 
     430      ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} \ 
     431         -r ${refhtml[${ielement}]} \ 
     432         -e ${element[${ielement}]}  
     433      status=${?} 
     434      if [ ${status} -ne 0 ] 
     435      then 
     436         echo "eee : pb during pro2href.sh for ${element}...</${element}>" 
     437         exit 1 
     438      fi 
     439      ielement=$(( ${ielement} + 1)) 
     440   done 
    441441fi # end of transform = 1 
    442442# 
     
    444444if [ ${assistant} -eq 1 ] 
    445445then 
    446  # build a IDL file to launch idldoc 
    447  idldoc_log="/tmp/idldocassistant_${$}.log" 
    448  pro="/tmp/idldocassistant_${$}.pro" 
    449  case ${idldoc_version} in 
    450  3.1.1) 
    451   echo "iii : assistant is not feasable with idldoc > 2.0" 
    452  ;; 
    453  2.0) 
    454   cat << EOF > ${pro} 
     446   # build a IDL file to launch idldoc 
     447   idldoc_log="/tmp/idldocassistant_${$}.log" 
     448   pro="/tmp/idldocassistant_${$}.pro" 
     449   case ${idldoc_version} in 
     450      3.1.1) 
     451         echo "iii : assistant is not feasable with idldoc > 2.0" 
     452      ;; 
     453      2.0) 
     454         cat << EOF > ${pro} 
    455455!path = expand_path('+' + '${idldoc_dir}') 
    456456idldoc,root="${indir}",title="${title}", $ 
     
    459459exit 
    460460EOF 
    461  ;; 
    462  *) 
    463   echo "eee : idldoc version not implemented ${idldoc_version}" 
    464   exit 1 
    465  ;; 
    466 esac 
    467 # launch IDL with the file built above 
    468 IDL_STARTUP=${pro};${idl_dir}/bin/idl 
    469 /bin/rm ${pro} 
    470 # In order to do not have to many revision in svn, we modify some 
    471 # lines produced by idldoc : 
    472 # examples : 
    473 # <!-- Generated by IDLdoc 2.0 on Wed Jun 7 10:25:28 2006 --> 
    474 # will be replaced by 
    475 # <!-- Generated by IDLdoc 2.0 --> 
    476 # <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0 on Wed Sep 13 16:32:10 2006.</font></p> 
    477 # will be replaced by 
    478 # <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0</font></p> 
    479 # <h2>Produced on Wed Jun 7 10:23:13 2006</h2> 
    480 # will be delete 
    481 # other lines will be deleted because the time is the time of checkout not 
    482 # the time of revision. 
    483 # the sequence of lines 
    484 #<dl> 
    485 # <dt>Last modification:</dt> 
    486 # <dd>Fri Jun 2 11:46:24 2006</dd> 
    487 # </dl> 
    488 # should also be removed ++ je ne sais pas dire en sed la ligne 
    489 # suivant l'occurence de Last modification 
    490 # replace *_param_* in href attributes because anchors are badly written 
    491 # with _keyword_ 
    492 #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global 
    493 # ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path # won't work 
    494 # encaspulate example content in <pre> </pre> in idldoc assistant outputs 
    495 # Examples section is supposed to start with <h3>Examples</h3> 
    496 # and end is before <h3>Version history</h3> 
    497 list_html=$(find ${outputtmp} -name "*.html") 
    498 for file_html in ${list_html} 
    499 do 
    500  sed \ 
    501  -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \ 
    502  -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/font>\)/\1\3/" \ 
    503  -e "/<h2>Produced on/d" \ 
    504  -e "/Last modification:/d" \ 
    505  -e "/<dd>... ... .* ..:..:.. ....<\/dd>/d" \ 
    506  -e '/href/s@_param_@_keyword_@g' \ 
    507  -e 's@<div class="value">@<div class="preformat">@' \ 
    508  -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 
    509  -e 's@^ <fixe>@<pre>@' \ 
    510  -e 's@^ </fixe>@</pre>@' \ 
    511  -e "s@<h3>Examples</h3>@<h3>Examples</h3><pre>@" \ 
    512  -e "s@<h3>Version history</h3>@</pre><h3>Version history</h3>@" \ 
    513  ${file_html} > ${file_html}_modify 
    514  mv ${file_html}_modify ${file_html} 
    515 done 
    516 # 
    517 # replace <pro>ginette</pro> by a sequence like 
    518 # <a href="./ginette.html">ginette</a> 
    519 ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${outputtmp} -e pro 
    520 status=${?} 
    521 if [ ${status} -ne 0 ] 
    522 then 
    523  echo "eee : pb during pro2href.sh for <pro>...</pro>" 
    524  exit 1 
    525 fi 
    526 # replace <proidl>ginette</proidl> by a sequence like 
    527 # <a href="./ginette.html">ginette</a> 
    528 ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${idl_dir}/help/online_help -e proidl 
    529 status=${?} 
    530 if [ ${status} -ne 0 ] 
    531 then 
    532  echo "eee : pb during pro2href.sh for <proidl>...</proidl>" 
    533  exit 1 
    534 fi 
    535 # add the directory-overview.html from dir-files.html in idldoc_html_output 
    536 list_html=$(find ../idldoc_html_output -name dir-files.html) 
    537 for file_html in ${list_html} 
    538 do 
    539  fout=../idldoc_assistant_output/${file_html#../idldoc_html_output/*} 
    540  fout=${fout%/*}/directory-overview.html 
    541  cp ${file_html} ${fout} 
    542 done 
    543 # copy listings.css (needed by directory-overview.html files) 
    544 cp ../idldoc/resource/listings.css ${outputtmp} 
    545 # add an id in idldoc-lib.adp 
    546 cat << EOF > /tmp/adp_modification 
     461      ;; 
     462      *) 
     463         echo "eee : idldoc version not implemented ${idldoc_version}" 
     464         exit 1 
     465      ;; 
     466   esac 
     467   # launch IDL with the file built above 
     468   IDL_STARTUP=${pro};${idl_dir}/bin/idl 
     469   /bin/rm ${pro} 
     470   # In order to do not have to many revision in svn, we modify some 
     471   # lines produced by idldoc : 
     472   # examples : 
     473   # <!-- Generated by IDLdoc 2.0 on Wed Jun 7 10:25:28 2006 --> 
     474   # will be replaced by 
     475   # <!-- Generated by IDLdoc 2.0 --> 
     476   # <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0 on Wed Sep 13 16:32:10 2006.</font></p> 
     477   # will be replaced by 
     478   # <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0</font></p> 
     479   # <h2>Produced on Wed Jun 7 10:23:13 2006</h2> 
     480   # will be delete 
     481   # other lines will be deleted because the time is the time of checkout not 
     482   # the time of revision. 
     483   # the sequence of lines 
     484   #<dl> 
     485   # <dt>Last modification:</dt> 
     486   # <dd>Fri Jun 2 11:46:24 2006</dd> 
     487   # </dl> 
     488   # should also be removed ++ je ne sais pas dire en sed la ligne 
     489   # suivant l'occurence de Last modification 
     490   # replace *_param_* in href attributes because anchors are badly written 
     491   # with _keyword_ 
     492   #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global 
     493   # ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path # won't work 
     494   # encaspulate example content in <pre> </pre> in idldoc assistant outputs 
     495   # Examples section is supposed to start with <h3>Examples</h3> 
     496   # and end is before <h3>Version history</h3> 
     497   list_html=$(find ${outputtmp} -name "*.html") 
     498   for file_html in ${list_html} 
     499   do 
     500      sed \ 
     501         -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \ 
     502         -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/font>\)/\1\3/" \ 
     503         -e "/<h2>Produced on/d" \ 
     504         -e "/Last modification:/d" \ 
     505         -e "/<dd>... ... .* ..:..:.. ....<\/dd>/d" \ 
     506         -e '/href/s@_param_@_keyword_@g' \ 
     507         -e 's@<div class="value">@<div class="preformat">@' \ 
     508         -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 
     509         -e 's@^ <fixe>@<pre>@' \ 
     510         -e 's@^ </fixe>@</pre>@' \ 
     511         -e "s@<h3>Examples</h3>@<h3>Examples</h3><pre>@" \ 
     512         -e "s@<h3>Version history</h3>@</pre><h3>Version history</h3>@" \ 
     513         ${file_html} > ${file_html}_modify 
     514      mv ${file_html}_modify ${file_html} 
     515   done 
     516   # 
     517   # replace <pro>ginette</pro> by a sequence like 
     518   # <a href="./ginette.html">ginette</a> 
     519   ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${outputtmp} -e pro 
     520   status=${?} 
     521   if [ ${status} -ne 0 ] 
     522   then 
     523      echo "eee : pb during pro2href.sh for <pro>...</pro>" 
     524      exit 1 
     525   fi 
     526   # replace <proidl>ginette</proidl> by a sequence like 
     527   # <a href="./ginette.html">ginette</a> 
     528   ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${idl_dir}/help/online_help -e proidl 
     529   status=${?} 
     530   if [ ${status} -ne 0 ] 
     531   then 
     532      echo "eee : pb during pro2href.sh for <proidl>...</proidl>" 
     533      exit 1 
     534   fi 
     535   # add the directory-overview.html from dir-files.html in idldoc_html_output 
     536   list_html=$(find ../idldoc_html_output -name dir-files.html) 
     537   for file_html in ${list_html} 
     538   do 
     539      fout=../idldoc_assistant_output/${file_html#../idldoc_html_output/*} 
     540      fout=${fout%/*}/directory-overview.html 
     541      cp ${file_html} ${fout} 
     542   done 
     543   # copy listings.css (needed by directory-overview.html files) 
     544   cp ../idldoc/resource/listings.css ${outputtmp} 
     545   # add an id in idldoc-lib.adp 
     546   cat << EOF > /tmp/adp_modification 
    547547<!-- \$Id\$ --> 
    548548EOF 
    549 sed -e "/<\/profile>/r /tmp/adp_modification" \ 
    550  ../idldoc_assistant_output/idldoc-lib.adp > \ 
    551  ../idldoc_assistant_output/idldoc-lib.adp_${$} 
    552 mv ../idldoc_assistant_output/idldoc-lib.adp_${$} \ 
    553 ../idldoc_assistant_output/idldoc-lib.adp 
    554 rm /tmp/adp_modification 
    555 # check that the number of existing html files for each .pro file is 2! 
    556 for i in $( find ../.. -name "*.pro" ) 
    557 do 
    558  nhtml=$( find ../.. -name $( basename ${i} .pro ).html | wc -l ) 
    559  if [ ${nhtml} -ne 2 ] 
    560         then 
    561         echo "ERROR there is no 2 $( basename ${i} .pro ).html files" 
    562         find ../.. -name $( basename ${i} .pro ).html 
    563         echo 
    564  fi 
    565 done 
    566 # 
     549   sed -e "/<\/profile>/r /tmp/adp_modification" \ 
     550      ../idldoc_assistant_output/idldoc-lib.adp > \ 
     551      ../idldoc_assistant_output/idldoc-lib.adp_${$} 
     552   mv ../idldoc_assistant_output/idldoc-lib.adp_${$} \ 
     553   ../idldoc_assistant_output/idldoc-lib.adp 
     554   rm /tmp/adp_modification 
     555   # check that the number of existing html files for each .pro file is 2! 
     556   for i in $( find ../.. -name "*.pro" ) 
     557   do 
     558      nhtml=$( find ../.. -name $( basename ${i} .pro ).html | wc -l ) 
     559      if [ ${nhtml} -ne 2 ] 
     560      then 
     561        echo "ERROR there is no 2 $( basename ${i} .pro ).html files" 
     562        find ../.. -name $( basename ${i} .pro ).html 
     563        echo 
     564      fi 
     565   done 
     566   # 
    567567fi 
    568568# copy of temporary outputs on final directory 
  • trunk/SRC/Documentation/xmldoc/firststeps_pre.sh

    r410 r430  
    2424for i in tst_plt_lev_[0-9][0-9].png 
    2525do 
    26   figsplt_lev="${figsplt_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     26   figsplt_lev="${figsplt_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    2727done 
    2828figspltz_lev="" 
    2929for i in tst_pltz_lev_[0-9][0-9].png 
    3030do 
    31   figspltz_lev="${figspltz_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     31   figspltz_lev="${figspltz_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    3232done 
    3333figspltt_lev="" 
    3434for i in tst_pltt_lev_[0-9][0-9].png 
    3535do 
    36   figspltt_lev="${figspltt_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     36   figspltt_lev="${figspltt_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    3737done 
    3838# 
     
    4040for i in tst_plt_orca2_[0-9][0-9].png 
    4141do 
    42   figsplt_orca2="${figsplt_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     42   figsplt_orca2="${figsplt_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    4343done 
    4444figspltz_orca2="" 
    4545for i in tst_pltz_orca2_[0-9][0-9].png 
    4646do 
    47   figspltz_orca2="${figspltz_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     47   figspltz_orca2="${figspltz_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    4848done 
    4949figspltt_orca2="" 
    5050for i in tst_pltt_orca2_[0-9][0-9].png 
    5151do 
    52   figspltt_orca2="${figspltt_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     52   figspltt_orca2="${figspltt_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    5353done 
    5454# 
     
    5656for i in tst_plt_orca05_[0-9][0-9].png 
    5757do 
    58   figsplt_orca05="${figsplt_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     58   figsplt_orca05="${figsplt_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    5959done 
    6060figspltz_orca05="" 
    6161for i in tst_pltz_orca05_[0-9][0-9].png 
    6262do 
    63   figspltz_orca05="${figspltz_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     63   figspltz_orca05="${figspltz_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    6464done 
    6565figspltt_orca05="" 
    6666for i in tst_pltt_orca05_[0-9][0-9].png 
    6767do 
    68   figspltt_orca05="${figspltt_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     68   figspltt_orca05="${figspltt_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    6969done 
    7070## 
     
    7373for i in tst_plt_lev_stride_[0-9][0-9].png 
    7474do 
    75   figsplt_lev_stride="${figsplt_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     75   figsplt_lev_stride="${figsplt_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    7676done 
    7777figspltz_lev_stride="" 
    7878for i in tst_pltz_lev_stride_[0-9][0-9].png 
    7979do 
    80   figspltz_lev_stride="${figspltz_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     80   figspltz_lev_stride="${figspltz_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    8181done 
    8282figspltt_lev_stride="" 
    8383for i in tst_pltt_lev_stride_[0-9][0-9].png 
    8484do 
    85   figspltt_lev_stride="${figspltt_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     85   figspltt_lev_stride="${figspltt_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    8686done 
    8787# 
     
    8989for i in tst_plt_orca2_stride_[0-9][0-9].png 
    9090do 
    91   figsplt_orca2_stride="${figsplt_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     91   figsplt_orca2_stride="${figsplt_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    9292done 
    9393figspltz_orca2_stride="" 
    9494for i in tst_pltz_orca2_stride_[0-9][0-9].png 
    9595do 
    96   figspltz_orca2_stride="${figspltz_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     96   figspltz_orca2_stride="${figspltz_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    9797done 
    9898figspltt_orca2_stride="" 
    9999for i in tst_pltt_orca2_stride_[0-9][0-9].png 
    100100do 
    101   figspltt_orca2_stride="${figspltt_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     101   figspltt_orca2_stride="${figspltt_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    102102done 
    103103# 
     
    105105for i in tst_plt_orca05_stride_[0-9][0-9].png 
    106106do 
    107   figsplt_orca05_stride="${figsplt_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     107   figsplt_orca05_stride="${figsplt_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    108108done 
    109109figspltz_orca05_stride="" 
    110110for i in tst_pltz_orca05_stride_[0-9][0-9].png 
    111111do 
    112   figspltz_orca05_stride="${figspltz_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     112   figspltz_orca05_stride="${figspltz_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    113113done 
    114114figspltt_orca05_stride="" 
    115115for i in tst_pltt_orca05_stride_[0-9][0-9].png 
    116116do 
    117   figspltt_orca05_stride="${figspltt_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
     117   figspltt_orca05_stride="${figspltt_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 
    118118done 
    119119## 
     
    122122rm firststeps_sed.xml 2> /dev/null 
    123123sed -e s/"\&figsplt_lev\;"/"${figsplt_lev}"/g \ 
    124 -e s/"\&figsplt_orca2\;"/"${figsplt_orca2}"/g \ 
    125 -e s/"\&figsplt_orca05\;"/"${figsplt_orca05}"/g \ 
    126 -e s/"\&figspltz_lev\;"/"${figspltz_lev}"/g \ 
    127 -e s/"\&figspltz_orca2\;"/"${figspltz_orca2}"/g \ 
    128 -e s/"\&figspltz_orca05\;"/"${figspltz_orca05}"/g \ 
    129 -e s/"\&figspltt_lev\;"/"${figspltt_lev}"/g \ 
    130 -e s/"\&figspltt_orca2\;"/"${figspltt_orca2}"/g \ 
    131 -e s/"\&figspltt_orca05\;"/"${figspltt_orca05}"/g \ 
    132 -e s/"\&figsplt_lev_stride\;"/"${figsplt_lev_stride}"/g \ 
    133 -e s/"\&figsplt_orca2_stride\;"/"${figsplt_orca2_stride}"/g \ 
    134 -e s/"\&figsplt_orca05_stride\;"/"${figsplt_orca05_stride}"/g \ 
    135 -e s/"\&figspltz_lev_stride\;"/"${figspltz_lev_stride}"/g \ 
    136 -e s/"\&figspltz_orca2_stride\;"/"${figspltz_orca2_stride}"/g \ 
    137 -e s/"\&figspltz_orca05_stride\;"/"${figspltz_orca05_stride}"/g \ 
    138 -e s/"\&figspltt_lev_stride\;"/"${figspltt_lev_stride}"/g \ 
    139 -e s/"\&figspltt_orca2_stride\;"/"${figspltt_orca2_stride}"/g \ 
    140 -e s/"\&figspltt_orca05_stride\;"/"${figspltt_orca05_stride}"/g \ 
    141 firststeps.xml > firststeps_sed.xml 
     124   -e s/"\&figsplt_orca2\;"/"${figsplt_orca2}"/g \ 
     125   -e s/"\&figsplt_orca05\;"/"${figsplt_orca05}"/g \ 
     126   -e s/"\&figspltz_lev\;"/"${figspltz_lev}"/g \ 
     127   -e s/"\&figspltz_orca2\;"/"${figspltz_orca2}"/g \ 
     128   -e s/"\&figspltz_orca05\;"/"${figspltz_orca05}"/g \ 
     129   -e s/"\&figspltt_lev\;"/"${figspltt_lev}"/g \ 
     130   -e s/"\&figspltt_orca2\;"/"${figspltt_orca2}"/g \ 
     131   -e s/"\&figspltt_orca05\;"/"${figspltt_orca05}"/g \ 
     132   -e s/"\&figsplt_lev_stride\;"/"${figsplt_lev_stride}"/g \ 
     133   -e s/"\&figsplt_orca2_stride\;"/"${figsplt_orca2_stride}"/g \ 
     134   -e s/"\&figsplt_orca05_stride\;"/"${figsplt_orca05_stride}"/g \ 
     135   -e s/"\&figspltz_lev_stride\;"/"${figspltz_lev_stride}"/g \ 
     136   -e s/"\&figspltz_orca2_stride\;"/"${figspltz_orca2_stride}"/g \ 
     137   -e s/"\&figspltz_orca05_stride\;"/"${figspltz_orca05_stride}"/g \ 
     138   -e s/"\&figspltt_lev_stride\;"/"${figspltt_lev_stride}"/g \ 
     139   -e s/"\&figspltt_orca2_stride\;"/"${figspltt_orca2_stride}"/g \ 
     140   -e s/"\&figspltt_orca05_stride\;"/"${figspltt_orca05_stride}"/g \ 
     141   firststeps.xml > firststeps_sed.xml 
    142142# 
    143143# exit 
  • trunk/SRC/Documentation/xmldoc/forxxxdoc.sh

    r258 r430  
    2525# 
    2626case "${1}" in 
    27 0101|0201|mouse) 
    28 # screen capture to be commented by frames and callouts images 
    29 capture="figpng/xxx_${1}_org.png" 
    30 ;; 
    31 *) 
    32   echo "eee : unknown parameter ${1}" 
    33   exit 1 
    34 ;; 
     27   0101|0201|mouse) 
     28      # screen capture to be commented by frames and callouts images 
     29      capture="figpng/xxx_${1}_org.png" 
     30   ;; 
     31   *) 
     32      echo "eee : unknown parameter ${1}" 
     33      exit 1 
     34   ;; 
    3535esac 
    3636# 
    3737if [ ! -f ${capture} ] 
    3838then 
    39   echo " eee : ${capture} not found" 
    40   exit 1 
     39   echo " eee : ${capture} not found" 
     40   exit 1 
    4141fi 
    4242# 
     
    4747# 
    4848case ${capture} in  
    49 figpng/xxx_0101_org.png) 
    50 capture_xsize=520 #++ should be obtain by parsing identify result 
    51 capture_ysize=309 #++ should be obtain by parsing identify result 
    52 # 
    53 # description of frames (title, xmin, ymin, xmax,ymax) 
    54 # nb : title and label are not yet used but they may be added in a kind of  
    55 # comments 
    56 # later in xml as id or label 
    57 # now they are only here to remind us what we do 
    58 zone_nb=3 
    59 zone_t[1]="Data file" 
    60 zone_l[1]="datafile" 
    61 zone_rect[1]="26,53, 485,95" 
    62 zone_t[2]="Init method" 
    63 zone_l[2]="initmethod" 
    64 zone_rect[2]="78,101, 433,152" 
    65 zone_t[3]="Init program" 
    66 zone_l[3]="initprogram" 
    67 zone_rect[3]="3,159, 518,278" 
    68 #zone_t[1]="Data file" 
    69 #zone_l[1]="datafile" 
    70 #zone_rect[1]="5,55 515,90" 
    71 #zone_t[2]="Init file" 
    72 #zone_l[2]="initfile" 
    73 #zone_rect[2]="5,150 515,200" 
    74 ;; 
    75 figpng/xxx_0201_org.png) 
    76 capture_xsize=429 #++ should be obtain by parsing identify result 
    77 capture_ysize=630 #++ should be obtain by parsing identify result 
    78 # 
    79 # description of frames (title, xmin, ymin, xmax,ymax) 
    80 # nb : title and label are not yet used but they may be added in a kind of  
    81 # comments 
    82 # later in xml as id or label 
    83 # now they are only here to remind us what we do 
    84 zone_nb=10 
    85 # 
    86 zone_t[1]="Plot type" 
    87 zone_l[1]="plottype" 
    88 zone_rect[1]="3,24, 97,51" 
    89 zone_t[2]="Menu" 
    90 zone_l[2]="menu" 
    91 zone_rect[2]="108,24, 325,53" 
    92 zone_t[3]="OK" 
    93 zone_l[3]="ok" 
    94 zone_rect[3]="5,59, 44,86" 
    95 zone_t[4]="Page layout" 
    96 zone_l[4]="pagelayout" 
    97 zone_rect[4]="70,59, 193,86" 
    98 zone_t[5]="Variables list" 
    99 zone_l[5]="variableslist" 
    100 zone_rect[5]="209,60, 323,85" 
    101 zone_t[6]="Files list" 
    102 zone_l[6]="fileslist" 
    103 zone_rect[6]="2,95, 344,117" 
    104 zone_t[7]="Command text" 
    105 zone_l[7]="commandtext" 
    106 zone_rect[7]="2,126, 346,160" 
    107 zone_t[8]="Calendar" 
    108 zone_l[8]="calendar" 
    109 zone_rect[8]="2,169, 212,216" 
    110 zone_t[9]="Domdef" 
    111 zone_l[9]="domdef" 
    112 zone_rect[9]="16,227, 308,447" 
    113 zone_t[10]="Specifications" 
    114 zone_l[10]="specifications" 
    115 zone_rect[10]="1,458, 345,580" 
    116 # the next three lines are here to check calcultation of CALSPAIR units 
    117 # see http://www.docbook.org/tdg/en/html/area.html 
    118 # if you want to use it, please add one to zone_nb 
    119 zone_t[11]="just to check full size rectangle" 
    120 zone_l[11]="check" 
    121 zone_rect[11]="0,0 ${capture_xsize},${capture_ysize}" 
    122 ;; 
    123 figpng/xxx_mouse_org.png) 
    124 capture_xsize=57 #++ should be obtain by parsing identify result 
    125 capture_ysize=82 #++ should be obtain by parsing identify result 
    126 # 
    127 # description of frames (title, xmin, ymin, xmax,ymax) 
    128 # nb : title and label are not yet used but they may be added in a kind of  
    129 # comments 
    130 # later in xml as id or label 
    131 # now they are only here to remind us what we do 
    132 zone_nb=3 
    133 zone_t[1]="Left" 
    134 zone_l[1]="left" 
    135 zone_rect[1]="3,14, 11,21" 
    136 zone_t[2]="Middle" 
    137 zone_l[2]="middle" 
    138 zone_rect[2]="21,14, 28,19" 
    139 zone_t[3]="Right" 
    140 zone_l[3]="right" 
    141 zone_rect[3]="39,14, 46,20" 
    142 ;; 
    143 *) 
    144    echo " eee : ${capture} not implemented" 
    145    exit 3 
    146 ;; 
     49   figpng/xxx_0101_org.png) 
     50      capture_xsize=520 #++ should be obtain by parsing identify result 
     51      capture_ysize=309 #++ should be obtain by parsing identify result 
     52      # 
     53      # description of frames (title, xmin, ymin, xmax,ymax) 
     54      # nb : title and label are not yet used but they may be added in a kind of  
     55      # comments 
     56      # later in xml as id or label 
     57      # now they are only here to remind us what we do 
     58      zone_nb=3 
     59      zone_t[1]="Data file" 
     60      zone_l[1]="datafile" 
     61      zone_rect[1]="26,53, 485,95" 
     62      zone_t[2]="Init method" 
     63      zone_l[2]="initmethod" 
     64      zone_rect[2]="78,101, 433,152" 
     65      zone_t[3]="Init program" 
     66      zone_l[3]="initprogram" 
     67      zone_rect[3]="3,159, 518,278" 
     68      #zone_t[1]="Data file" 
     69      #zone_l[1]="datafile" 
     70      #zone_rect[1]="5,55 515,90" 
     71      #zone_t[2]="Init file" 
     72      #zone_l[2]="initfile" 
     73      #zone_rect[2]="5,150 515,200" 
     74   ;; 
     75   figpng/xxx_0201_org.png) 
     76      capture_xsize=429 #++ should be obtain by parsing identify result 
     77      capture_ysize=630 #++ should be obtain by parsing identify result 
     78      # 
     79      # description of frames (title, xmin, ymin, xmax,ymax) 
     80      # nb : title and label are not yet used but they may be added in a kind of  
     81      # comments 
     82      # later in xml as id or label 
     83      # now they are only here to remind us what we do 
     84      zone_nb=10 
     85      # 
     86      zone_t[1]="Plot type" 
     87      zone_l[1]="plottype" 
     88      zone_rect[1]="3,24, 97,51" 
     89      zone_t[2]="Menu" 
     90      zone_l[2]="menu" 
     91      zone_rect[2]="108,24, 325,53" 
     92      zone_t[3]="OK" 
     93      zone_l[3]="ok" 
     94      zone_rect[3]="5,59, 44,86" 
     95      zone_t[4]="Page layout" 
     96      zone_l[4]="pagelayout" 
     97      zone_rect[4]="70,59, 193,86" 
     98      zone_t[5]="Variables list" 
     99      zone_l[5]="variableslist" 
     100      zone_rect[5]="209,60, 323,85" 
     101      zone_t[6]="Files list" 
     102      zone_l[6]="fileslist" 
     103      zone_rect[6]="2,95, 344,117" 
     104      zone_t[7]="Command text" 
     105      zone_l[7]="commandtext" 
     106      zone_rect[7]="2,126, 346,160" 
     107      zone_t[8]="Calendar" 
     108      zone_l[8]="calendar" 
     109      zone_rect[8]="2,169, 212,216" 
     110      zone_t[9]="Domdef" 
     111      zone_l[9]="domdef" 
     112      zone_rect[9]="16,227, 308,447" 
     113      zone_t[10]="Specifications" 
     114      zone_l[10]="specifications" 
     115      zone_rect[10]="1,458, 345,580" 
     116      # the next three lines are here to check calcultation of CALSPAIR units 
     117      # see http://www.docbook.org/tdg/en/html/area.html 
     118      # if you want to use it, please add one to zone_nb 
     119      zone_t[11]="just to check full size rectangle" 
     120      zone_l[11]="check" 
     121      zone_rect[11]="0,0 ${capture_xsize},${capture_ysize}" 
     122   ;; 
     123   figpng/xxx_mouse_org.png) 
     124      capture_xsize=57 #++ should be obtain by parsing identify result 
     125      capture_ysize=82 #++ should be obtain by parsing identify result 
     126      # 
     127      # description of frames (title, xmin, ymin, xmax,ymax) 
     128      # nb : title and label are not yet used but they may be added in a kind of  
     129      # comments 
     130      # later in xml as id or label 
     131      # now they are only here to remind us what we do 
     132      zone_nb=3 
     133      zone_t[1]="Left" 
     134      zone_l[1]="left" 
     135      zone_rect[1]="3,14, 11,21" 
     136      zone_t[2]="Middle" 
     137      zone_l[2]="middle" 
     138      zone_rect[2]="21,14, 28,19" 
     139      zone_t[3]="Right" 
     140      zone_l[3]="right" 
     141      zone_rect[3]="39,14, 46,20" 
     142   ;; 
     143   *) 
     144      echo " eee : ${capture} not implemented" 
     145      exit 3 
     146   ;; 
    147147esac 
    148  
    149  
    150  
    151  
    152148# 
    153149# calculation of % of the rectangle of each zone for Calspair  
     
    181177# rectangles insertion 
    182178cmd="convert -size ${capture_xsize}x${capture_ysize} \ 
    183     ${capture} \ 
    184     -linewidth 2 \ 
    185     -stroke black \ 
    186     -fill transparent" 
     179   ${capture} \ 
     180   -linewidth 2 \ 
     181   -stroke black \ 
     182   -fill transparent" 
    187183# 
    188184# then loop on the frames to be drawed 
  • trunk/SRC/Documentation/xmldoc/getsaxo_pre.sh

    r410 r430  
    2020# 
    2121case $( whoami ) in 
    22     smasson) 
    23         lgforge=smasson 
    24     ;; 
    25     floseb) 
    26         lgforge=smasson 
    27     ;; 
    28     *) 
    29         lgforge=saxo 
    30     ;; 
     22   smasson) 
     23      lgforge=smasson 
     24   ;; 
     25   floseb) 
     26      lgforge=smasson 
     27   ;; 
     28   *) 
     29      lgforge=saxo 
     30   ;; 
    3131esac 
    3232# 
     
    6464# 
    6565sed -e s/"\&date\;"/${ndate}/g \ 
    66     -e s/"\&date2\;"/${ndate2}/g \ 
    67     -e s/"\&szsrc\;"/${szsrc}/g \ 
    68     -e s/"\&szdata\;"/${szdata}/g \ 
    69     -e s/"\&szallsvn\;"/${szallsvn}/g \ 
    70     -e s/"\&szsrcsvn\;"/${szsrcsvn}/g \ 
    71     -e s/"\&szdatasvn\;"/${szdatasvn}/g \ 
    72     getsaxo.xml > getsaxo_sed.xml 
     66   -e s/"\&date2\;"/${ndate2}/g \ 
     67   -e s/"\&szsrc\;"/${szsrc}/g \ 
     68   -e s/"\&szdata\;"/${szdata}/g \ 
     69   -e s/"\&szallsvn\;"/${szallsvn}/g \ 
     70   -e s/"\&szsrcsvn\;"/${szsrcsvn}/g \ 
     71   -e s/"\&szdatasvn\;"/${szdatasvn}/g \ 
     72   getsaxo.xml > getsaxo_sed.xml 
    7373# 
    7474# exit 
  • trunk/SRC/Documentation/xmldoc/pro2href.sh

    r420 r430  
    4848while [ ! -z "${1}" ] 
    4949do 
    50  case ${1} in 
    51  -i) # dirhtml 
    52   dirhtml=${2} 
    53   shift 
    54  ;; 
    55  -r) # refhtml 
    56   refhtml=${2} 
    57   shift 
    58  ;; 
    59  -e) # element 
    60   element=${2} 
    61   shift 
    62  ;; 
    63  -h) 
    64   echo "${usage}" 
    65   exit 0 
    66  ;; 
    67  *) # other choice 
    68   echo "${usage}" 
    69   exit 1 
    70  ;; 
    71  esac 
    72  shift # next flag 
     50   case ${1} in 
     51      -i) # dirhtml 
     52         dirhtml=${2} 
     53         shift 
     54      ;; 
     55      -r) # refhtml 
     56         refhtml=${2} 
     57         shift 
     58      ;; 
     59      -e) # element 
     60         element=${2} 
     61         shift 
     62      ;; 
     63      -h) 
     64         echo "${usage}" 
     65         exit 0 
     66      ;; 
     67      *) # other choice 
     68         echo "${usage}" 
     69         exit 1 
     70      ;; 
     71   esac 
     72   shift # next flag 
    7373done 
    7474# 
     
    108108      #echo "file_html ${file_html}" 
    109109      #read a 
    110        fpath=$(dirname ${file_html} | sed -e "s+\(${dirhtml}/\)\(.*\)+\2+") 
    111 #echo "fpath ${fpath}" 
    112 #read a 
    113        list_link=$(tr -s " " "\n" < ${file_html} | grep "<${element}>.*</${element}>" | sed -e "s/^.*<${element}>//" -e "s/<\/${element}>.*$//") 
    114 #      echo "liste link" ${list_link} 
    115 #      read a 
    116        for link in ${list_link} 
    117        do 
    118           # replace <element>something</element> by 
    119           #<a href="something.html">something</a> 
    120           # modulehtml is the html file name to be used 
    121           modulehtml=${link}.html 
    122           # lpath is the path on module relatively to the location of 
    123           # the html file containing the <element>...</element> 
    124           lpath=$(find ${refhtml} -name "${modulehtml}") 
    125           if [ "${lpath}" = "" ] 
    126           then 
    127              echo "eee : path of ${modulehtml} not found under ${refhtml}" 
    128              echo "eee : ${link} is used in ${file_html}" 
    129           else 
    130              lpath=$(dirname ${lpath} | sed -e "s+\(${refhtml}/\)\(.*\)+\2+") 
    131 #echo "path du fichier html ${fpath}" 
    132 #echo "lpath ${lpath}" 
    133 #read a 
    134              if [ "${lpath}" = "${fpath}" ] 
    135              then 
    136                 path="./" 
    137              fi 
    138              if [ "${lpath:0:1}" = "/" ] # absolute path 
    139              then 
    140                 path=${lpath} 
    141              else 
    142                 nblev=$(echo ${fpath} |  sed -e "s@/\$@@" | awk -F "/" '{print NF}') 
    143                 relpath="" 
    144                 ilev=1 
    145                 while [ ${ilev} -le ${nblev} ] 
    146                 do 
    147                    relpath="${relpath}../" 
    148                    ilev=$(( ${ilev} + 1 )) 
    149                 done 
    150                 path=${relpath}/${lpath} 
    151              fi 
    152 #echo "path ${path}" 
    153 #read a 
    154              cat <<EOF > /tmp/pro2href${$}.sed 
     110      fpath=$(dirname ${file_html} | sed -e "s+\(${dirhtml}/\)\(.*\)+\2+") 
     111      #echo "fpath ${fpath}" 
     112      #read a 
     113      list_link=$(tr -s " " "\n" < ${file_html} | grep "<${element}>.*</${element}>" | sed -e "s/^.*<${element}>//" -e "s/<\/${element}>.*$//") 
     114      # echo "liste link" ${list_link} 
     115      # read a 
     116      for link in ${list_link} 
     117      do 
     118         # replace <element>something</element> by 
     119         #<a href="something.html">something</a> 
     120         # modulehtml is the html file name to be used 
     121         modulehtml=${link}.html 
     122         # lpath is the path on module relatively to the location of 
     123         # the html file containing the <element>...</element> 
     124         lpath=$(find ${refhtml} -name "${modulehtml}") 
     125         if [ "${lpath}" = "" ] 
     126         then 
     127            echo "eee : path of ${modulehtml} not found under ${refhtml}" 
     128            echo "eee : ${link} is used in ${file_html}" 
     129         else 
     130            lpath=$(dirname ${lpath} | sed -e "s+\(${refhtml}/\)\(.*\)+\2+") 
     131            #echo "path du fichier html ${fpath}" 
     132            #echo "lpath ${lpath}" 
     133            #read a 
     134            if [ "${lpath}" = "${fpath}" ] 
     135            then 
     136               path="./" 
     137            fi 
     138            if [ "${lpath:0:1}" = "/" ] # absolute path 
     139            then 
     140               path=${lpath} 
     141            else 
     142               nblev=$(echo ${fpath} |  sed -e "s@/\$@@" | awk -F "/" '{print NF}') 
     143               relpath="" 
     144               ilev=1 
     145               while [ ${ilev} -le ${nblev} ] 
     146               do 
     147                  relpath="${relpath}../" 
     148                  ilev=$(( ${ilev} + 1 )) 
     149               done 
     150               path=${relpath}/${lpath} 
     151            fi 
     152            #echo "path ${path}" 
     153            #read a 
     154            cat <<EOF > /tmp/pro2href${$}.sed 
    1551551{x;s@^@first@;x;} 
    1561561,/<${element}>${link}<\/${element}>/{x;/first/s///;x;s@<${element}>${link}<\/${element}>@<a href="${path}/${link}.html">${link}<\/a>@;} 
    157157EOF 
    158              sed -f /tmp/pro2href${$}.sed \ 
    159              ${file_html} > ${file_html}_modify 
    160 #diff  ${file_html}  ${file_html}_modify 
    161 #read a 
    162              mv ${file_html}_modify ${file_html} 
    163              rm /tmp/pro2href${$}.sed 
    164           fi 
    165        done 
     158            sed -f /tmp/pro2href${$}.sed \ 
     159               ${file_html} > ${file_html}_modify 
     160            #diff  ${file_html}  ${file_html}_modify 
     161            #read a 
     162            mv ${file_html}_modify ${file_html} 
     163            rm /tmp/pro2href${$}.sed 
     164         fi 
     165      done 
    166166   done 
    167167fi 
  • trunk/SRC/Documentation/xmldoc/savesaxo.sh

    r425 r430  
    161161# 
    162162case $( whoami ) in 
    163     smasson) 
    164         lgforge=smasson 
    165     ;; 
    166     floseb) 
    167         lgforge=smasson 
    168     ;; 
    169     *) 
    170         lgforge=saxo 
    171     ;; 
     163   smasson) 
     164      lgforge=smasson 
     165   ;; 
     166   floseb) 
     167      lgforge=smasson 
     168   ;; 
     169   *) 
     170      lgforge=saxo 
     171   ;; 
    172172esac 
    173173# 
    174174if [ ${lgforge} != smasson ] 
    175175then 
    176     doSRClocean=0 
    177     doDTAlocean=0 
    178     doSRCipsl=0 
    179     doDTAipsl=0 
    180     doSRCidris=0 
    181     doDTAidris=0 
     176   doSRClocean=0 
     177   doDTAlocean=0 
     178   doSRCipsl=0 
     179   doDTAipsl=0 
     180   doSRCidris=0 
     181   doDTAidris=0 
    182182fi 
    183183# 
     
    191191#------------------------------------------------------------------ 
    192192if [ ${docompileall} -eq 1 ] 
    193     then 
    194     cat <<EOF > /tmp/compileall${$}.pro 
     193then 
     194   cat <<EOF > /tmp/compileall${$}.pro 
    195195.reset_session 
    196196; 
     
    214214EOF 
    215215# 
    216     for i in $( find ${memopwd}/../.. -name "*.pro" | grep -iv label_gmt  | grep -iv report ) 
    217       do 
    218 # does it contains pro or function ? 
     216   for i in $( find ${memopwd}/../.. -name "*.pro" | grep -iv label_gmt  | grep -iv report ) 
     217   do 
     218      # does it contains pro or function ? 
    219219      egrep -iq '^ *    *(pro|function)' ${i} 
    220220      if [ ${?} -eq 0 ] 
    221           then 
    222           echo "print, '$( basename ${i} .pro ) :'" >> /tmp/compileall${$}.pro 
    223           echo "resolve_all, resolve_either = '$( basename ${i} .pro )', skip_routines = ['xxx2ps','trends', 'label_gmt', 'report']" >> /tmp/compileall${$}.pro 
     221      then 
     222         echo "print, '$( basename ${i} .pro ) :'" >> /tmp/compileall${$}.pro 
     223         echo "resolve_all, resolve_either = '$( basename ${i} .pro )', skip_routines = ['xxx2ps','trends', 'label_gmt', 'report']" >> /tmp/compileall${$}.pro 
    224224      fi 
    225     done 
    226     echo "exit" >> /tmp/compileall${$}.pro 
    227     IDL_STARTUP=/tmp/compileall${$}.pro 
    228     ${idl_dir}/bin/idl &> /tmp/compileallerr_${$} 
    229     echo 
    230     echo 
    231     grep -i "error" /tmp/compileallerr_${$} 
    232 #    grep -q "Compilation error(s)" /tmp/compileallerr_${$} 
    233     if [ ${?} -ne 0 ] 
    234     then 
    235      echo "ALL SAXO files are OK..." 
    236      rm -f /tmp/compileallerr_${$} /tmp/compileall${$}.pro 
    237     else 
    238      grep "Compilation error(s)" /tmp/compileallerr_${$} 
    239      echo "eee : see /tmp/compileallerr_${$}" 
    240      more /tmp/compileallerr_${$} 
    241      exit 1 
    242     fi 
    243     echo 
    244     echo 
     225   done 
     226   echo "exit" >> /tmp/compileall${$}.pro 
     227   IDL_STARTUP=/tmp/compileall${$}.pro 
     228   ${idl_dir}/bin/idl &> /tmp/compileallerr_${$} 
     229   echo 
     230   echo 
     231   grep -i "error" /tmp/compileallerr_${$} 
     232   # grep -q "Compilation error(s)" /tmp/compileallerr_${$} 
     233   if [ ${?} -ne 0 ] 
     234   then 
     235      echo "ALL SAXO files are OK..." 
     236      rm -f /tmp/compileallerr_${$} /tmp/compileall${$}.pro 
     237   else 
     238      grep "Compilation error(s)" /tmp/compileallerr_${$} 
     239      echo "eee : see /tmp/compileallerr_${$}" 
     240      more /tmp/compileallerr_${$} 
     241      exit 1 
     242   fi 
     243   echo 
     244   echo 
    245245fi 
    246246#------------------------------------------------------------------ 
    247247if [ ${dohtml} -eq 1 ] 
    248248then 
    249 # 
    250 # redo the HTML files 
    251 # 
    252     cd ${memopwd} 
    253     make clean 
    254     make html  
     249   # 
     250   # redo the HTML files 
     251   # 
     252   cd ${memopwd} 
     253   make clean 
     254   make html  
    255255fi 
    256256#------------------------------------------------------------------ 
    257257if [ ${dowiki} -eq 1 ] 
    258258then 
    259 # 
    260 # redo the WIKI files 
    261 # 
    262     cd ${memopwd} 
    263     make clean  
    264     make tracwiki 
     259   # 
     260   # redo the WIKI files 
     261   # 
     262   cd ${memopwd} 
     263   make clean  
     264   make tracwiki 
    265265fi 
    266266#------------------------------------------------------------------ 
    267267if [ ${dooldtest} -eq 1 ] 
    268268then 
    269 # make the old test 
    270 # 
    271     cd ${memopwd}/../../Tests/ 
    272     ./makeold.sh 
    273     exit 0 
     269   # make the old test 
     270   # 
     271   cd ${memopwd}/../../Tests/ 
     272   ./makeold.sh 
     273   exit 0 
    274274fi 
    275275#------------------------------------------------------------------ 
    276276if  [ ${doidlwavedoc} -eq 1 ] 
    277277then 
    278 # 
    279 # redo idlwave doc 
    280 # 
    281     cd ${memopwd}/../.. 
    282     Documentation/idlwave_catalog -v -f saxo 
    283     exit 0 
     278   # 
     279   # redo idlwave doc 
     280   # 
     281   cd ${memopwd}/../.. 
     282   Documentation/idlwave_catalog -v -f saxo 
     283   exit 0 
    284284fi 
    285285#------------------------------------------------------------------ 
    286286if  [ ${doidldoc} -eq 1 ] 
    287287then 
    288     # 
    289     # build HTML idldoc outputs 
    290     ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh \ 
    291     -i ../.. -t "SAXO Documentation" \ 
    292     -o ../idldoc_html_output/  
    293     -idl_dir ${idl_dir} 
    294     -e pro -r ../idldoc_html_output/ \ 
    295     -e proidl -r /usr/local_linux/idl/idl_6.4/idl/help/online_help 
    296     doidldoc_html=${?} 
    297     if [ ${doidldoc_html} -ne 0 ] 
    298     then 
    299      echo "eee : pb with doidldoc html" 
    300      exit 1 
    301     fi 
    302     # 
    303     # build a idl file to launch idldoc 
    304     output=../idldoc_assistant_output/ 
    305     log="/tmp/idldocassistant_${$}.log" 
    306     pro="/tmp/idldocassistant_${$}.pro" 
    307     cat <<EOF > ${pro} 
     288   # 
     289   # build HTML idldoc outputs 
     290   ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh \ 
     291      -i ../.. -t "SAXO Documentation" \ 
     292      -o ../idldoc_html_output/  
     293      -idl_dir ${idl_dir} 
     294      -e pro -r ../idldoc_html_output/ \ 
     295      -e proidl -r /usr/local_linux/idl/idl_6.4/idl/help/online_help 
     296   doidldoc_html=${?} 
     297   if [ ${doidldoc_html} -ne 0 ] 
     298   then 
     299      echo "eee : pb with doidldoc html" 
     300      exit 1 
     301   fi 
     302   # 
     303   # build a idl file to launch idldoc 
     304   output=../idldoc_assistant_output/ 
     305   log="/tmp/idldocassistant_${$}.log" 
     306   pro="/tmp/idldocassistant_${$}.pro" 
     307   cat <<EOF > ${pro} 
    308308!path = expand_path('+' + '../idldoc/') 
    309309print,!path 
     
    313313exit 
    314314EOF 
    315     # launch idl with the file built above 
    316     IDL_STARTUP=${pro};${idl_dir}/bin/idl 
    317     /bin/rm ${pro} 
    318     # In order to do not have to many revision in svn, we modify some 
    319     # lines produced by idldoc : 
    320     # examples : 
    321     # <!-- Generated by IDLdoc 2.0 on Wed Jun  7 10:25:28 2006 --> 
    322     # will be replaced by 
    323     # <!-- Generated by IDLdoc 2.0 --> 
    324     # <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0 on Wed Sep 13 16:32:10 2006.</font></p> 
    325     # will be replaced by 
    326     # <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0</font></p> 
    327     # <h2>Produced on Wed Jun  7 10:23:13 2006</h2> 
    328     # will be delete 
    329     # other lines will be deleted because the time is the time of checkout not 
    330     # the time of revision. 
    331     # the sequence of lines 
    332     #<dl> 
    333     #      <dt>Last modification:</dt> 
    334     #       <dd>Fri Jun  2 11:46:24 2006</dd> 
    335     #    </dl> 
    336     # should also be removed ++ je ne sais pas dire en sed la ligne 
    337     # suivant l'occurence de Last modification 
    338     # replace *_param_* in href attributes because anchors are badly written 
    339     # with _keyword_ 
    340     #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global 
    341     #  ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path    # won't work 
    342     # encaspulate example content in <pre> </pre> in idldoc assistant outputs 
    343     # Examples section is supposed to start with <h3>Examples</h3> 
    344     # and end is before <h3>Version history</h3> 
    345     list_html=$(find ${output} -name "*.html") 
    346     for file_html in ${list_html} 
    347     do 
    348      sed \ 
    349      -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \ 
    350      -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/font>\)/\1\3/" \ 
    351      -e "/<h2>Produced on/d" \ 
    352      -e "/Last modification:/d" \ 
    353      -e "/<dd>... ... .* ..:..:.. ....<\/dd>/d" \ 
    354      -e '/href/s@_param_@_keyword_@g' \ 
    355      -e 's@<div class="value">@<div class="preformat">@' \ 
    356      -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 
    357      -e 's@^ <fixe>@<pre>@' \ 
    358      -e 's@^ </fixe>@</pre>@' \ 
    359      -e "s@<h3>Examples</h3>@<h3>Examples</h3><pre>@" \ 
    360      -e "s@<h3>Version history</h3>@</pre><h3>Version history</h3>@" \ 
    361      ${file_html} > ${file_html}_modify 
    362      mv ${file_html}_modify ${file_html} 
    363     done 
    364     # replace <pro>ginette</pro> by a sequence like 
    365     # <a href="./ginette.html">ginette</a> 
    366     ./pro2href.sh -i ${output} -r ${output} -e pro 
    367     status=${?} 
    368     if [ ${status} -ne 0 ] 
    369     then 
    370        echo "eee : pb during ./pro2href.sh for <pro>...</pro>" 
    371        exit 1 
    372     fi 
    373     # replace <proidl>ginette</proidl> by a sequence like 
    374     # <a href="./ginette.html">ginette</a> 
    375     ./pro2href.sh -i ${output} -r ${idl_dir}/help/online_help -e proidl 
    376     status=${?} 
    377     if [ ${status} -ne 0 ] 
    378     then 
    379        echo "eee : pb during ./pro2href.sh for <proidl>...</proidl>" 
    380        exit 1 
    381     fi 
    382     # add the directory-overview.html from dir-files.html in idldoc_html_output 
    383     list_html=$(find ../idldoc_html_output -name dir-files.html) 
    384     for file_html in ${list_html} 
    385     do 
    386       fout=../idldoc_assistant_output/${file_html#../idldoc_html_output/*} 
    387       fout=${fout%/*}/directory-overview.html 
    388       cp ${file_html} ${fout} 
    389     done 
    390     # copy listings.css (needed by directory-overview.html files) 
    391     cp ../idldoc/resource/listings.css ${output} 
    392     # add an id in idldoc-lib.adp 
    393     cat << EOF > /tmp/adp_modification 
     315   # launch idl with the file built above 
     316   IDL_STARTUP=${pro};${idl_dir}/bin/idl 
     317   /bin/rm ${pro} 
     318   # In order to do not have to many revision in svn, we modify some 
     319   # lines produced by idldoc : 
     320   # examples : 
     321   # <!-- Generated by IDLdoc 2.0 on Wed Jun  7 10:25:28 2006 --> 
     322   # will be replaced by 
     323   # <!-- Generated by IDLdoc 2.0 --> 
     324   # <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0 on Wed Sep 13 16:32:10 2006.</font></p> 
     325   # will be replaced by 
     326   # <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0</font></p> 
     327   # <h2>Produced on Wed Jun  7 10:23:13 2006</h2> 
     328   # will be delete 
     329   # other lines will be deleted because the time is the time of checkout not 
     330   # the time of revision. 
     331   # the sequence of lines 
     332   #<dl> 
     333   #      <dt>Last modification:</dt> 
     334   #       <dd>Fri Jun  2 11:46:24 2006</dd> 
     335   #    </dl> 
     336   # should also be removed ++ je ne sais pas dire en sed la ligne 
     337   # suivant l'occurence de Last modification 
     338   # replace *_param_* in href attributes because anchors are badly written 
     339   # with _keyword_ 
     340   #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global 
     341   #  ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path    # won't work 
     342   # encaspulate example content in <pre> </pre> in idldoc assistant outputs 
     343   # Examples section is supposed to start with <h3>Examples</h3> 
     344   # and end is before <h3>Version history</h3> 
     345   list_html=$(find ${output} -name "*.html") 
     346   for file_html in ${list_html} 
     347   do 
     348      sed \ 
     349         -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \ 
     350         -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/font>\)/\1\3/" \ 
     351         -e "/<h2>Produced on/d" \ 
     352         -e "/Last modification:/d" \ 
     353         -e "/<dd>... ... .* ..:..:.. ....<\/dd>/d" \ 
     354         -e '/href/s@_param_@_keyword_@g' \ 
     355         -e 's@<div class="value">@<div class="preformat">@' \ 
     356         -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 
     357         -e 's@^ <fixe>@<pre>@' \ 
     358         -e 's@^ </fixe>@</pre>@' \ 
     359         -e "s@<h3>Examples</h3>@<h3>Examples</h3><pre>@" \ 
     360         -e "s@<h3>Version history</h3>@</pre><h3>Version history</h3>@" \ 
     361         ${file_html} > ${file_html}_modify 
     362      mv ${file_html}_modify ${file_html} 
     363   done 
     364   # replace <pro>ginette</pro> by a sequence like 
     365   # <a href="./ginette.html">ginette</a> 
     366   ./pro2href.sh -i ${output} -r ${output} -e pro 
     367   status=${?} 
     368   if [ ${status} -ne 0 ] 
     369   then 
     370      echo "eee : pb during ./pro2href.sh for <pro>...</pro>" 
     371      exit 1 
     372   fi 
     373   # replace <proidl>ginette</proidl> by a sequence like 
     374   # <a href="./ginette.html">ginette</a> 
     375   ./pro2href.sh -i ${output} -r ${idl_dir}/help/online_help -e proidl 
     376   status=${?} 
     377   if [ ${status} -ne 0 ] 
     378   then 
     379      echo "eee : pb during ./pro2href.sh for <proidl>...</proidl>" 
     380      exit 1 
     381   fi 
     382   # add the directory-overview.html from dir-files.html in idldoc_html_output 
     383   list_html=$(find ../idldoc_html_output -name dir-files.html) 
     384   for file_html in ${list_html} 
     385   do 
     386     fout=../idldoc_assistant_output/${file_html#../idldoc_html_output/*} 
     387     fout=${fout%/*}/directory-overview.html 
     388     cp ${file_html} ${fout} 
     389   done 
     390   # copy listings.css (needed by directory-overview.html files) 
     391   cp ../idldoc/resource/listings.css ${output} 
     392   # add an id in idldoc-lib.adp 
     393   cat << EOF > /tmp/adp_modification 
    394394<!-- \$Id\$ --> 
    395395EOF 
    396     sed -e "/<\/profile>/r /tmp/adp_modification" \ 
    397      ../idldoc_assistant_output/idldoc-lib.adp > \ 
    398      ../idldoc_assistant_output/idldoc-lib.adp_${$} 
    399     mv ../idldoc_assistant_output/idldoc-lib.adp_${$} \ 
    400     ../idldoc_assistant_output/idldoc-lib.adp 
    401     rm /tmp/adp_modification 
    402     echo "iii : you can see log file in ${log}" 
    403     echo "iii : and look ${output}/idldoc-warnings.html#undoc" 
    404     # check that the number of existing html files for each .pro file is 2! 
    405     for i in $( find ../.. -name "*.pro" ) 
    406     do 
    407       nhtml=$( find ../.. -name $( basename ${i} .pro ).html | wc -l ) 
    408       if [ ${nhtml} -ne 2 ] 
    409           then 
    410           echo "ERROR there is no 2 $( basename ${i} .pro ).html files" 
    411           find ../.. -name $( basename ${i} .pro ).html 
    412           echo 
    413       fi 
    414     done 
     396   sed -e "/<\/profile>/r /tmp/adp_modification" \ 
     397    ../idldoc_assistant_output/idldoc-lib.adp > \ 
     398    ../idldoc_assistant_output/idldoc-lib.adp_${$} 
     399   mv ../idldoc_assistant_output/idldoc-lib.adp_${$} \ 
     400   ../idldoc_assistant_output/idldoc-lib.adp 
     401   rm /tmp/adp_modification 
     402   echo "iii : you can see log file in ${log}" 
     403   echo "iii : and look ${output}/idldoc-warnings.html#undoc" 
     404   # check that the number of existing html files for each .pro file is 2! 
     405   for i in $( find ../.. -name "*.pro" ) 
     406   do 
     407     nhtml=$( find ../.. -name $( basename ${i} .pro ).html | wc -l ) 
     408     if [ ${nhtml} -ne 2 ] 
     409     then 
     410        echo "ERROR there is no 2 $( basename ${i} .pro ).html files" 
     411        find ../.. -name $( basename ${i} .pro ).html 
     412        echo 
     413     fi 
     414   done 
    415415fi 
    416416#------------------------------------------------------------------ 
    417417if [ ${doTARsrc} -eq 1 ] 
    418418then 
    419     localtarbase=/tmp/savesaxo_${$} 
    420     mkdir ${localtarbase}/ 
    421 # clean backup files : *~ 
    422     find ${memopwd}/../../.. -name "*~" -exec rm {} \; 
    423 # prepare the source tar (without the svn...) 
    424 # 
    425     cd ${memopwd}/../../.. 
    426     tar czf ${localtarbase}/SAXO_SRC_${ndate}r${rev}.tar.gz --exclude .svn SRC 
    427 # 
    428  informations 
    429     echo "iii : following file may be copied on http://forge.ipsl.jussieu.fr/saxo/download/" 
    430     ls -l ${localtarbase} 
     419   localtarbase=/tmp/savesaxo_${$} 
     420   mkdir ${localtarbase}/ 
     421   # clean backup files : *~ 
     422   find ${memopwd}/../../.. -name "*~" -exec rm {} \; 
     423   # prepare the source tar (without the svn...) 
     424   # 
     425   cd ${memopwd}/../../.. 
     426   tar czf ${localtarbase}/SAXO_SRC_${ndate}r${rev}.tar.gz --exclude .svn SRC 
     427   # 
     428   # informations 
     429   echo "iii : following file may be copied on http://forge.ipsl.jussieu.fr/saxo/download/" 
     430   ls -l ${localtarbase} 
    431431fi 
    432432#------------------------------------------------------------------ 
    433433if [ ${doTARdata} -eq 1 ] 
    434434then 
    435     localtarbase=/tmp/savesaxo_${$} 
    436     mkdir ${localtarbase}/ 
    437 # 
    438 # prepare the data tar (without the svn...) 
    439 # 
    440     cd ${memopwd}/../../.. 
    441     tar czf ${localtarbase}/SAXO_DATA_${ndate}.tar.gz  --exclude .svn DATA 
    442 # 
    443  informations 
    444     echo "iii : following file may be copied on http://forge.ipsl.jussieu.fr/saxo/download/" 
    445     ls -l ${localtarbase} 
     435   localtarbase=/tmp/savesaxo_${$} 
     436   mkdir ${localtarbase}/ 
     437   # 
     438   # prepare the data tar (without the svn...) 
     439   # 
     440   cd ${memopwd}/../../.. 
     441   tar czf ${localtarbase}/SAXO_DATA_${ndate}.tar.gz  --exclude .svn DATA 
     442   # 
     443   # informations 
     444   echo "iii : following file may be copied on http://forge.ipsl.jussieu.fr/saxo/download/" 
     445   ls -l ${localtarbase} 
    446446fi 
    447447#------------------------------------------------------------------ 
    448448if [ ${doforge} -eq 1 ] 
    449449then 
    450     echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd two times" 
    451     if [ ${doTARsrc} -ne 1 ] 
    452     then 
    453        localtarbase=${1} 
    454     fi 
    455     scp ${localtarbase}/SAXO_*.tar.gz ${lgforge}@forge.ipsl.jussieu.fr:/ipsl/forge/projets/saxo/download/ 
    456     echo "iii : do not forget to update getsaxo.html" 
    457     echo "iii : \$ make ./getsaxo.html" 
    458     echo "iii : do not forget to clean ${localtarbase}" 
     450   echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd two times" 
     451   if [ ${doTARsrc} -ne 1 ] 
     452   then 
     453      localtarbase=${1} 
     454   fi 
     455   scp ${localtarbase}/SAXO_*.tar.gz ${lgforge}@forge.ipsl.jussieu.fr:/ipsl/forge/projets/saxo/download/ 
     456   echo "iii : do not forget to update getsaxo.html" 
     457   echo "iii : \$ make ./getsaxo.html" 
     458   echo "iii : do not forget to clean ${localtarbase}" 
    459459fi 
    460460#------------------------------------------------------------------ 
    461461if [[ (${doDTAlocean} -eq 1) || (${doDTAipsl} -eq 1) ]] 
    462462then 
    463     echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd" 
    464     infodata=$(ssh ${lgforge}@forge.ipsl.jussieu.fr ls -lht /ipsl/forge/projets/saxo/download/SAXO_DATA_*.tar.gz | head -n 1) 
    465     filedata=$(echo ${infodata} | awk '{print $NF}') 
    466     filedata=$(basename ${filedata}) 
    467     cat <<EOF > job_data_$$ 
     463   echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd" 
     464   infodata=$(ssh ${lgforge}@forge.ipsl.jussieu.fr ls -lht /ipsl/forge/projets/saxo/download/SAXO_DATA_*.tar.gz | head -n 1) 
     465   filedata=$(echo ${infodata} | awk '{print $NF}') 
     466   filedata=$(basename ${filedata}) 
     467   cat <<EOF > job_data_$$ 
    468468#!/bin/bash 
    469469cd SAXO_DIR 
     
    483483if [ ${doSRClocean} -eq 1 ] 
    484484then 
    485 # update src on cerbere 
    486 # 
    487     echo "iii : update src on cerbere" 
    488     ssh smasson@cerbere.locean-ipsl.upmc.fr "svn update SAXO_DIR/SRC ; chmod -R 755 SAXO_DIR" 
     485   # update src on cerbere 
     486   # 
     487   echo "iii : update src on cerbere" 
     488   ssh smasson@cerbere.locean-ipsl.upmc.fr "svn update SAXO_DIR/SRC ; chmod -R 755 SAXO_DIR" 
    489489fi 
    490490#------------------------------------------------------------------ 
    491491if [ ${doDTAlocean} -eq 1 ] 
    492492then 
    493 # update data on cerbere 
    494     echo "iii : update data on cerbere" 
    495     scp job_data_$$ smasson@cerbere.locean-ipsl.upmc.fr:. 
    496     ssh smasson@cerbere.locean-ipsl.upmc.fr "chmod 755 job_data_$$ ; ./job_data_$$ ; rm -f job_data_$$" 
     493   # update data on cerbere 
     494   echo "iii : update data on cerbere" 
     495   scp job_data_$$ smasson@cerbere.locean-ipsl.upmc.fr:. 
     496   ssh smasson@cerbere.locean-ipsl.upmc.fr "chmod 755 job_data_$$ ; ./job_data_$$ ; rm -f job_data_$$" 
    497497fi 
    498498#------------------------------------------------------------------ 
    499499if [ ${doSRCipsl} -eq 1 ] 
    500500then 
    501 # update src on calcul2 
    502 # 
    503     echo "iii : update src on calcul2" 
    504     ssh smlod@calcul2.ipsl.jussieu.fr "svn update SAXO_DIR/SRC ; chmod -R 755 SAXO_DIR" 
     501   # update src on calcul2 
     502   # 
     503   echo "iii : update src on calcul2" 
     504   ssh smlod@calcul2.ipsl.jussieu.fr "svn update SAXO_DIR/SRC ; chmod -R 755 SAXO_DIR" 
    505505fi 
    506506#------------------------------------------------------------------ 
    507507if [ ${doDTAipsl} -eq 1 ] 
    508508then 
    509 # update data on cook 
    510     echo "iii : update data on cook" 
    511     scp job_data_$$ smlod@cook.ipsl.jussieu.fr:. 
    512     ssh smlod@cook.ipsl.jussieu.fr "chmod 755 job_data_$$ ; ./job_data_$$ ; rm -f job_data_$$" 
     509   # update data on cook 
     510   echo "iii : update data on cook" 
     511   scp job_data_$$ smlod@cook.ipsl.jussieu.fr:. 
     512   ssh smlod@cook.ipsl.jussieu.fr "chmod 755 job_data_$$ ; ./job_data_$$ ; rm -f job_data_$$" 
    513513fi 
    514514#------------------------------------------------------------------ 
    515515if [ ${doSRCidris} -eq 1 ] 
    516516then 
    517 # update src on ulam 
    518     echo "iii : update src to ulam" 
    519     ssh -t smasson@cerbere.locean-ipsl.upmc.fr ssh reee217@ulam.idris.fr "svn update SAXO_DIR/SRC ; chmod -R 755 SAXO_DIR" 
     517   # update src on ulam 
     518   echo "iii : update src to ulam" 
     519   ssh -t smasson@cerbere.locean-ipsl.upmc.fr ssh reee217@ulam.idris.fr "svn update SAXO_DIR/SRC ; chmod -R 755 SAXO_DIR" 
    520520fi 
    521521#------------------------------------------------------------------ 
    522522if [ ${doDTAidris} -eq 1 ] 
    523523then 
    524 # create the update script for ulam 
    525     if [[ (${doDTAlocean} -eq 0) && (${doDTAipsl} -eq 0) ]] 
    526         then 
    527         echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd" 
    528         infodata=$(ssh ${lgforge}@forge.ipsl.jussieu.fr ls -lht /ipsl/forge/projets/saxo/download/SAXO_DATA_*.tar.gz | head -n 1) 
    529         filedata=$(echo ${infodata} | awk '{print $NF}') 
    530         filedata=$(basename ${filedata}) 
    531     fi 
    532     cat <<EOF > job_data_idris_$$ 
     524   # create the update script for ulam 
     525   if [[ (${doDTAlocean} -eq 0) && (${doDTAipsl} -eq 0) ]] 
     526then 
     527      echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd" 
     528      infodata=$(ssh ${lgforge}@forge.ipsl.jussieu.fr ls -lht /ipsl/forge/projets/saxo/download/SAXO_DATA_*.tar.gz | head -n 1) 
     529      filedata=$(echo ${infodata} | awk '{print $NF}') 
     530      filedata=$(basename ${filedata}) 
     531   fi 
     532   cat <<EOF > job_data_idris_$$ 
    533533#!/bin/ksh 
    534534cd SAXO_DIR 
     
    545545# 
    546546EOF 
    547 # update data on gaya 
    548     echo "iii : update data to gaya" 
    549     scp job_data_idris_$$ reee217@gaya.idris.fr:. 
    550     ssh reee217@gaya.idris.fr "chmod 755 job_data_idris_$$ ; ./job_data_idris_$$ ; rm -f job_data_idris_$$" 
     547   # update data on gaya 
     548   echo "iii : update data to gaya" 
     549   scp job_data_idris_$$ reee217@gaya.idris.fr:. 
     550   ssh reee217@gaya.idris.fr "chmod 755 job_data_idris_$$ ; ./job_data_idris_$$ ; rm -f job_data_idris_$$" 
    551551fi 
    552552#------------------------------------------------------------------ 
    553553if [ ${dodocdownload} -eq 1 ] 
    554554then 
    555     echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd several times" 
    556     # 
    557     # copy files in a temporary directory 
    558     mkdir /tmp/download_${$}/ 
    559     cp -rp ../xmldoc /tmp/download_${$}/ 
    560     cp -rp ../idldoc_html_output /tmp/download_${$}/ 
    561     # 
    562     # remove tools files 
    563     find /tmp/download_${$}/ -name ".svn" -exec rm -rf {} \; 2> /dev/null 
    564     find /tmp/download_${$}/ -name "*.xml" -exec rm -rf {} \; 2> /dev/null 
    565     find /tmp/download_${$}/ -name "*.xsl" -exec rm -rf {} \; 2> /dev/null 
    566     find /tmp/download_${$}/ -name "*.sed" -exec rm -rf {} \; 2> /dev/null 
    567     find /tmp/download_${$}/ -name "*.sh" -exec rm -rf {} \; 2> /dev/null 
    568     find /tmp/download_${$}/ -name "makefile" -exec rm -rf {} \; 2> /dev/null 
    569     find /tmp/download_${$}/ -name "*~" -exec rm -rf {} \; 2> /dev/null 
    570     # 
    571     # replace relative path 
    572     # by http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/ 
    573     # on ulink lines containing some directories like ../../ToBeReviewed/ or ../../Tests/ or file like newheader.txt 
    574     list_html=$(find /tmp/download_${$}/ -name "*.html") 
    575     for file_html in ${list_html} 
    576     do 
    577      sed \ 
    578      -e "/Source code of a file/s+../.*/../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC+g" \ 
    579      -e "/..\/..\/ToBeReviewed/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g" \ 
    580      -e "/..\/..\/Tests/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g"  \ 
    581      -e "/..\/..\/Calendar/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g" \ 
    582      -e "/..\/newheader/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/Documentation/+g" \ 
    583      ${file_html} > ${file_html}_${$} 
    584      mv ${file_html}_${$} ${file_html} 
    585     done 
    586     echo 
    587     echo "give SAXO password if asked" 
    588     scp -rp /tmp/download_${$}/* saxo@forge.ipsl.jussieu.fr:/ipsl/forge/projets/saxo/download/ 
    589     rm -rf /tmp/download_${$}/ 
     555   echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd several times" 
     556   # 
     557   # copy files in a temporary directory 
     558   mkdir /tmp/download_${$}/ 
     559   cp -rp ../xmldoc /tmp/download_${$}/ 
     560   cp -rp ../idldoc_html_output /tmp/download_${$}/ 
     561   # 
     562   # remove tools files 
     563   find /tmp/download_${$}/ -name ".svn" -exec rm -rf {} \; 2> /dev/null 
     564   find /tmp/download_${$}/ -name "*.xml" -exec rm -rf {} \; 2> /dev/null 
     565   find /tmp/download_${$}/ -name "*.xsl" -exec rm -rf {} \; 2> /dev/null 
     566   find /tmp/download_${$}/ -name "*.sed" -exec rm -rf {} \; 2> /dev/null 
     567   find /tmp/download_${$}/ -name "*.sh" -exec rm -rf {} \; 2> /dev/null 
     568   find /tmp/download_${$}/ -name "makefile" -exec rm -rf {} \; 2> /dev/null 
     569   find /tmp/download_${$}/ -name "*~" -exec rm -rf {} \; 2> /dev/null 
     570   # 
     571   # replace relative path 
     572   # by http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/ 
     573   # on ulink lines containing some directories like ../../ToBeReviewed/ or ../../Tests/ or file like newheader.txt 
     574   list_html=$(find /tmp/download_${$}/ -name "*.html") 
     575   for file_html in ${list_html} 
     576   do 
     577      sed \ 
     578         -e "/Source code of a file/s+../.*/../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC+g" \ 
     579         -e "/..\/..\/ToBeReviewed/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g" \ 
     580         -e "/..\/..\/Tests/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g"  \ 
     581         -e "/..\/..\/Calendar/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g" \ 
     582         -e "/..\/newheader/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/Documentation/+g" \ 
     583         ${file_html} > ${file_html}_${$} 
     584      mv ${file_html}_${$} ${file_html} 
     585   done 
     586   echo 
     587   echo "give SAXO password if asked" 
     588   scp -rp /tmp/download_${$}/* saxo@forge.ipsl.jussieu.fr:/ipsl/forge/projets/saxo/download/ 
     589   rm -rf /tmp/download_${$}/ 
    590590fi 
    591591# 
     
    593593if [ ${dowikiupdate} -eq 1 ] 
    594594then 
    595     # uncomment this following line if you want to start from scratch 
    596     # ssh saxo@forge.ipsl.jussieu.fr mkdir -p /tmp/saxo 
    597     rsync -av --exclude=".DS_Store" --exclude=".svn" ./wiki/ saxo@forge.ipsl.jussieu.fr:/tmp/saxo 
    598     ssh saxo@forge.ipsl.jussieu.fr trac-admin /ipsl/forge/projets/saxo/trac wiki load /tmp/saxo 
    599     # uncomment this following line if you want to leave without any trace 
    600     # ssh saxo@forge.ipsl.jussieu.fr rm -rf /tmp/saxo 
     595   # uncomment this following line if you want to start from scratch 
     596   # ssh saxo@forge.ipsl.jussieu.fr mkdir -p /tmp/saxo 
     597   rsync -av --exclude=".DS_Store" --exclude=".svn" ./wiki/ saxo@forge.ipsl.jussieu.fr:/tmp/saxo 
     598   ssh saxo@forge.ipsl.jussieu.fr trac-admin /ipsl/forge/projets/saxo/trac wiki load /tmp/saxo 
     599   # uncomment this following line if you want to leave without any trace 
     600   # ssh saxo@forge.ipsl.jussieu.fr rm -rf /tmp/saxo 
    601601fi 
    602602#------------------------------------------------------------------ 
  • trunk/SRC/Tests/makeold.sh

    r114 r430  
    22rm -f TestsOld/*.pro 
    33for i in tst_*.pro 
    4   do 
    5   new=$( basename $i .pro ) 
    6   sed -e "/@update/d" \ 
     4do 
     5   new=$( basename $i .pro ) 
     6   sed -e "/@update/d" \ 
    77      -e "s/@cm_4mesh/@common/g" \ 
    88      -e "s/@cm_4cal/@common/g" \ 
     
    3131for i in $( egrep -il "^ *(pro|function) .*," *.pro ) 
    3232do 
    33   a=$( egrep -ih "^ *(pro|function) .*," $i ) 
    34   b=${a%%,*}_old,${a#*,} 
    35   sed -e "s/${a}/${b}/" $i > tmp_$$ 
    36   mv tmp_$$ $i 
     33   a=$( egrep -ih "^ *(pro|function) .*," $i ) 
     34   b=${a%%,*}_old,${a#*,} 
     35   sed -e "s/${a}/${b}/" $i > tmp_$$ 
     36   mv tmp_$$ $i 
    3737done 
  • trunk/SRC/ToBeReviewed/CALCULS/fsfzpt.pro

    r325 r430  
    11;+ 
    2 ; @file_comments 
    3 ; 
    4 ; @categories 
    5 ; 
    6 ; @param PFS 
    7 ; 
    8 ; @param PFP 
    9 ; 
    10 ; @returns 
    11 ; 
    12 ; @uses 
    13 ; 
    14 ; @restrictions 
    15 ; 
    16 ; @examples 
    17 ; 
    18 ; @history 
    19 ; 
    20 ; 
    21 ; @version 
    22 ; $Id$ 
    232; 
    243; Ice freezing point 
     
    3413;       checkvalue: fsfzpt=-2.588567 deg.c,for s=40.0,p=500 decibars 
    3514; 
     15; 
     16; @categories 
     17; 
     18; @param PFS {in}{required} 
     19; salinity 
     20; 
     21; @param PFP {in}{required} 
     22; pressure decibars 
     23; 
     24; @examples 
     25; 
     26; IDL> pfs=40.0 
     27; IDL> pfp=500 
     28; IDL> result=fsfzpt( pfs, pfp) 
     29; IDL> print,result 
     30;     -2.58857 
     31; 
     32; @returns 
     33; temperature freezing pt degrees celsius 
     34; 
     35; @uses 
     36; 
     37; @restrictions 
     38; 
     39; @examples 
     40; 
     41; @history 
     42; 
     43; - fplod 20091208T163045Z zeus.locean-ipsl.upmc.fr (Linux) 
     44; 
     45;   * add example 
     46; 
     47; 
     48; @version 
     49; $Id$ 
     50; 
    3651; @todo seb 
    3752; 
  • trunk/SRC/ToBeReviewed/CALCULS/rhon.pro

    r327 r430  
    11;+ 
    2 ; @file_comments 
     2; 
     3; Calcul de la fonction d'etat (issue de eos.F) 
    34; 
    45; @categories 
     
    2223; @history 
    2324; 
     25; - Creation : 1997 / G. Roullet 
     26; 
     27; - adaptation pour les tableaux z,zt,xyz,xyzt  par seb. 
     28; 
    2429; @version 
    2530; $Id$ 
    2631; 
    27 ;; 
    28 ;; Calcul de la fonction d'etat (issue de eos.F) 
    29 ;; 
    30 ;; Creation : 1997 / G. Roullet 
    31 ;; adaptation pour les tableaux z,zt,xyz,xyzt 
    32 ;; par seb. 
    33 ;; 
    3432; @todo seb 
    3533; 
  • trunk/SRC/Utilities/routine_name.pro

    r386 r430  
    77; Utilities 
    88; 
    9 ; @param PILINGNUM {in}{optional} 
     9; @param PILINGNUM {in}{optional}{type=integer} 
    1010; A whole number which give us how many level we have to reascend 
    1111; in the piling up of routines and subroutines to find the looked for routine. 
     
    3434;  $MAIN$ 
    3535; 
     36; @todo 
     37; replace str_sep by the non obsolete routine strsplit 
     38; 
    3639; @history 
    3740; Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    38 ;                      21/10/1999 
     41; 21/10/1999 
    3942; 
    4043; @version 
     
    4245; 
    4346;- 
    44 FUNCTION routine_name,  pilingnum 
     47FUNCTION routine_name, pilingnum 
    4548; 
    4649  compile_opt idl2, strictarrsubs 
     
    6467  name = strtrim(name, 2)     ; we remove blanks in front of and behind 
    6568  name = strcompress(name)      ; we compress blanks 
    66 ; we do not hold back the two first elements who are a blanck  and the line concerning 
     69; we do not hold back the two first elements who are a blanck and the line concerning 
    6770; routine_name. 
    6871  name = name[2: n_elements(name)-1] 
    6972; we choose the line which concern us. 
    70   if NOT keyword_set(pilingnum) then pilingnum = 0 
    71   if pilingnum GE n_elements(name) then return,  '$MAIN$' 
     73  if NOT keyword_set(pilingnum) THEN pilingnum = 0 
     74  if pilingnum GE n_elements(name) THEN BEGIN  
     75   return, '$MAIN$' 
     76  ENDIF 
    7277  name = name[pilingnum] 
    73   if strpos(name, '$MAIN$') NE -1 then return,  '$MAIN$' 
     78  if strpos(name, '$MAIN$') NE -1 THEN BEGIN  
     79   return, '$MAIN$' 
     80  ENDIF 
    7481  name = str_sep(name, ' ') 
    75   if n_elements(name) LT 3  then name = name[0] ELSE name = 'L.'+name[1]+' '+name[2] 
     82  if n_elements(name) LT 3 THEN BEGIN 
     83   name = name[0]  
     84  ENDIF ELSE BEGIN 
     85   name = 'L.'+name[1]+' '+name[2] 
     86  ENDELSE 
    7687; 
    7788  return, name 
Note: See TracChangeset for help on using the changeset viewer.