Changeset 259


Ignore:
Timestamp:
08/20/07 16:03:17 (17 years ago)
Author:
pinsard
Message:

improvment of links in idldoc outputs by modification of shell script and some pro files. add test for pro2href.sh. see 62

Location:
trunk/SRC
Files:
1 added
5 edited

Legend:

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

    r253 r259  
    88# update : 
    99# $Id$ 
     10# fplod 2007-08-20T11:25:39Z aedon.locean-ipsl.upmc.fr (Darwin) 
     11# correction from  
     12# 4.11. How do I match only the first occurrence of a pattern? 
     13# in sed faq http://www.student.northpark.edu/pemente/sed/sedfaq4.html#s4.11 
    1014#++ still not working perfectly because path of links on the different occurences of <pro>...</pro> may not be the same  
    1115# ex: see restoreboxparam.pro : domdef and saveboxparam 
     
    2933   for file_html in ${list_html_pro} 
    3034   do 
     35#      echo "file_html ${file_html}" 
     36#      read a 
    3137       fpath=$(dirname ${file_html} | sed -e "s+\(${output}/\)\(.*\)+\2+") 
    32        list_llink=$(grep -n "<pro>.*</pro>" ${file_html} | awk -F ":" '{print $1}') 
    33        for line in ${list_llink} 
     38       list_link=$(tr -s " " "\n" < ${file_html} | grep "<pro>.*</pro>"   | sed -e "s/^.*<pro>//" -e "s/<\/pro>.*$//") 
     39#      echo "liste link" ${list_link} 
     40#      read a 
     41       for link in ${list_link} 
    3442       do 
    3543          # replace <pro>something</pro> by 
    3644          #<a href="something.html">something</a> 
    37           # module is the html file name to be used 
    38           module=$(sed -ne "${line},${line}p" ${file_html} | \ 
    39                    grep "<pro>.*</pro>" | \ 
    40                    sed -e "s+\(.*<pro>\)\([^<]*\)\(</pro>.*\)+\\2.html+g") 
    41           modulemin=$(echo ${module} | tr "[:upper:]" "[:lower:]" ) 
     45          # modulehtml is the html file name to be used 
     46          modulehtml=${link}.html 
     47          modulemin=$(echo ${modulehtml} | tr "[:upper:]" "[:lower:]" ) 
    4248          # lpath is the path on module relatively to the location of 
    4349          # the html file containing the <pro>...</pro> 
     
    4652          then 
    4753             echo "eee : path of ${modulemin} not found under ${output}" 
    48              echo "eee : ${module} is used in ${file_html}" 
     54             echo "eee : ${link} is used in ${file_html}" 
    4955          else 
    5056             lpath=$(dirname ${lpath} | sed -e "s+\(${output}/\)\(.*\)+\2+") 
     
    6773             fi 
    6874#echo "relpath ${relpath}" 
    69              sed -e "${line}s+\(<pro>\)\([^<]*\)\(</pro>\)+<a href=\"${relpath}/\\2.html\">\2</a>+g" \ 
     75             cat <<EOF > /tmp/pro2href${$}.sed 
     761{x;s@^@first@;x;} 
     771,/<pro>${link}<\/pro>/{x;/first/s///;x;s@<pro>${link}<\/pro>@<a href="${relpath}/${link}.html">${link}<\/a>@;} 
     78EOF 
     79             sed -f /tmp/pro2href${$}.sed \ 
    7080             ${file_html} > ${file_html}_modify 
    7181             mv ${file_html}_modify ${file_html} 
     82             rm /tmp/pro2href${$}.sed 
    7283          fi 
    7384       done 
  • trunk/SRC/Interpolation/angle.pro

    r247 r259  
    9191;       =>    gcosu[*, 0] = gcosu[*, 1] 
    9292;       =>    gsinu[*, 0] = gsinu[*, 1] 
    93 ;     (2) the grid follows OPA x and north pole periodicity rule (see <pro>lbcorca.pro</pro>) 
     93;     (2) the grid follows OPA x and north pole periodicity rule (see <pro>lbcorca</pro>) 
    9494; 
    9595; @history 
     
    9797;                   98-06 (G. Madec) 
    9898;       Feb 2005: IDL adaptation S. Masson 
    99 ;       May 2007: F points + call to <pro>lbcorca.pro</pro> 
     99;       May 2007: F points + call to <pro>lbcorca</pro> 
    100100; 
    101101; @version 
  • trunk/SRC/Postscript/closeps.pro

    r238 r259  
    1010; 
    1111; @keyword INFOWIDGET {type=long integer} 
    12 ; id of the information widget (created by <pro>OPENPS</pro>) 
     12; id of the information widget (created by <pro>openps</pro>) 
    1313; that we have to destroy at the end of closeps (when the postscript is done). 
    1414; 
  • trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltv.pro

    r256 r259  
    5555; 
    5656; @keyword _EXTRA 
    57 ; Used to pass keywords to <pro>PLACEDESSIN</pro>, <pro>TV</pro>, <pro>AXE</pro>, <pro>LEGENDE</pro>, <pro>BARRECOULEUR</pro>, <pro>TERMINEDESSIN</pro> 
     57; Used to pass keywords to <pro>placedessin</pro>, <proidl>tv</proidl>, 
     58; <pro>axe</pro>, <pro>legende</pro>, <pro>barrecouleur</pro>,  
     59; <pro>terminedessin</pro> 
    5860; 
    5961; @examples 
  • trunk/SRC/ToBeReviewed/PLOTS/DIVERS/placedessin.pro

    r256 r259  
    88; 
    99; @param TYPEDESSIN {type=string} 
    10 ; It specify what procedure is called by <pro>PLACEDESSIN</pro> :  
     10; It specify what procedure is called by <pro>placedessin</pro> :  
    1111; 'plt', 'pltz' or 'pltt' 
    1212; 
Note: See TracChangeset for help on using the changeset viewer.