Ignore:
Timestamp:
11/18/09 12:18:52 (15 years ago)
Author:
pinsard
Message:

documentations tools improvements

File:
1 edited

Legend:

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

    r413 r415  
    2020# -t title 
    2121# -o directory output 
     22# -idl_dir idl_dir 
    2223# -idldoc_version idldoc_version 
    2324# -idldoc_dir idldoc_dir 
     
    6364# $ ${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/ 
    6465# 
     66# To produce GEOMAG HTML outputs : 
     67# :: 
     68# 
     69# $ 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/ 
     71# 
    6572# To produce VARAMMA HTML outputs : 
    6673# :: 
     
    7380# 
    7481# $ 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/ 
     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/ 
    7683# 
    7784 
     
    93100# 
    94101# $Id$ 
     102# 
     103# - fplod 20091112T101526Z zeus.locean-ipsl.upmc.fr (Linux) 
     104# 
     105#   * replace mv by cp -r because mv may no works accross filesystems 
     106#   * add chek on outdir 
    95107# 
    96108# - fplod 20091112T084225Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    248260set -u 
    249261# 
     262# check for outir 
     263if [ ! -d ${outdir} ] 
     264then 
     265 echo "eee : outdir (${outdir}) not found" 
     266 exit 1 
     267fi 
     268# check for permission access on outdir 
     269if [ ! -x ${outdir} ] 
     270then 
     271 echo " eee : ${outdir} not reachable" 
     272 exit 1 
     273 fi 
     274# 
     275# check for write permission on outdir 
     276if [ ! -w ${outdir} ] 
     277then 
     278 echo " eee : ${outdir} not writable" 
     279 exit 1 
     280fi 
     281# 
    250282# ++ test si IDL (car GDL inutilisable) 
    251 application=idl 
    252 # 
    253 # memorize current directory 
    254 memopwd=$(pwd) # should be <working space>/SRC/Documentation/xmldoc 
     283application=${idl_dir}/bin/idl 
    255284# 
    256285# build a IDL file to launch idldoc 
     
    315344 # build the .pro file name 
    316345 bfile=$(basename ${file_html} .html) 
    317  # retrieve the path of html file relative to memopwd (so relative to 
    318  # output). This path will be used in "Source" link. 
     346 # retrieve the path of html file relative to output.  
     347 # This path will be used in "Source" link. 
    319348 nblev2=$(dirname ${file_html} | sed -e "s@/\$@@" | awk -F "/" '{print NF}') 
    320349 difflev=$((${nblev2} - ${nblev1})) 
     
    413442 ;; 
    414443esac 
    415 more ${pro} 
    416 read a 
    417444# launch IDL with the file built above 
    418445IDL_STARTUP=${pro};${idl_dir}/bin/idl 
     
    464491 mv ${file_html}_modify ${file_html} 
    465492done 
     493# 
    466494# replace <pro>ginette</pro> by a sequence like 
    467495# <a href="./ginette.html">ginette</a> 
     
    516544fi 
    517545# copy of temporary outputs on final directory 
    518 # ++ if transform 
    519 mv ${outputtmp} ${outdir} 
     546cp -r ${outputtmp}/* ${outdir} 
    520547echo "iii : look at ${outdir}/index.html" 
    521548echo "iii : you can see idldoc log file in ${idldoc_log}" 
Note: See TracChangeset for help on using the changeset viewer.