Ignore:
Timestamp:
09/21/06 14:59:48 (18 years ago)
Author:
pinsard
Message:

remove format=raw in all html files 1/2

File:
1 edited

Legend:

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

    r187 r188  
    33# update : 
    44# $Id$ 
     5# fplod 2006-09-20T16:34:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
     6# suppress ?format=raw 
     7# fplod 2006-09-20T15:30:15Z aedon.locean-ipsl.upmc.fr (Darwin) 
     8# add copy of html files unedr xmldoc and idldoc_htlm_output on  
     9# saxo@forge.ipsl.jussieu.fr:/ipsl/forge/projets/saxo/download/ 
     10# see dodocdownload 
    511# fplod 2006-09-20T11:05:23Z aedon.locean-ipsl.upmc.fr (Darwin) 
    612# correction to really suppress date in idldoc assistant outputs (font  
     
    7379set -u 
    7480# 
    75 docompileall=1 
     81docompileall=0 
    7682dohtml=0 
    7783dooldtest=0 
     
    8793doSRCidris=0 
    8894doDTAidris=0 
     95dodocdownload=1 
    8996# 
    9097case $( whoami ) in 
     
    187194      fi 
    188195    done 
    189     exit 0 
    190196fi 
    191197#------------------------------------------------------------------ 
     
    234240    # <td>Source</td> 
    235241    # will be replaced by 
    236     # <td><a href="../../Calendar/caldat.pro?format=raw" title="Source code of a file">Source</a></td> 
     242    # <td><a href="../../Calendar/caldat.pro" title="Source code of a file">Source</a></td> 
    237243    # 
    238244    # - remove date and time of idldoc production 
     
    255261    # should also be removed ++ je ne sais pas dire en sed la ligne 
    256262    # suivant l'occurence de Last modification 
    257     # add ?format=raw to links on html files 
    258263    cat << EOF > /tmp/css_modification 
    259264p.preformat { 
     
    292297     # echo "relpath ${relpath_html}/${bfile}" 
    293298     sed \ 
    294      -e "s@<td >Source<\/td>@<td><a href=\"${relpath_html}/${bfile}.pro?format=raw\" title=\"Source code of a file\">Source<\/a><\/td>@" \ 
     299     -e "s@<td >Source<\/td>@<td><a href=\"${relpath_html}/${bfile}.pro\" title=\"Source code of a file\">Source<\/a><\/td>@" \ 
    295300     -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \ 
    296301     -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/div>\)/\1\3/" \ 
     
    298303     -e "/Last modification:/d" \ 
    299304     -e "/<dd>... ... .* ..:..:.. ....<\/dd>/d" \ 
    300      -e 's@\(href="[^.]*[^h]*[^t]*[^m]*[^l]*[^"]*\)\(\.html\)\("\)@\1\2?format=raw\3@g' \ 
    301      -e 's@\(href="[^.]*[^h]*[^t]*[^m]*[^l]*[^"]*\)\(\.html\)\(#.*"\)@\1\2?format=raw\3@g' \ 
    302      -e 's@\(src="[^.]*[^h]*[^t]*[^m]*[^l]*[^"]*\)\(\.html\)\("\)@\1\2?format=raw\3@g' \ 
    303305     -e 's@<div class="value">@<div class="preformat">@' \ 
    304306     -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 
     
    361363    # with _keyword_ 
    362364    #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global 
    363     # DON'T add here (in assistant idldoc output) ?format=raw to link because 
    364365    #  ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path    # won't work 
    365366    list_html=$(find ${output} -name "*.html") 
     
    386387      fout=../idldoc_assistant_output/${file_html#../idldoc_html_output/*} 
    387388      fout=${fout%/*}/directory-overview.html 
    388       sed -e 's/?format=raw//g' ${file_html} > ${fout} 
     389      cp ${file_html} ${fout} 
    389390    done 
    390391    echo "iii : you can see log file in ${log}" 
     
    528529fi 
    529530#------------------------------------------------------------------ 
     531if [ ${dodocdownload} -eq 1 ] 
     532then 
     533    # ++ on pourrait peut-etre faire un rsync en enlevant les .sh et le .xsl 
     534    # ++ les .sh et le .xsl sont pour l'instant encore là 
     535    echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd several times" 
     536    # 
     537    # copy files in a temporary directory 
     538    mkdir /tmp/download_${$}/ 
     539    cp -rp ../xmldoc/ /tmp/download_${$}/ 
     540    cp -rp ../idldoc_html_output /tmp/download_${$}/ 
     541    # 
     542    # remove svn files 
     543    find /tmp/download_${$}/ -name ".svn" -exec rm -rf {} \; 
     544    # 
     545    # replace "../../" by http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/ 
     546    # on ulink lines containing ../../ToBeReviewed/ and ../../Test/ 
     547    list_html=$(find /tmp/download_${$}/ -name "*.html") 
     548    for file_html in ${list_html} 
     549    do 
     550     sed -e "/..\/..\/ToBeReviewed/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+"  ${file_html}  > ${file_html}_${$} 
     551     mv ${file_html}_${$} ${file_html}  
     552     sed -e "/..\/..\/Test/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+"  ${file_html}  > ${file_html}_${$} 
     553     mv ${file_html}_${$} ${file_html}  
     554    done 
     555    #++scp -rp /tmp/download_${$}/xmldoc/ ${lgforge}@forge.ipsl.jussieu.fr:/ipsl/forge/projets/saxo/download/ 
     556    scp -rp /tmp/download_${$}/* ${lgforge}@forge.ipsl.jussieu.fr:/ipsl/forge/projets/saxo/download/ 
     557    rm -rf /tmp/download_${$}/ 
     558fi 
     559#------------------------------------------------------------------ 
     560#------------------------------------------------------------------ 
    530561# 
    531562[ -f job_src_$$ ] && rm -f job_src_$$ 
Note: See TracChangeset for help on using the changeset viewer.