Changeset 420 for trunk/SRC


Ignore:
Timestamp:
01/25/10 12:47:34 (14 years ago)
Author:
pinsard
Message:

documentations tools improvements

Location:
trunk/SRC/Documentation/xmldoc
Files:
4 edited

Legend:

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

    r415 r420  
    5555# 
    5656# 
    57 # For POST_IT in working space /usr/home/fplod/incas/post_it/post_it_ws/ 
     57# For POST_IT in working space /usr/lodyc/incas/fplod/post_it_ws/ 
    5858# with IDL 6.4 
    5959# 
    6060# :: 
    6161# 
    62 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/docompileall.sh -i /usr/home/fplod/incas/post_it/post_it_ws/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 
    63 # 
    64 # For POST_IT in working space /usr/home/fplod/incas/post_it/post_it_ws/ 
     62# $ ${SAXO_DIR}/SRC/Documentation/xmldoc/docompileall.sh -i /usr/lodyc/incas/fplod/post_it_ws/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 
     63# 
     64# For POST_IT in working space /usr/lodyc/incas/fplod/post_it_ws/ 
    6565# with IDL 7.0 
    6666# 
    6767# :: 
    6868# 
    69 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/docompileall.sh -i /usr/home/fplod/incas/post_it/post_it_ws/ -idl_dir /usr/local_linux/idl/idl70/ 
     69# $ ${SAXO_DIR}/SRC/Documentation/xmldoc/docompileall.sh -i /usr/lodyc/incas/fplod/post_it_ws/ -idl_dir /usr/local_linux/idl/idl70/ 
    7070# 
    7171# TODO 
  • trunk/SRC/Documentation/xmldoc/doidldoc.sh

    r415 r420  
    1010# ======== 
    1111# 
    12 # ``doidldoc.sh -i indir -t title -o outdir -idl_dir idl_dir -idldoc_version idldoc_version -idldoc_dir idldoc_dir`` 
     12# ``doidldoc.sh -i indir -t title -o outdir -idl_dir idl_dir -idldoc_version idldoc_version -idldoc_dir idldoc_dir -e element -r refhtlm`` 
    1313# 
    1414# DESCRIPTION 
     
    2323# -idldoc_version idldoc_version 
    2424# -idldoc_dir idldoc_dir 
    25 # 
    26 # Two pass : first *classic* idldoc then some home made transformation to avoid 
    27 # for example version of idldoc on each HTML files. 
     25# -e element 
     26# -r refhtml 
     27# 
     28# Two passes : first *classic* idldoc then some home made transformation  
     29# to avoid for example version of idldoc on each HTML files. 
    2830# 
    2931# The first pass produce files in /tmp/idldoc_output_${$}/ directory. 
    3032# 
    3133# At the end the result is in ``outdir``. 
    32 # 
    3334# 
    3435# By default, embedded ``idldoc`` 2.0 in SAXO is used. 
     
    3940# Be warned that assitant help is only available with ``idldoc 2.0``. 
    4041# 
     42# Must be run two times to resolve internal links. 
     43# 
    4144# CAUTIONS 
    4245# ======== 
     
    5154# directory and set SAXO_DIR to the working space. 
    5255# 
    53 # example for me : SAXO_DIR=${HOME}/SAXO_DIR_ws/ 
     56# example for me : SAXO_DIR=/usr/lodyc/incas/fplod/SAXO_DIR_ws/ 
    5457# 
    5558# EXAMPLES 
     
    6164# :: 
    6265# 
    63 # $ cd SAXO_DIR_ws/SRC/Documentation/xmldoc/ 
    64 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i ../.. -t "SAXO Documentation" -o ./idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 
     66# $ cd ${SAXO_DIR}/SRC/Documentation/xmldoc/ 
     67# $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i ../.. -t "SAXO Documentation" -o ../idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ -e pro -r ../idldoc_html_output/ -e proidl -r /usr/local_linux/idl/idl_6.4/idl/help/online_help 
     68# 
    6569# 
    6670# To produce GEOMAG HTML outputs : 
     
    6872# 
    6973# $ cd /usr/home/fplod/incas/geomag/geomag_ws/ 
    70 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i . -t "GEOMAG Documentation" -o /usr/work/incas/${LOGNAME}/geomag/idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 
     74# $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i . -t "GEOMAG Documentation" -o /usr/work/incas/${LOGNAME}/geomag/idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ -e pro -r ../idldoc_html_output/ -e proidl -r /usr/local_linux/idl/idl_6.4/idl/help/online_help -e progeomag -r /usr/work/incas/${LOGNAME}/idldoc_html_output/ 
     75 
    7176# 
    7277# To produce VARAMMA HTML outputs : 
     
    7479# 
    7580# $ cd /usr/home/fplod/incas/varamma/varamma_ws/ 
    76 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i . -t "VARAMMA Documentation" -o /tmp/idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 
     81# $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i . -t "VARAMMA Documentation" -o /tmp/idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ -e pro -r ../idldoc_html_output/ -e proidl -r /usr/local_linux/idl/idl_6.4/idl/help/online_help 
    7782# 
    7883# To produce POST_IT HTML outputs : 
    7984# :: 
    8085# 
    81 # $ cd /usr/home/fplod/incas/post_it/post_it_ws/ 
    82 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i . -t "POST_IT/Documentation" -o /usr/work/incas/${LOGNAME}/idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 
    83 # 
    84  
     86# $ cd /usr/lodyc/incas/fplod/post_it_ws/ 
     87# $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i . -t "POST_IT/Documentation" -o /usr/work/incas/${LOGNAME}/idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ -e pro -r ${SAXO_DIR}/SRC/Documentation/idldoc_html_output/ -e proidl -r /usr/local_linux/idl/idl_6.4/idl/help/online_help -e propost_it -r /usr/work/incas/${LOGNAME}/idldoc_html_output/ 
     88# 
    8589# TODO 
    8690# ==== 
     
    9195# doc idl 
    9296# 
     97# add checking of consistency between numbers of -e and -r parameters 
     98# 
    9399# SEE ALSO 
    94100# ======== 
     
    96102# idldoc++ lien 
    97103# 
     104# pro2href.sh 
     105# 
    98106# EVOLUTIONS 
    99107# ========== 
    100108# 
    101109# $Id$ 
     110# 
     111# - fplod 20100125T105849Z aedon.locean-ipsl.upmc.fr (Darwin) 
     112# 
     113#   * add -e and -r parameters to replace hardcoded element and reference 
     114#     of links 
    102115# 
    103116# - fplod 20091112T101526Z zeus.locean-ipsl.upmc.fr (Linux) 
     
    206219#idldoc_dir="/usr/home/fplod/src/idldoc-3.1.1/" # overriding idldoc_dir for test ++ 
    207220# 
     221ielement=1 
     222# 
    208223minargcount=6 
    209224if [ ${#} -lt ${minargcount} ] 
     
    245260 idl_dir=${2} 
    246261 shift 
     262 ;; 
     263 -e) 
     264 element[${ielement}]=${2} 
     265 shift 
     266 ;; 
     267 -r) 
     268 refhtml[${ielement}]=${2} 
     269 shift 
     270 ielement=$(( ${ielement} + 1)) 
    247271 ;; 
    248272 -h) 
     
    376400 sed \ 
    377401 -e "s/\(Generated by IDLdoc\)\( .* on .*\)\( -->\)/\1\3/" \ 
    378  -e "s/\(Produced by IDLdoc\)\( .* on .*\)\(<\/td>\)/\1\3/" \ 
     402 -e "s/\(Produced by IDLdoc\)\( .* on .*\)\(<\/div>\)/\1\3/" \ 
    379403 -e "/<h2>Produced on/d" \ 
    380404 -e "/Modifcation:/d" \ 
     
    398422 mv ${file_html}_modify ${file_html} 
    399423done 
    400 # replace <pro>ginette</pro> by a sequence like 
    401 # <a href="./ginette.html">ginette</a> 
    402 ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${outputtmp} -e pro 
    403 status=${?} 
    404 if [ ${status} -ne 0 ] 
    405 then 
    406  echo "eee : pb during pro2href.sh for <pro>...</pro>" 
    407  exit 1 
    408 fi 
    409 # replace <proidl>ginette</proidl> by a sequence like 
    410 # <a href="./ginette.html">ginette</a> 
    411 ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${idl_dir}/help/online_help -e proidl 
    412 status=${?} 
    413 if [ ${status} -ne 0 ] 
    414 then 
    415  echo "eee : pb during pro2href.sh for <proidl>...</proidl>" 
    416  exit 1 
    417 fi 
     424nelement=${#element[@]} 
     425ielement=1 
     426while [ ${ielement} -le ${nelement} ] 
     427do  
     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)) 
     440done 
    418441fi # end of transform = 1 
    419442# 
  • trunk/SRC/Documentation/xmldoc/pro2href.sh

    r415 r420  
    106106   for file_html in ${list_html_element} 
    107107   do 
    108 #      echo "file_html ${file_html}" 
    109 #      read a 
     108      #echo "file_html ${file_html}" 
     109      #read a 
    110110       fpath=$(dirname ${file_html} | sed -e "s+\(${dirhtml}/\)\(.*\)+\2+") 
    111111#echo "fpath ${fpath}" 
  • trunk/SRC/Documentation/xmldoc/savesaxo.sh

    r415 r420  
    1111# 
    1212# $Id$ 
     13# 
     14#  
     15# - fplod 20100125T112917Z aedon.locean-ipsl.upmc.fr (Darwin) 
     16#    
     17#   * complete doidldoc.sh calling sequence 
    1318# 
    1419# - fplod 20091112T101551Z zeus.locean-ipsl.upmc.fr (Linux) 
     
    280285    -o ../idldoc_html_output/  
    281286    -idl_dir ${idl_dir} 
     287    -e pro -r ../idldoc_html_output/ \ 
     288    -e proidl -r /usr/local_linux/idl/idl_6.4/idl/help/online_help 
    282289    doidldoc_html=${?} 
    283290    if [ ${doidldoc_html} -ne 0 ] 
Note: See TracChangeset for help on using the changeset viewer.