Ignore:
Timestamp:
11/12/09 10:50:27 (15 years ago)
Author:
pinsard
Message:

doidldoc.sh ok for HTML

File:
1 edited

Legend:

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

    r412 r413  
    11#! /bin/sh 
    2 # 
    32#+ 
    43# 
     
    1110# ======== 
    1211# 
    13 # ``doidldoc.sh -i indir -t title -o outdir -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`` 
    1413# 
    1514# DESCRIPTION 
     
    6160# :: 
    6261# 
    63 # $ cd SAXO_ws/SRC/Documentation/xmldoc/ 
    64 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i ../.. -t "SAXO Documentation" -o ./idldoc_html_output/ 
     62# $ cd SAXO_DIR_ws/SRC/Documentation/xmldoc/ 
     63# $ ${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/ 
    6564# 
    6665# To produce VARAMMA HTML outputs : 
     
    6867# 
    6968# $ cd /usr/home/fplod/incas/varamma/varamma_ws/ 
    70 # $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i . -t "VARAMMA Documentation" -o /tmp/idldoc_html_output/ 
    71 # 
     69# $ ${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/ 
     70# 
     71# To produce POST_IT HTML outputs : 
     72# :: 
     73# 
     74# $ cd /usr/home/fplod/incas/post_it/post_it_ws/ 
     75# $ ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh -i . -t "POST_IT/Documentation" -o /tmp/idldoc_html_output/ -idl_dir /usr/local_linux/idl/idl_6.4/idl/ 
     76# 
     77 
    7278# TODO 
    7379# ==== 
    7480# 
    75 # ++ pb PATH introduire SAXO_PATH 
    76 # can be solved with: 
    77 # :: 
    78 # 
    79 # $ export PATH=${HOME}/SAXO_DIR/SRC/Documentation/xmldoc/:${PATH} 
    80 # 
    81 # ++ pb avec IDL_DIR pas tjs positionné 
    82 # can be solved for linux with 
    83 # :: 
    84 # 
    85 # $ export IDL_DIR=/usr/local_linux/idl/ 
    86 # 
    87 # or for MacOSX with 
    88 # :: 
    89 # 
    90 # $ export IDL_DIR=/usr/local_macosx/idl//idl_6.2/idl_6.2/ 
    91 # 
    92 # 
    9381# ++ choix de la version de idldoc et consequences sur assistant 
    9482# 
     
    10593# 
    10694# $Id$ 
     95# 
     96# - fplod 20091112T084225Z aedon.locean-ipsl.upmc.fr (Darwin) 
     97# 
     98#   * bug fix if indir is set to '.' 
     99#   * idl_dir in parameter 
     100#   * path of local commands 
    107101# 
    108102# - fplod 20091110T151839Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    196190idldoc_version="2.0" 
    197191unset command_dir 
    198  
     192# default IDL command and directory 
     193#idl_dir=/usr/local_linux/idl/idl64/  # overriding idl_dir for test ++ 
    199194#idldoc_dir="/usr/home/fplod/src/idldoc-3.1.1/" # overriding idldoc_dir for test ++ 
    200195# 
    201 minargcount=4 
     196minargcount=6 
    202197if [ ${#} -lt ${minargcount} ] 
    203198then 
     
    213208 indir=${2} 
    214209 shift 
     210 case ${indir} in 
     211 .) 
     212  indir=$(pwd) 
     213  ;; 
     214 esac 
    215215 ;; 
    216216 -t) 
     
    228228 -idldoc_version) 
    229229 idldoc_version=${2} 
     230 shift 
     231 ;; 
     232 -idl_dir) 
     233 idl_dir=${2} 
    230234 shift 
    231235 ;; 
     
    283287 ;; 
    284288esac 
     289# 
    285290# launch IDL with the file built above 
    286291export IDL_STARTUP=${pro} 
     
    366371# replace <pro>ginette</pro> by a sequence like 
    367372# <a href="./ginette.html">ginette</a> 
    368 pro2href.sh -i ${outputtmp} -r ${outputtmp} -e pro 
     373${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${outputtmp} -e pro 
    369374status=${?} 
    370375if [ ${status} -ne 0 ] 
     
    375380# replace <proidl>ginette</proidl> by a sequence like 
    376381# <a href="./ginette.html">ginette</a> 
    377 pro2href.sh -i ${outputtmp} -r ${IDL_DIR}/help/online_help -e proidl 
     382${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${idl_dir}/help/online_help -e proidl 
    378383status=${?} 
    379384if [ ${status} -ne 0 ] 
     
    411416read a 
    412417# launch IDL with the file built above 
    413 IDL_STARTUP=${pro};${IDL_DIR}/bin/idl 
     418IDL_STARTUP=${pro};${idl_dir}/bin/idl 
    414419/bin/rm ${pro} 
    415420# In order to do not have to many revision in svn, we modify some 
     
    461466# replace <pro>ginette</pro> by a sequence like 
    462467# <a href="./ginette.html">ginette</a> 
    463 pro2href.sh -i ${outputtmp} -r ${outputtmp} -e pro 
     468${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${outputtmp} -e pro 
    464469status=${?} 
    465470if [ ${status} -ne 0 ] 
     
    470475# replace <proidl>ginette</proidl> by a sequence like 
    471476# <a href="./ginette.html">ginette</a> 
    472 pro2href.sh -i ${outputtmp} -r ${IDL_DIR}/help/online_help -e proidl 
     477${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${idl_dir}/help/online_help -e proidl 
    473478status=${?} 
    474479if [ ${status} -ne 0 ] 
     
    503508 if [ ${nhtml} -ne 2 ] 
    504509         then 
    505          echo "ERROR there is not 2 $( basename ${i} .pro ).html files" 
     510         echo "ERROR there is no 2 $( basename ${i} .pro ).html files" 
    506511         find ../.. -name $( basename ${i} .pro ).html 
    507512         echo 
Note: See TracChangeset for help on using the changeset viewer.