Ignore:
Timestamp:
09/20/06 12:50:37 (18 years ago)
Author:
pinsard
Message:

introducing hyperlinks in idldoc outputs (1/2)

File:
1 edited

Legend:

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

    r183 r186  
    11#!/bin/bash 
    2 #  
     2# 
    33# update : 
    44# $Id$ 
     
    3333# ajout de  white-space: pre; dans la css pour file_comments 
    3434# fplod 2006-07-04T13:09:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
    35 # for idldoc html output  
     35# for idldoc html output 
    3636# because preformat option doesn't seem to work well 
    37 # replace  
     37# replace 
    3838# div class="value" 
    3939# by 
    4040# div class="preformat" 
    4141# fplod 2006-06-19T08:46:39Z aedon.locean-ipsl.upmc.fr (Darwin) 
    42 # for idldoc html output  
     42# for idldoc html output 
    4343#. replace 
    4444#     -e 's/\(href=".*\)\(\.html\)\("\)/\1\2?format=raw\3/g' \ 
    4545#     -e 's/\(href=".*\)\(\.html\)\(#.*"\)/\1\2?format=raw\3/g' \ 
    4646#     -e 's/\(src=".*\)\(\.html\)\("\)/\1\2?format=raw\3/g' \ 
    47 # by  
     47# by 
    4848# -e 's@\(href="[^.]*[^h]*[^t]*[^m]*[^l]*[^"]*\)\(\.html\)\("\)@\1\2?format=raw\3@g' \ 
    4949# -e 's@\(href="[^.]*[^h]*[^t]*[^m]*[^l]*[^"]*\)\(\.html\)\(#.*"\)@\1\2?format=raw\3@g' \ 
    5050#-e 's@\(src="[^.]*[^h]*[^t]*[^m]*[^l]*[^"]*\)\(\.html\)\("\)@\1\2?format=raw\3@g' 
    5151# in order to be able to add ?format=raw several time on one line 
    52 # . suppress .html in line like  
     52# . suppress .html in line like 
    5353# a parameter from the routine ./ReadWrite/idl-NetCDF/ncdf_read.html 
    5454# in files idldoc-index*.html 
     
    5656# add embed parameter idldoc instructions to try to fix ticket#17 
    5757# fplod 2006-06-07T12:11:50Z aedon.locean-ipsl.upmc.fr (Darwin) 
    58 # add g option in ?format=raw sed transformation in order to fix  
     58# add g option in ?format=raw sed transformation in order to fix 
    5959# link on top of idldoc like directory-overview.html 
    6060# fplod 2006-06-07T10:57:35Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    105105    doSRCidris=0 
    106106    doDTAidris=0 
    107 fi     
     107fi 
    108108# 
    109109# get the date in a nice format 
     
    118118    then 
    119119    cat <<EOF > /tmp/compileall${$}.pro 
    120 .reset_session   
     120.reset_session 
    121121; 
    122122!path = expand_path('+' + '../..') + ':' + expand_path('+' + !dir) 
     
    131131IF !journal NE 0 THEN journal 
    132132journal, myuniquetmpdir + 'cm_demomode_used.pro' 
    133 journal    
     133journal 
    134134; 
    135135resolve_all, resolve_either='keep_compatibility', skip_routines = ['xxx2ps','trends', 'label_gmt'] 
     
    154154    grep -i "error" /tmp/compileallerr_${$} 
    155155#    grep -q "Compilation error(s)" /tmp/compileallerr_${$} 
    156     if [ ${?} -ne 0 ]  
     156    if [ ${?} -ne 0 ] 
    157157    then 
    158158     echo "ALL SAXO files are OK..." 
     
    174174# 
    175175    cd ${memopwd} 
    176     for docxml in firststeps.xml getsaxo.xml mailing.xml websaxo.xml tiplink.xml updatesaxo.xml whatissaxo.xml whatsnew.xml infoupdatekwd.xml infoupdatecm.xml mini_notice.xml faqsaxo.xml  
     176    for docxml in firststeps.xml getsaxo.xml mailing.xml websaxo.xml tiplink.xml updatesaxo.xml whatissaxo.xml whatsnew.xml infoupdatekwd.xml infoupdatecm.xml mini_notice.xml faqsaxo.xml 
    177177    do 
    178178      ./makehtml.sh $(basename ${docxml} .xml) 
     
    242242    # <div id="tagline">Produced by IDLdoc 2.0</div> 
    243243    # <h2>Produced on Wed Jun  7 10:23:13 2006</h2> 
    244     # will be delete  
    245     # other lines will be deleted because the time is the time of checkout not  
     244    # will be delete 
     245    # other lines will be deleted because the time is the time of checkout not 
    246246    # the time of revision. 
    247247    # the sequence of lines 
     
    345345    # <div id="tagline">Produced by IDLdoc 2.0</div> 
    346346    # <h2>Produced on Wed Jun  7 10:23:13 2006</h2> 
    347     # will be delete  
    348     # other lines will be deleted because the time is the time of checkout not  
     347    # will be delete 
     348    # other lines will be deleted because the time is the time of checkout not 
    349349    # the time of revision. 
    350350    # the sequence of lines 
     
    382382    do 
    383383      fout=../idldoc_assistant_output/${file_html#../idldoc_html_output/*} 
    384       fout=${fout%/*}/directory-overview.html  
     384      fout=${fout%/*}/directory-overview.html 
    385385      sed -e 's/?format=raw//g' ${file_html} > ${fout} 
    386386    done 
Note: See TracChangeset for help on using the changeset viewer.