Changeset 188 for trunk/SRC/Documentation/xmldoc/savesaxo.sh
- Timestamp:
- 09/21/06 14:59:48 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/xmldoc/savesaxo.sh
r187 r188 3 3 # update : 4 4 # $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 5 11 # fplod 2006-09-20T11:05:23Z aedon.locean-ipsl.upmc.fr (Darwin) 6 12 # correction to really suppress date in idldoc assistant outputs (font … … 73 79 set -u 74 80 # 75 docompileall= 181 docompileall=0 76 82 dohtml=0 77 83 dooldtest=0 … … 87 93 doSRCidris=0 88 94 doDTAidris=0 95 dodocdownload=1 89 96 # 90 97 case $( whoami ) in … … 187 194 fi 188 195 done 189 exit 0190 196 fi 191 197 #------------------------------------------------------------------ … … 234 240 # <td>Source</td> 235 241 # 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> 237 243 # 238 244 # - remove date and time of idldoc production … … 255 261 # should also be removed ++ je ne sais pas dire en sed la ligne 256 262 # suivant l'occurence de Last modification 257 # add ?format=raw to links on html files258 263 cat << EOF > /tmp/css_modification 259 264 p.preformat { … … 292 297 # echo "relpath ${relpath_html}/${bfile}" 293 298 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>@" \ 295 300 -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \ 296 301 -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/div>\)/\1\3/" \ … … 298 303 -e "/Last modification:/d" \ 299 304 -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' \303 305 -e 's@<div class="value">@<div class="preformat">@' \ 304 306 -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ … … 361 363 # with _keyword_ 362 364 #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global 363 # DON'T add here (in assistant idldoc output) ?format=raw to link because364 365 # ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path # won't work 365 366 list_html=$(find ${output} -name "*.html") … … 386 387 fout=../idldoc_assistant_output/${file_html#../idldoc_html_output/*} 387 388 fout=${fout%/*}/directory-overview.html 388 sed -e 's/?format=raw//g' ${file_html} >${fout}389 cp ${file_html} ${fout} 389 390 done 390 391 echo "iii : you can see log file in ${log}" … … 528 529 fi 529 530 #------------------------------------------------------------------ 531 if [ ${dodocdownload} -eq 1 ] 532 then 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_${$}/ 558 fi 559 #------------------------------------------------------------------ 560 #------------------------------------------------------------------ 530 561 # 531 562 [ -f job_src_$$ ] && rm -f job_src_$$
Note: See TracChangeset
for help on using the changeset viewer.