Changeset 163 for trunk/SRC/Documentation/xmldoc/savesaxo.sh
- Timestamp:
- 08/29/06 14:59:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/xmldoc/savesaxo.sh
r159 r163 3 3 # update : 4 4 # $Id$ 5 # snlod/fplod 2006-08-25T08:30:36Z electre.locean-ipsl.upmc.fr (Darwin) 6 # add for idldoc assistant 5 7 # fplod 2006-08-17T09:19:06Z aedon.locean-ipsl.upmc.fr (Darwin) 6 8 # add transformation after idldoc to force non-proportionnal font 7 9 # on bloc delimited by 8 # ;<fixe>9 # ;</fixe>10 # <fixe> 11 # </fixe> 10 12 # in .pro files (with modification of css) 11 13 # !! do not replace \ by \\ inside this block … … 56 58 set -u 57 59 # 58 docompileall= 160 docompileall=0 59 61 dohtml=0 60 62 dooldtest=0 61 63 doidlwavedoc=0 62 doidldoc_html= 063 doidldoc_assistant= 064 doidldoc_html=1 65 doidldoc_assistant=1 64 66 doTARsrc=0 65 67 doTARdata=0 … … 198 200 idldoc,root="../../",title="SAXO Documentation", $ 199 201 LOG_FILE="${log}", $ 200 output="${output}", /preformat, /embed 202 output="${output}", $ 203 overview="../../overview", /statistics, /preformat, /embed 201 204 exit 202 205 EOF … … 244 247 -e 's@<div class="value">@<div class="preformat">@' \ 245 248 -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 246 -e 's@^ ;<fixe>@<p class="preformat">@' \247 -e 's@^ ;</fixe>@</p>@' \249 -e 's@^ <fixe>@<p class="preformat">@' \ 250 -e 's@^ </fixe>@</p>@' \ 248 251 -e '/Main styles/r /tmp/css_modification' \ 249 252 ${file_html} > ${file_html}_modify … … 263 266 echo "iii : you can see log file in ${log}" 264 267 echo "iii : and look ${output}/idldoc-warnings.html#undoc" 265 exit 1266 268 fi 267 269 #------------------------------------------------------------------ … … 269 271 then 270 272 # 271 echo "eee : pas encore ecrit" 272 exit 1 273 # build a idl file to launch idldoc 274 output=../idldoc_assistant_output/ 275 log="/tmp/idldocassistant_${$}.log" 276 pro="/tmp/idldocassistant_${$}.pro" 277 cat <<EOF > ${pro} 278 !path = expand_path('+' + '../idldoc/') 279 print,!path 280 idldoc,root="../../",title="SAXO Documentation Assistant", $ 281 LOG_FILE="${log}", $ 282 output="${output}", overview='../../overview', /statistics, /preformat, /embed, /assistant 283 exit 284 EOF 285 # launch idl with the file built above 286 IDL_STARTUP=${pro};${IDL_DIR}/bin/idl 287 /bin/rm ${pro} 288 # In order to do not have to many revision in svn, we modify some 289 # lines produced by idldoc : 290 # examples : 291 # <!-- Generated by IDLdoc 2.0 on Wed Jun 7 10:25:28 2006 --> 292 # will be replaced by 293 # <!-- Generated by IDLdoc 2.0 --> 294 # <div id="tagline">Produced by IDLdoc 2.0 on Wed Jun 7 10:54:37 2006.</div 295 # will be replaced by 296 # <div id="tagline">Produced by IDLdoc 2.0</div> 297 # <h2>Produced on Wed Jun 7 10:23:13 2006</h2> 298 # will be delete 299 # other lines will be deleted because the time is the time of checkout not 300 # the time of revision. 301 # the sequence of lines 302 #<dl> 303 # <dt>Last modification:</dt> 304 # <dd>Fri Jun 2 11:46:24 2006</dd> 305 # </dl> 306 # should also be removed ++ je ne sais pas dire en sed la ligne 307 # suivant l'occurence de Last modification 308 # replace *_param_* in href attributes because anchors are badly written 309 # with _keyword_ 310 #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global 311 # DON'T add here (in assistant idldoc output) ?format=raw to link because 312 # ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path # won't work 313 list_html=$(find ${output} -name "*.html") 314 for file_html in ${list_html} 315 do 316 sed \ 317 -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \ 318 -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/div>\)/\1\3/" \ 319 -e "/<h2>Produced on/d" \ 320 -e "/Last modification:/d" \ 321 -e "/<dd>... ... .* ..:..:.. ....<\/dd>/d" \ 322 -e '/href/s@_param_@_keyword_@g' \ 323 -e 's@<div class="value">@<div class="preformat">@' \ 324 -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 325 -e 's@^ <fixe>@<pre style="font-family: Courier;">@' \ 326 -e 's@^ </fixe>@</pre>@' \ 327 ${file_html} > ${file_html}_modify 328 mv ${file_html}_modify ${file_html} 329 done 330 echo "iii : you can see log file in ${log}" 331 echo "iii : and look ${output}/idldoc-warnings.html#undoc" 273 332 fi 274 333 #------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.