Changeset 430 for trunk/SRC/Documentation
- Timestamp:
- 04/15/10 15:13:55 (14 years ago)
- Location:
- trunk/SRC/Documentation/xmldoc
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/xmldoc/docompileall.sh
r420 r430 102 102 system=$(uname) 103 103 case "${system}" in 104 AIX|IRIX64)105 echo " www : no specific posix checking"106 ;;107 *)108 set -o posix109 ;;104 AIX|IRIX64) 105 echo " www : no specific posix checking" 106 ;; 107 *) 108 set -o posix 109 ;; 110 110 esac 111 111 command=$(basename ${0}) … … 119 119 if [ ${#} -lt ${minargcount} ] 120 120 then 121 echo "eee : not enought arguments (${#} vs ${minargcount})"122 echo "${usage}"123 exit 1121 echo "eee : not enought arguments (${#} vs ${minargcount})" 122 echo "${usage}" 123 exit 1 124 124 fi 125 125 # … … 134 134 while [ ! -z "${1}" ] 135 135 do 136 case ${1} in137 -i)138 indir=${2}139 shift140 ;;141 -idl_dir)142 idl_dir=${2}143 shift144 ;;145 -h)146 echo "${usage}"147 exit 0148 ;;149 *) # other choice150 echo "${usage}"151 exit 1152 ;;153 esac154 shift # next flag136 case ${1} in 137 -i) 138 indir=${2} 139 shift 140 ;; 141 -idl_dir) 142 idl_dir=${2} 143 shift 144 ;; 145 -h) 146 echo "${usage}" 147 exit 0 148 ;; 149 *) # other choice 150 echo "${usage}" 151 exit 1 152 ;; 153 esac 154 shift # next flag 155 155 done 156 156 # … … 160 160 if [ ! -d ${indir} ] 161 161 then 162 echo "eee : ${indir} not found"163 exit 1162 echo "eee : ${indir} not found" 163 exit 1 164 164 fi 165 165 # … … 178 178 if [ "${indir}" != "${SAXO_DIR}/SRC/" ] 179 179 then 180 cat <<EOF >> /tmp/docompileall${$}.pro180 cat <<EOF >> /tmp/docompileall${$}.pro 181 181 !path = expand_path('+' + '${indir}') + ':' + !path 182 182 EOF … … 208 208 if [ "${list_files}" = "" ] 209 209 then 210 echo "eee : no . pro files found under ${indir}"211 exit 1210 echo "eee : no . pro files found under ${indir}" 211 exit 1 212 212 fi 213 213 # … … 216 216 for i in ${list_files} 217 217 do 218 # does it contains pro or function ?219 egrep -iq '^ * *(pro|function)' ${i}220 if [ ${?} -eq 0 ]221 then222 echo "print, '$( basename ${i} .pro ) :'" >> /tmp/docompileall${$}.pro223 echo "resolve_all, resolve_either = '$( basename ${i} .pro )', skip_routines = ['xxx2ps','trends', 'label_gmt', 'report']" >> /tmp/docompileall${$}.pro224 fi218 # does it contains pro or function ? 219 egrep -iq '^ * *(pro|function)' ${i} 220 if [ ${?} -eq 0 ] 221 then 222 echo "print, '$( basename ${i} .pro ) :'" >> /tmp/docompileall${$}.pro 223 echo "resolve_all, resolve_either = '$( basename ${i} .pro )', skip_routines = ['xxx2ps','trends', 'label_gmt', 'report']" >> /tmp/docompileall${$}.pro 224 fi 225 225 done 226 226 echo "exit" >> /tmp/docompileall${$}.pro … … 233 233 if [ ${?} -ne 0 ] 234 234 then 235 echo "all files are OK"236 # clean237 rm -f /tmp/docompileallerr_${$} /tmp/docompileall${$}.pro235 echo "all files are OK" 236 # clean 237 rm -f /tmp/docompileallerr_${$} /tmp/docompileall${$}.pro 238 238 else 239 grep "Compilation error(s)" /tmp/docompileallerr_${$} 240 echo "eee : see /tmp/docompileallerr_${$}" 241 more /tmp/docompileallerr_${$} 242 exit 1 243 fi 244 239 grep "Compilation error(s)" /tmp/docompileallerr_${$} 240 echo "eee : see /tmp/docompileallerr_${$}" 241 more /tmp/docompileallerr_${$} 242 exit 1 243 fi 245 244 # end 246 245 exit 0 -
trunk/SRC/Documentation/xmldoc/doidldoc.sh
r420 r430 194 194 system=$(uname) 195 195 case "${system}" in 196 AIX|IRIX64)197 echo " www : no specific posix checking"198 ;;199 *)200 set -o posix201 ;;196 AIX|IRIX64) 197 echo " www : no specific posix checking" 198 ;; 199 *) 200 set -o posix 201 ;; 202 202 esac 203 203 # … … 224 224 if [ ${#} -lt ${minargcount} ] 225 225 then 226 echo "eee : not enought arguments"227 echo "${usage}"228 exit 1226 echo "eee : not enought arguments" 227 echo "${usage}" 228 exit 1 229 229 fi 230 230 # 231 231 while [ ! -z "${1}" ] # ++ pb bash 232 232 do 233 case ${1} in234 -i)235 indir=${2}236 shift237 case ${indir} in238 .)239 indir=$(pwd)240 ;;241 esac242 ;;243 -t)244 title=${2}245 shift246 ;;247 -o)248 outdir=${2}249 shift250 ;;251 -idldoc_dir)252 idldoc_dir=${2}253 shift254 ;;255 -idldoc_version)256 idldoc_version=${2}257 shift258 ;;259 -idl_dir)260 idl_dir=${2}261 shift262 ;;263 -e)264 element[${ielement}]=${2}265 shift266 ;;267 -r)268 refhtml[${ielement}]=${2}269 shift270 ielement=$(( ${ielement} + 1))271 ;;272 -h)273 echo "${usage}"274 exit 0275 ;;276 *) # other choice277 echo "${usage}"278 exit 1279 ;;280 esac281 shift # next flag233 case ${1} in 234 -i) 235 indir=${2} 236 shift 237 case ${indir} in 238 .) 239 indir=$(pwd) 240 ;; 241 esac 242 ;; 243 -t) 244 title=${2} 245 shift 246 ;; 247 -o) 248 outdir=${2} 249 shift 250 ;; 251 -idldoc_dir) 252 idldoc_dir=${2} 253 shift 254 ;; 255 -idldoc_version) 256 idldoc_version=${2} 257 shift 258 ;; 259 -idl_dir) 260 idl_dir=${2} 261 shift 262 ;; 263 -e) 264 element[${ielement}]=${2} 265 shift 266 ;; 267 -r) 268 refhtml[${ielement}]=${2} 269 shift 270 ielement=$(( ${ielement} + 1)) 271 ;; 272 -h) 273 echo "${usage}" 274 exit 0 275 ;; 276 *) # other choice 277 echo "${usage}" 278 exit 1 279 ;; 280 esac 281 shift # next flag 282 282 done 283 283 # … … 287 287 if [ ! -d ${outdir} ] 288 288 then 289 echo "eee : outdir (${outdir}) not found"290 exit 1289 echo "eee : outdir (${outdir}) not found" 290 exit 1 291 291 fi 292 292 # check for permission access on outdir 293 293 if [ ! -x ${outdir} ] 294 294 then 295 echo " eee : ${outdir} not reachable"296 exit 1297 295 echo " eee : ${outdir} not reachable" 296 exit 1 297 fi 298 298 # 299 299 # check for write permission on outdir 300 300 if [ ! -w ${outdir} ] 301 301 then 302 echo " eee : ${outdir} not writable"303 exit 1302 echo " eee : ${outdir} not writable" 303 exit 1 304 304 fi 305 305 # … … 314 314 cd ${idldoc_dir} 315 315 case ${idldoc_version} in 316 3.1.1)317 cat << EOF > ${pro}316 3.1.1) 317 cat << EOF > ${pro} 318 318 !path = expand_path('+' + '${idldoc_dir}') 319 319 idldoc,root="${indir}",title="${title}", $ … … 324 324 exit 325 325 EOF 326 ;;327 2.0)328 cat << EOF > ${pro}326 ;; 327 2.0) 328 cat << EOF > ${pro} 329 329 !path = expand_path('+' + '${idldoc_dir}') 330 330 idldoc,root="${indir}",title="${title}", $ … … 334 334 exit 335 335 EOF 336 ;;337 *)338 echo "eee : idldoc version not implemented ${idldoc_version}"339 exit 1340 ;;336 ;; 337 *) 338 echo "eee : idldoc version not implemented ${idldoc_version}" 339 exit 1 340 ;; 341 341 esac 342 342 # … … 348 348 if [ ${transform} -eq 1 ] 349 349 then 350 # In order to do not have to many revision in svn, we modify some351 # lines produced by idldoc :352 # - add Source link in each html file corresponding to a .pro file353 # example :354 # <td>Source</td>355 # will be replaced by356 # <td><a href="../../Calendar/caldat.pro" title="Source code of a file">Source</a></td>357 #358 # - remove version, date and time of idldoc production359 # ++ je ne sais pas dire en sed la ligne suivant l'occurence de Modification date360 #361 # count of directory levels in output362 # this count will be use to format relative path later363 nblev1=$(echo ${outputtmp} | sed -e "s@/\$@@" |awk -F "/" '{print NF}')364 #365 list_html_pro=$(find ${outputtmp} -name "*.html" -exec grep -l "<title>.*\.pro" {} \;)366 for file_html in ${list_html_pro}367 do368 # build the .pro file name369 bfile=$(basename ${file_html} .html)370 # retrieve the path of html file relative to output.371 # This path will be used in "Source" link.372 nblev2=$(dirname ${file_html} | sed -e "s@/\$@@" | awk -F "/" '{print NF}')373 difflev=$((${nblev2} - ${nblev1}))374 if [ ${difflev} -ge 2 ]375 then376 ilev=1377 reloutput_html=".."378 while [ ${ilev} -le ${difflev} ]379 do380 reloutput_html="${reloutput_html}/.."381 ilev=$(( ${ilev} + 1 ))382 done383 relpath_html=$(dirname ${file_html} | \384 sed \385 -e "s@${outputtmp}@${reloutput_html}@" \386 -e "s@\$@/@")387 # echo "relpath ${relpath_html})"388 else389 relpath_html="./"390 fi391 # echo "relpath ${relpath_html}/${bfile}"392 sed \393 -e "s@<td >Source<\/td>@<td><a href=\"${relpath_html}/${bfile}.pro\" title=\"Source code of a file\">Source<\/a><\/td>@" \394 ${file_html} > ${file_html}_modify395 mv ${file_html}_modify ${file_html}396 done397 list_html=$(find ${outputtmp} -name "*.html")398 for file_html in ${list_html}399 do400 sed \401 -e "s/\(Generated by IDLdoc\)\( .* on .*\)\( -->\)/\1\3/" \402 -e "s/\(Produced by IDLdoc\)\( .* on .*\)\(<\/div>\)/\1\3/" \403 -e "/<h2>Produced on/d" \404 -e "/Modifcation:/d" \405 -e "/<td>... ... .* ..:..:.. ....<\/td>/d" \406 -e 's@<div class="value">@<div class="preformat">@' \407 -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \408 -e 's@^ <fixe>@<pre>@' \409 -e 's@^ </fixe>@</pre>@' \410 -e 's@xhtml-transitional@xhtml1-transitional@' \411 ${file_html} > ${file_html}_modify412 mv ${file_html}_modify ${file_html}413 done414 # suppress ".html" in idldoc-index*.html in lines like415 # a parameter from the routine ./ReadWrite/idl-NetCDF/ncdf_read.html416 list_html=$(find ${outputtmp} -name "idldoc-index*.html")417 for file_html in ${list_html}418 do419 sed \420 -e "s/\(a parameter from the routine \)\(.*\)\(.html\)/\1\2/" \421 ${file_html} > ${file_html}_modify422 mv ${file_html}_modify ${file_html}423 done424 nelement=${#element[@]}425 ielement=1426 while [ ${ielement} -le ${nelement} ]427 do428 # replace <element>ginette</element> by a sequence like429 # <a href="./ginette.html">ginette</a>430 ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} \431 -r ${refhtml[${ielement}]} \432 -e ${element[${ielement}]}433 status=${?}434 if [ ${status} -ne 0 ]435 then436 echo "eee : pb during pro2href.sh for ${element}...</${element}>"437 exit 1438 fi439 ielement=$(( ${ielement} + 1))440 done350 # In order to do not have to many revision in svn, we modify some 351 # lines produced by idldoc : 352 # - add Source link in each html file corresponding to a .pro file 353 # example : 354 # <td>Source</td> 355 # will be replaced by 356 # <td><a href="../../Calendar/caldat.pro" title="Source code of a file">Source</a></td> 357 # 358 # - remove version, date and time of idldoc production 359 # ++ je ne sais pas dire en sed la ligne suivant l'occurence de Modification date 360 # 361 # count of directory levels in output 362 # this count will be use to format relative path later 363 nblev1=$(echo ${outputtmp} | sed -e "s@/\$@@" |awk -F "/" '{print NF}') 364 # 365 list_html_pro=$(find ${outputtmp} -name "*.html" -exec grep -l "<title>.*\.pro" {} \;) 366 for file_html in ${list_html_pro} 367 do 368 # build the .pro file name 369 bfile=$(basename ${file_html} .html) 370 # retrieve the path of html file relative to output. 371 # This path will be used in "Source" link. 372 nblev2=$(dirname ${file_html} | sed -e "s@/\$@@" | awk -F "/" '{print NF}') 373 difflev=$((${nblev2} - ${nblev1})) 374 if [ ${difflev} -ge 2 ] 375 then 376 ilev=1 377 reloutput_html=".." 378 while [ ${ilev} -le ${difflev} ] 379 do 380 reloutput_html="${reloutput_html}/.." 381 ilev=$(( ${ilev} + 1 )) 382 done 383 relpath_html=$(dirname ${file_html} | \ 384 sed \ 385 -e "s@${outputtmp}@${reloutput_html}@" \ 386 -e "s@\$@/@") 387 # echo "relpath ${relpath_html})" 388 else 389 relpath_html="./" 390 fi 391 # echo "relpath ${relpath_html}/${bfile}" 392 sed \ 393 -e "s@<td >Source<\/td>@<td><a href=\"${relpath_html}/${bfile}.pro\" title=\"Source code of a file\">Source<\/a><\/td>@" \ 394 ${file_html} > ${file_html}_modify 395 mv ${file_html}_modify ${file_html} 396 done 397 list_html=$(find ${outputtmp} -name "*.html") 398 for file_html in ${list_html} 399 do 400 sed \ 401 -e "s/\(Generated by IDLdoc\)\( .* on .*\)\( -->\)/\1\3/" \ 402 -e "s/\(Produced by IDLdoc\)\( .* on .*\)\(<\/div>\)/\1\3/" \ 403 -e "/<h2>Produced on/d" \ 404 -e "/Modifcation:/d" \ 405 -e "/<td>... ... .* ..:..:.. ....<\/td>/d" \ 406 -e 's@<div class="value">@<div class="preformat">@' \ 407 -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 408 -e 's@^ <fixe>@<pre>@' \ 409 -e 's@^ </fixe>@</pre>@' \ 410 -e 's@xhtml-transitional@xhtml1-transitional@' \ 411 ${file_html} > ${file_html}_modify 412 mv ${file_html}_modify ${file_html} 413 done 414 # suppress ".html" in idldoc-index*.html in lines like 415 # a parameter from the routine ./ReadWrite/idl-NetCDF/ncdf_read.html 416 list_html=$(find ${outputtmp} -name "idldoc-index*.html") 417 for file_html in ${list_html} 418 do 419 sed \ 420 -e "s/\(a parameter from the routine \)\(.*\)\(.html\)/\1\2/" \ 421 ${file_html} > ${file_html}_modify 422 mv ${file_html}_modify ${file_html} 423 done 424 nelement=${#element[@]} 425 ielement=1 426 while [ ${ielement} -le ${nelement} ] 427 do 428 # replace <element>ginette</element> by a sequence like 429 # <a href="./ginette.html">ginette</a> 430 ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} \ 431 -r ${refhtml[${ielement}]} \ 432 -e ${element[${ielement}]} 433 status=${?} 434 if [ ${status} -ne 0 ] 435 then 436 echo "eee : pb during pro2href.sh for ${element}...</${element}>" 437 exit 1 438 fi 439 ielement=$(( ${ielement} + 1)) 440 done 441 441 fi # end of transform = 1 442 442 # … … 444 444 if [ ${assistant} -eq 1 ] 445 445 then 446 # build a IDL file to launch idldoc447 idldoc_log="/tmp/idldocassistant_${$}.log"448 pro="/tmp/idldocassistant_${$}.pro"449 case ${idldoc_version} in450 3.1.1)451 echo "iii : assistant is not feasable with idldoc > 2.0"452 ;;453 2.0)454 cat << EOF > ${pro}446 # build a IDL file to launch idldoc 447 idldoc_log="/tmp/idldocassistant_${$}.log" 448 pro="/tmp/idldocassistant_${$}.pro" 449 case ${idldoc_version} in 450 3.1.1) 451 echo "iii : assistant is not feasable with idldoc > 2.0" 452 ;; 453 2.0) 454 cat << EOF > ${pro} 455 455 !path = expand_path('+' + '${idldoc_dir}') 456 456 idldoc,root="${indir}",title="${title}", $ … … 459 459 exit 460 460 EOF 461 ;;462 *)463 echo "eee : idldoc version not implemented ${idldoc_version}"464 exit 1465 ;;466 esac467 # launch IDL with the file built above468 IDL_STARTUP=${pro};${idl_dir}/bin/idl469 /bin/rm ${pro}470 # In order to do not have to many revision in svn, we modify some471 # lines produced by idldoc :472 # examples :473 # <!-- Generated by IDLdoc 2.0 on Wed Jun 7 10:25:28 2006 -->474 # will be replaced by475 # <!-- Generated by IDLdoc 2.0 -->476 # <p><font color="gray" size="-3"> Produced by IDLdoc 2.0 on Wed Sep 13 16:32:10 2006.</font></p>477 # will be replaced by478 # <p><font color="gray" size="-3"> Produced by IDLdoc 2.0</font></p>479 # <h2>Produced on Wed Jun 7 10:23:13 2006</h2>480 # will be delete481 # other lines will be deleted because the time is the time of checkout not482 # the time of revision.483 # the sequence of lines484 #<dl>485 # <dt>Last modification:</dt>486 # <dd>Fri Jun 2 11:46:24 2006</dd>487 # </dl>488 # should also be removed ++ je ne sais pas dire en sed la ligne489 # suivant l'occurence de Last modification490 # replace *_param_* in href attributes because anchors are badly written491 # with _keyword_492 #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global493 # ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path # won't work494 # encaspulate example content in <pre> </pre> in idldoc assistant outputs495 # Examples section is supposed to start with <h3>Examples</h3>496 # and end is before <h3>Version history</h3>497 list_html=$(find ${outputtmp} -name "*.html")498 for file_html in ${list_html}499 do500 sed \501 -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \502 -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/font>\)/\1\3/" \503 -e "/<h2>Produced on/d" \504 -e "/Last modification:/d" \505 -e "/<dd>... ... .* ..:..:.. ....<\/dd>/d" \506 -e '/href/s@_param_@_keyword_@g' \507 -e 's@<div class="value">@<div class="preformat">@' \508 -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \509 -e 's@^ <fixe>@<pre>@' \510 -e 's@^ </fixe>@</pre>@' \511 -e "s@<h3>Examples</h3>@<h3>Examples</h3><pre>@" \512 -e "s@<h3>Version history</h3>@</pre><h3>Version history</h3>@" \513 ${file_html} > ${file_html}_modify514 mv ${file_html}_modify ${file_html}515 done516 #517 # replace <pro>ginette</pro> by a sequence like518 # <a href="./ginette.html">ginette</a>519 ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${outputtmp} -e pro520 status=${?}521 if [ ${status} -ne 0 ]522 then523 echo "eee : pb during pro2href.sh for <pro>...</pro>"524 exit 1525 fi526 # replace <proidl>ginette</proidl> by a sequence like527 # <a href="./ginette.html">ginette</a>528 ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${idl_dir}/help/online_help -e proidl529 status=${?}530 if [ ${status} -ne 0 ]531 then532 echo "eee : pb during pro2href.sh for <proidl>...</proidl>"533 exit 1534 fi535 # add the directory-overview.html from dir-files.html in idldoc_html_output536 list_html=$(find ../idldoc_html_output -name dir-files.html)537 for file_html in ${list_html}538 do539 fout=../idldoc_assistant_output/${file_html#../idldoc_html_output/*}540 fout=${fout%/*}/directory-overview.html541 cp ${file_html} ${fout}542 done543 # copy listings.css (needed by directory-overview.html files)544 cp ../idldoc/resource/listings.css ${outputtmp}545 # add an id in idldoc-lib.adp546 cat << EOF > /tmp/adp_modification461 ;; 462 *) 463 echo "eee : idldoc version not implemented ${idldoc_version}" 464 exit 1 465 ;; 466 esac 467 # launch IDL with the file built above 468 IDL_STARTUP=${pro};${idl_dir}/bin/idl 469 /bin/rm ${pro} 470 # In order to do not have to many revision in svn, we modify some 471 # lines produced by idldoc : 472 # examples : 473 # <!-- Generated by IDLdoc 2.0 on Wed Jun 7 10:25:28 2006 --> 474 # will be replaced by 475 # <!-- Generated by IDLdoc 2.0 --> 476 # <p><font color="gray" size="-3"> Produced by IDLdoc 2.0 on Wed Sep 13 16:32:10 2006.</font></p> 477 # will be replaced by 478 # <p><font color="gray" size="-3"> Produced by IDLdoc 2.0</font></p> 479 # <h2>Produced on Wed Jun 7 10:23:13 2006</h2> 480 # will be delete 481 # other lines will be deleted because the time is the time of checkout not 482 # the time of revision. 483 # the sequence of lines 484 #<dl> 485 # <dt>Last modification:</dt> 486 # <dd>Fri Jun 2 11:46:24 2006</dd> 487 # </dl> 488 # should also be removed ++ je ne sais pas dire en sed la ligne 489 # suivant l'occurence de Last modification 490 # replace *_param_* in href attributes because anchors are badly written 491 # with _keyword_ 492 #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global 493 # ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path # won't work 494 # encaspulate example content in <pre> </pre> in idldoc assistant outputs 495 # Examples section is supposed to start with <h3>Examples</h3> 496 # and end is before <h3>Version history</h3> 497 list_html=$(find ${outputtmp} -name "*.html") 498 for file_html in ${list_html} 499 do 500 sed \ 501 -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \ 502 -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/font>\)/\1\3/" \ 503 -e "/<h2>Produced on/d" \ 504 -e "/Last modification:/d" \ 505 -e "/<dd>... ... .* ..:..:.. ....<\/dd>/d" \ 506 -e '/href/s@_param_@_keyword_@g' \ 507 -e 's@<div class="value">@<div class="preformat">@' \ 508 -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 509 -e 's@^ <fixe>@<pre>@' \ 510 -e 's@^ </fixe>@</pre>@' \ 511 -e "s@<h3>Examples</h3>@<h3>Examples</h3><pre>@" \ 512 -e "s@<h3>Version history</h3>@</pre><h3>Version history</h3>@" \ 513 ${file_html} > ${file_html}_modify 514 mv ${file_html}_modify ${file_html} 515 done 516 # 517 # replace <pro>ginette</pro> by a sequence like 518 # <a href="./ginette.html">ginette</a> 519 ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${outputtmp} -e pro 520 status=${?} 521 if [ ${status} -ne 0 ] 522 then 523 echo "eee : pb during pro2href.sh for <pro>...</pro>" 524 exit 1 525 fi 526 # replace <proidl>ginette</proidl> by a sequence like 527 # <a href="./ginette.html">ginette</a> 528 ${SAXO_DIR}/SRC/Documentation/xmldoc/pro2href.sh -i ${outputtmp} -r ${idl_dir}/help/online_help -e proidl 529 status=${?} 530 if [ ${status} -ne 0 ] 531 then 532 echo "eee : pb during pro2href.sh for <proidl>...</proidl>" 533 exit 1 534 fi 535 # add the directory-overview.html from dir-files.html in idldoc_html_output 536 list_html=$(find ../idldoc_html_output -name dir-files.html) 537 for file_html in ${list_html} 538 do 539 fout=../idldoc_assistant_output/${file_html#../idldoc_html_output/*} 540 fout=${fout%/*}/directory-overview.html 541 cp ${file_html} ${fout} 542 done 543 # copy listings.css (needed by directory-overview.html files) 544 cp ../idldoc/resource/listings.css ${outputtmp} 545 # add an id in idldoc-lib.adp 546 cat << EOF > /tmp/adp_modification 547 547 <!-- \$Id\$ --> 548 548 EOF 549 sed -e "/<\/profile>/r /tmp/adp_modification" \550 ../idldoc_assistant_output/idldoc-lib.adp > \551 ../idldoc_assistant_output/idldoc-lib.adp_${$}552 mv ../idldoc_assistant_output/idldoc-lib.adp_${$} \553 ../idldoc_assistant_output/idldoc-lib.adp554 rm /tmp/adp_modification555 # check that the number of existing html files for each .pro file is 2!556 for i in $( find ../.. -name "*.pro" )557 do558 nhtml=$( find ../.. -name $( basename ${i} .pro ).html | wc -l )559 if [ ${nhtml} -ne 2 ]560 561 562 563 564 fi565 done566 #549 sed -e "/<\/profile>/r /tmp/adp_modification" \ 550 ../idldoc_assistant_output/idldoc-lib.adp > \ 551 ../idldoc_assistant_output/idldoc-lib.adp_${$} 552 mv ../idldoc_assistant_output/idldoc-lib.adp_${$} \ 553 ../idldoc_assistant_output/idldoc-lib.adp 554 rm /tmp/adp_modification 555 # check that the number of existing html files for each .pro file is 2! 556 for i in $( find ../.. -name "*.pro" ) 557 do 558 nhtml=$( find ../.. -name $( basename ${i} .pro ).html | wc -l ) 559 if [ ${nhtml} -ne 2 ] 560 then 561 echo "ERROR there is no 2 $( basename ${i} .pro ).html files" 562 find ../.. -name $( basename ${i} .pro ).html 563 echo 564 fi 565 done 566 # 567 567 fi 568 568 # copy of temporary outputs on final directory -
trunk/SRC/Documentation/xmldoc/firststeps_pre.sh
r410 r430 24 24 for i in tst_plt_lev_[0-9][0-9].png 25 25 do 26 figsplt_lev="${figsplt_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"26 figsplt_lev="${figsplt_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 27 27 done 28 28 figspltz_lev="" 29 29 for i in tst_pltz_lev_[0-9][0-9].png 30 30 do 31 figspltz_lev="${figspltz_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"31 figspltz_lev="${figspltz_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 32 32 done 33 33 figspltt_lev="" 34 34 for i in tst_pltt_lev_[0-9][0-9].png 35 35 do 36 figspltt_lev="${figspltt_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"36 figspltt_lev="${figspltt_lev} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 37 37 done 38 38 # … … 40 40 for i in tst_plt_orca2_[0-9][0-9].png 41 41 do 42 figsplt_orca2="${figsplt_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"42 figsplt_orca2="${figsplt_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 43 43 done 44 44 figspltz_orca2="" 45 45 for i in tst_pltz_orca2_[0-9][0-9].png 46 46 do 47 figspltz_orca2="${figspltz_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"47 figspltz_orca2="${figspltz_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 48 48 done 49 49 figspltt_orca2="" 50 50 for i in tst_pltt_orca2_[0-9][0-9].png 51 51 do 52 figspltt_orca2="${figspltt_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"52 figspltt_orca2="${figspltt_orca2} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 53 53 done 54 54 # … … 56 56 for i in tst_plt_orca05_[0-9][0-9].png 57 57 do 58 figsplt_orca05="${figsplt_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"58 figsplt_orca05="${figsplt_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 59 59 done 60 60 figspltz_orca05="" 61 61 for i in tst_pltz_orca05_[0-9][0-9].png 62 62 do 63 figspltz_orca05="${figspltz_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"63 figspltz_orca05="${figspltz_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 64 64 done 65 65 figspltt_orca05="" 66 66 for i in tst_pltt_orca05_[0-9][0-9].png 67 67 do 68 figspltt_orca05="${figspltt_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"68 figspltt_orca05="${figspltt_orca05} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 69 69 done 70 70 ## … … 73 73 for i in tst_plt_lev_stride_[0-9][0-9].png 74 74 do 75 figsplt_lev_stride="${figsplt_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"75 figsplt_lev_stride="${figsplt_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 76 76 done 77 77 figspltz_lev_stride="" 78 78 for i in tst_pltz_lev_stride_[0-9][0-9].png 79 79 do 80 figspltz_lev_stride="${figspltz_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"80 figspltz_lev_stride="${figspltz_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 81 81 done 82 82 figspltt_lev_stride="" 83 83 for i in tst_pltt_lev_stride_[0-9][0-9].png 84 84 do 85 figspltt_lev_stride="${figspltt_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"85 figspltt_lev_stride="${figspltt_lev_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 86 86 done 87 87 # … … 89 89 for i in tst_plt_orca2_stride_[0-9][0-9].png 90 90 do 91 figsplt_orca2_stride="${figsplt_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"91 figsplt_orca2_stride="${figsplt_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 92 92 done 93 93 figspltz_orca2_stride="" 94 94 for i in tst_pltz_orca2_stride_[0-9][0-9].png 95 95 do 96 figspltz_orca2_stride="${figspltz_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"96 figspltz_orca2_stride="${figspltz_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 97 97 done 98 98 figspltt_orca2_stride="" 99 99 for i in tst_pltt_orca2_stride_[0-9][0-9].png 100 100 do 101 figspltt_orca2_stride="${figspltt_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"101 figspltt_orca2_stride="${figspltt_orca2_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 102 102 done 103 103 # … … 105 105 for i in tst_plt_orca05_stride_[0-9][0-9].png 106 106 do 107 figsplt_orca05_stride="${figsplt_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"107 figsplt_orca05_stride="${figsplt_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 108 108 done 109 109 figspltz_orca05_stride="" 110 110 for i in tst_pltz_orca05_stride_[0-9][0-9].png 111 111 do 112 figspltz_orca05_stride="${figspltz_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"112 figspltz_orca05_stride="${figspltz_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 113 113 done 114 114 figspltt_orca05_stride="" 115 115 for i in tst_pltt_orca05_stride_[0-9][0-9].png 116 116 do 117 figspltt_orca05_stride="${figspltt_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>"117 figspltt_orca05_stride="${figspltt_orca05_stride} \<link xl:href=\"figpng\/${i}\"\>\&showfig\;\<\/link\>" 118 118 done 119 119 ## … … 122 122 rm firststeps_sed.xml 2> /dev/null 123 123 sed -e s/"\&figsplt_lev\;"/"${figsplt_lev}"/g \ 124 -e s/"\&figsplt_orca2\;"/"${figsplt_orca2}"/g \125 -e s/"\&figsplt_orca05\;"/"${figsplt_orca05}"/g \126 -e s/"\&figspltz_lev\;"/"${figspltz_lev}"/g \127 -e s/"\&figspltz_orca2\;"/"${figspltz_orca2}"/g \128 -e s/"\&figspltz_orca05\;"/"${figspltz_orca05}"/g \129 -e s/"\&figspltt_lev\;"/"${figspltt_lev}"/g \130 -e s/"\&figspltt_orca2\;"/"${figspltt_orca2}"/g \131 -e s/"\&figspltt_orca05\;"/"${figspltt_orca05}"/g \132 -e s/"\&figsplt_lev_stride\;"/"${figsplt_lev_stride}"/g \133 -e s/"\&figsplt_orca2_stride\;"/"${figsplt_orca2_stride}"/g \134 -e s/"\&figsplt_orca05_stride\;"/"${figsplt_orca05_stride}"/g \135 -e s/"\&figspltz_lev_stride\;"/"${figspltz_lev_stride}"/g \136 -e s/"\&figspltz_orca2_stride\;"/"${figspltz_orca2_stride}"/g \137 -e s/"\&figspltz_orca05_stride\;"/"${figspltz_orca05_stride}"/g \138 -e s/"\&figspltt_lev_stride\;"/"${figspltt_lev_stride}"/g \139 -e s/"\&figspltt_orca2_stride\;"/"${figspltt_orca2_stride}"/g \140 -e s/"\&figspltt_orca05_stride\;"/"${figspltt_orca05_stride}"/g \141 firststeps.xml > firststeps_sed.xml124 -e s/"\&figsplt_orca2\;"/"${figsplt_orca2}"/g \ 125 -e s/"\&figsplt_orca05\;"/"${figsplt_orca05}"/g \ 126 -e s/"\&figspltz_lev\;"/"${figspltz_lev}"/g \ 127 -e s/"\&figspltz_orca2\;"/"${figspltz_orca2}"/g \ 128 -e s/"\&figspltz_orca05\;"/"${figspltz_orca05}"/g \ 129 -e s/"\&figspltt_lev\;"/"${figspltt_lev}"/g \ 130 -e s/"\&figspltt_orca2\;"/"${figspltt_orca2}"/g \ 131 -e s/"\&figspltt_orca05\;"/"${figspltt_orca05}"/g \ 132 -e s/"\&figsplt_lev_stride\;"/"${figsplt_lev_stride}"/g \ 133 -e s/"\&figsplt_orca2_stride\;"/"${figsplt_orca2_stride}"/g \ 134 -e s/"\&figsplt_orca05_stride\;"/"${figsplt_orca05_stride}"/g \ 135 -e s/"\&figspltz_lev_stride\;"/"${figspltz_lev_stride}"/g \ 136 -e s/"\&figspltz_orca2_stride\;"/"${figspltz_orca2_stride}"/g \ 137 -e s/"\&figspltz_orca05_stride\;"/"${figspltz_orca05_stride}"/g \ 138 -e s/"\&figspltt_lev_stride\;"/"${figspltt_lev_stride}"/g \ 139 -e s/"\&figspltt_orca2_stride\;"/"${figspltt_orca2_stride}"/g \ 140 -e s/"\&figspltt_orca05_stride\;"/"${figspltt_orca05_stride}"/g \ 141 firststeps.xml > firststeps_sed.xml 142 142 # 143 143 # exit -
trunk/SRC/Documentation/xmldoc/forxxxdoc.sh
r258 r430 25 25 # 26 26 case "${1}" in 27 0101|0201|mouse)28 # screen capture to be commented by frames and callouts images29 capture="figpng/xxx_${1}_org.png"30 ;;31 *)32 echo "eee : unknown parameter ${1}"33 exit 134 ;;27 0101|0201|mouse) 28 # screen capture to be commented by frames and callouts images 29 capture="figpng/xxx_${1}_org.png" 30 ;; 31 *) 32 echo "eee : unknown parameter ${1}" 33 exit 1 34 ;; 35 35 esac 36 36 # 37 37 if [ ! -f ${capture} ] 38 38 then 39 echo " eee : ${capture} not found"40 exit 139 echo " eee : ${capture} not found" 40 exit 1 41 41 fi 42 42 # … … 47 47 # 48 48 case ${capture} in 49 figpng/xxx_0101_org.png)50 capture_xsize=520 #++ should be obtain by parsing identify result51 capture_ysize=309 #++ should be obtain by parsing identify result52 #53 # description of frames (title, xmin, ymin, xmax,ymax)54 # nb : title and label are not yet used but they may be added in a kind of55 # comments56 # later in xml as id or label57 # now they are only here to remind us what we do58 zone_nb=359 zone_t[1]="Data file"60 zone_l[1]="datafile"61 zone_rect[1]="26,53, 485,95"62 zone_t[2]="Init method"63 zone_l[2]="initmethod"64 zone_rect[2]="78,101, 433,152"65 zone_t[3]="Init program"66 zone_l[3]="initprogram"67 zone_rect[3]="3,159, 518,278"68 #zone_t[1]="Data file"69 #zone_l[1]="datafile"70 #zone_rect[1]="5,55 515,90"71 #zone_t[2]="Init file"72 #zone_l[2]="initfile"73 #zone_rect[2]="5,150 515,200"74 ;;75 figpng/xxx_0201_org.png)76 capture_xsize=429 #++ should be obtain by parsing identify result77 capture_ysize=630 #++ should be obtain by parsing identify result78 #79 # description of frames (title, xmin, ymin, xmax,ymax)80 # nb : title and label are not yet used but they may be added in a kind of81 # comments82 # later in xml as id or label83 # now they are only here to remind us what we do84 zone_nb=1085 #86 zone_t[1]="Plot type"87 zone_l[1]="plottype"88 zone_rect[1]="3,24, 97,51"89 zone_t[2]="Menu"90 zone_l[2]="menu"91 zone_rect[2]="108,24, 325,53"92 zone_t[3]="OK"93 zone_l[3]="ok"94 zone_rect[3]="5,59, 44,86"95 zone_t[4]="Page layout"96 zone_l[4]="pagelayout"97 zone_rect[4]="70,59, 193,86"98 zone_t[5]="Variables list"99 zone_l[5]="variableslist"100 zone_rect[5]="209,60, 323,85"101 zone_t[6]="Files list"102 zone_l[6]="fileslist"103 zone_rect[6]="2,95, 344,117"104 zone_t[7]="Command text"105 zone_l[7]="commandtext"106 zone_rect[7]="2,126, 346,160"107 zone_t[8]="Calendar"108 zone_l[8]="calendar"109 zone_rect[8]="2,169, 212,216"110 zone_t[9]="Domdef"111 zone_l[9]="domdef"112 zone_rect[9]="16,227, 308,447"113 zone_t[10]="Specifications"114 zone_l[10]="specifications"115 zone_rect[10]="1,458, 345,580"116 # the next three lines are here to check calcultation of CALSPAIR units117 # see http://www.docbook.org/tdg/en/html/area.html118 # if you want to use it, please add one to zone_nb119 zone_t[11]="just to check full size rectangle"120 zone_l[11]="check"121 zone_rect[11]="0,0 ${capture_xsize},${capture_ysize}"122 ;;123 figpng/xxx_mouse_org.png)124 capture_xsize=57 #++ should be obtain by parsing identify result125 capture_ysize=82 #++ should be obtain by parsing identify result126 #127 # description of frames (title, xmin, ymin, xmax,ymax)128 # nb : title and label are not yet used but they may be added in a kind of129 # comments130 # later in xml as id or label131 # now they are only here to remind us what we do132 zone_nb=3133 zone_t[1]="Left"134 zone_l[1]="left"135 zone_rect[1]="3,14, 11,21"136 zone_t[2]="Middle"137 zone_l[2]="middle"138 zone_rect[2]="21,14, 28,19"139 zone_t[3]="Right"140 zone_l[3]="right"141 zone_rect[3]="39,14, 46,20"142 ;;143 *)144 echo " eee : ${capture} not implemented"145 exit 3146 ;;49 figpng/xxx_0101_org.png) 50 capture_xsize=520 #++ should be obtain by parsing identify result 51 capture_ysize=309 #++ should be obtain by parsing identify result 52 # 53 # description of frames (title, xmin, ymin, xmax,ymax) 54 # nb : title and label are not yet used but they may be added in a kind of 55 # comments 56 # later in xml as id or label 57 # now they are only here to remind us what we do 58 zone_nb=3 59 zone_t[1]="Data file" 60 zone_l[1]="datafile" 61 zone_rect[1]="26,53, 485,95" 62 zone_t[2]="Init method" 63 zone_l[2]="initmethod" 64 zone_rect[2]="78,101, 433,152" 65 zone_t[3]="Init program" 66 zone_l[3]="initprogram" 67 zone_rect[3]="3,159, 518,278" 68 #zone_t[1]="Data file" 69 #zone_l[1]="datafile" 70 #zone_rect[1]="5,55 515,90" 71 #zone_t[2]="Init file" 72 #zone_l[2]="initfile" 73 #zone_rect[2]="5,150 515,200" 74 ;; 75 figpng/xxx_0201_org.png) 76 capture_xsize=429 #++ should be obtain by parsing identify result 77 capture_ysize=630 #++ should be obtain by parsing identify result 78 # 79 # description of frames (title, xmin, ymin, xmax,ymax) 80 # nb : title and label are not yet used but they may be added in a kind of 81 # comments 82 # later in xml as id or label 83 # now they are only here to remind us what we do 84 zone_nb=10 85 # 86 zone_t[1]="Plot type" 87 zone_l[1]="plottype" 88 zone_rect[1]="3,24, 97,51" 89 zone_t[2]="Menu" 90 zone_l[2]="menu" 91 zone_rect[2]="108,24, 325,53" 92 zone_t[3]="OK" 93 zone_l[3]="ok" 94 zone_rect[3]="5,59, 44,86" 95 zone_t[4]="Page layout" 96 zone_l[4]="pagelayout" 97 zone_rect[4]="70,59, 193,86" 98 zone_t[5]="Variables list" 99 zone_l[5]="variableslist" 100 zone_rect[5]="209,60, 323,85" 101 zone_t[6]="Files list" 102 zone_l[6]="fileslist" 103 zone_rect[6]="2,95, 344,117" 104 zone_t[7]="Command text" 105 zone_l[7]="commandtext" 106 zone_rect[7]="2,126, 346,160" 107 zone_t[8]="Calendar" 108 zone_l[8]="calendar" 109 zone_rect[8]="2,169, 212,216" 110 zone_t[9]="Domdef" 111 zone_l[9]="domdef" 112 zone_rect[9]="16,227, 308,447" 113 zone_t[10]="Specifications" 114 zone_l[10]="specifications" 115 zone_rect[10]="1,458, 345,580" 116 # the next three lines are here to check calcultation of CALSPAIR units 117 # see http://www.docbook.org/tdg/en/html/area.html 118 # if you want to use it, please add one to zone_nb 119 zone_t[11]="just to check full size rectangle" 120 zone_l[11]="check" 121 zone_rect[11]="0,0 ${capture_xsize},${capture_ysize}" 122 ;; 123 figpng/xxx_mouse_org.png) 124 capture_xsize=57 #++ should be obtain by parsing identify result 125 capture_ysize=82 #++ should be obtain by parsing identify result 126 # 127 # description of frames (title, xmin, ymin, xmax,ymax) 128 # nb : title and label are not yet used but they may be added in a kind of 129 # comments 130 # later in xml as id or label 131 # now they are only here to remind us what we do 132 zone_nb=3 133 zone_t[1]="Left" 134 zone_l[1]="left" 135 zone_rect[1]="3,14, 11,21" 136 zone_t[2]="Middle" 137 zone_l[2]="middle" 138 zone_rect[2]="21,14, 28,19" 139 zone_t[3]="Right" 140 zone_l[3]="right" 141 zone_rect[3]="39,14, 46,20" 142 ;; 143 *) 144 echo " eee : ${capture} not implemented" 145 exit 3 146 ;; 147 147 esac 148 149 150 151 152 148 # 153 149 # calculation of % of the rectangle of each zone for Calspair … … 181 177 # rectangles insertion 182 178 cmd="convert -size ${capture_xsize}x${capture_ysize} \ 183 184 185 186 179 ${capture} \ 180 -linewidth 2 \ 181 -stroke black \ 182 -fill transparent" 187 183 # 188 184 # then loop on the frames to be drawed -
trunk/SRC/Documentation/xmldoc/getsaxo_pre.sh
r410 r430 20 20 # 21 21 case $( whoami ) in 22 23 24 25 26 27 28 29 30 22 smasson) 23 lgforge=smasson 24 ;; 25 floseb) 26 lgforge=smasson 27 ;; 28 *) 29 lgforge=saxo 30 ;; 31 31 esac 32 32 # … … 64 64 # 65 65 sed -e s/"\&date\;"/${ndate}/g \ 66 67 68 69 70 71 72 66 -e s/"\&date2\;"/${ndate2}/g \ 67 -e s/"\&szsrc\;"/${szsrc}/g \ 68 -e s/"\&szdata\;"/${szdata}/g \ 69 -e s/"\&szallsvn\;"/${szallsvn}/g \ 70 -e s/"\&szsrcsvn\;"/${szsrcsvn}/g \ 71 -e s/"\&szdatasvn\;"/${szdatasvn}/g \ 72 getsaxo.xml > getsaxo_sed.xml 73 73 # 74 74 # exit -
trunk/SRC/Documentation/xmldoc/pro2href.sh
r420 r430 48 48 while [ ! -z "${1}" ] 49 49 do 50 case ${1} in51 -i) # dirhtml52 dirhtml=${2}53 shift54 ;;55 -r) # refhtml56 refhtml=${2}57 shift58 ;;59 -e) # element60 element=${2}61 shift62 ;;63 -h)64 echo "${usage}"65 exit 066 ;;67 *) # other choice68 echo "${usage}"69 exit 170 ;;71 esac72 shift # next flag50 case ${1} in 51 -i) # dirhtml 52 dirhtml=${2} 53 shift 54 ;; 55 -r) # refhtml 56 refhtml=${2} 57 shift 58 ;; 59 -e) # element 60 element=${2} 61 shift 62 ;; 63 -h) 64 echo "${usage}" 65 exit 0 66 ;; 67 *) # other choice 68 echo "${usage}" 69 exit 1 70 ;; 71 esac 72 shift # next flag 73 73 done 74 74 # … … 108 108 #echo "file_html ${file_html}" 109 109 #read a 110 111 #echo "fpath ${fpath}"112 #read a113 114 #echo "liste link" ${list_link}115 #read a116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 #echo "path du fichier html ${fpath}"132 #echo "lpath ${lpath}"133 #read a134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 #echo "path ${path}"153 #read a154 110 fpath=$(dirname ${file_html} | sed -e "s+\(${dirhtml}/\)\(.*\)+\2+") 111 #echo "fpath ${fpath}" 112 #read a 113 list_link=$(tr -s " " "\n" < ${file_html} | grep "<${element}>.*</${element}>" | sed -e "s/^.*<${element}>//" -e "s/<\/${element}>.*$//") 114 # echo "liste link" ${list_link} 115 # read a 116 for link in ${list_link} 117 do 118 # replace <element>something</element> by 119 #<a href="something.html">something</a> 120 # modulehtml is the html file name to be used 121 modulehtml=${link}.html 122 # lpath is the path on module relatively to the location of 123 # the html file containing the <element>...</element> 124 lpath=$(find ${refhtml} -name "${modulehtml}") 125 if [ "${lpath}" = "" ] 126 then 127 echo "eee : path of ${modulehtml} not found under ${refhtml}" 128 echo "eee : ${link} is used in ${file_html}" 129 else 130 lpath=$(dirname ${lpath} | sed -e "s+\(${refhtml}/\)\(.*\)+\2+") 131 #echo "path du fichier html ${fpath}" 132 #echo "lpath ${lpath}" 133 #read a 134 if [ "${lpath}" = "${fpath}" ] 135 then 136 path="./" 137 fi 138 if [ "${lpath:0:1}" = "/" ] # absolute path 139 then 140 path=${lpath} 141 else 142 nblev=$(echo ${fpath} | sed -e "s@/\$@@" | awk -F "/" '{print NF}') 143 relpath="" 144 ilev=1 145 while [ ${ilev} -le ${nblev} ] 146 do 147 relpath="${relpath}../" 148 ilev=$(( ${ilev} + 1 )) 149 done 150 path=${relpath}/${lpath} 151 fi 152 #echo "path ${path}" 153 #read a 154 cat <<EOF > /tmp/pro2href${$}.sed 155 155 1{x;s@^@first@;x;} 156 156 1,/<${element}>${link}<\/${element}>/{x;/first/s///;x;s@<${element}>${link}<\/${element}>@<a href="${path}/${link}.html">${link}<\/a>@;} 157 157 EOF 158 159 ${file_html} > ${file_html}_modify160 #diff ${file_html} ${file_html}_modify161 #read a162 163 164 165 158 sed -f /tmp/pro2href${$}.sed \ 159 ${file_html} > ${file_html}_modify 160 #diff ${file_html} ${file_html}_modify 161 #read a 162 mv ${file_html}_modify ${file_html} 163 rm /tmp/pro2href${$}.sed 164 fi 165 done 166 166 done 167 167 fi -
trunk/SRC/Documentation/xmldoc/savesaxo.sh
r425 r430 161 161 # 162 162 case $( whoami ) in 163 164 165 166 167 168 169 170 171 163 smasson) 164 lgforge=smasson 165 ;; 166 floseb) 167 lgforge=smasson 168 ;; 169 *) 170 lgforge=saxo 171 ;; 172 172 esac 173 173 # 174 174 if [ ${lgforge} != smasson ] 175 175 then 176 177 178 179 180 181 176 doSRClocean=0 177 doDTAlocean=0 178 doSRCipsl=0 179 doDTAipsl=0 180 doSRCidris=0 181 doDTAidris=0 182 182 fi 183 183 # … … 191 191 #------------------------------------------------------------------ 192 192 if [ ${docompileall} -eq 1 ] 193 194 193 then 194 cat <<EOF > /tmp/compileall${$}.pro 195 195 .reset_session 196 196 ; … … 214 214 EOF 215 215 # 216 217 218 # does it contains pro or function ?216 for i in $( find ${memopwd}/../.. -name "*.pro" | grep -iv label_gmt | grep -iv report ) 217 do 218 # does it contains pro or function ? 219 219 egrep -iq '^ * *(pro|function)' ${i} 220 220 if [ ${?} -eq 0 ] 221 222 223 221 then 222 echo "print, '$( basename ${i} .pro ) :'" >> /tmp/compileall${$}.pro 223 echo "resolve_all, resolve_either = '$( basename ${i} .pro )', skip_routines = ['xxx2ps','trends', 'label_gmt', 'report']" >> /tmp/compileall${$}.pro 224 224 fi 225 226 227 228 229 230 231 232 #grep -q "Compilation error(s)" /tmp/compileallerr_${$}233 234 235 echo "ALL SAXO files are OK..."236 rm -f /tmp/compileallerr_${$} /tmp/compileall${$}.pro237 238 grep "Compilation error(s)" /tmp/compileallerr_${$}239 echo "eee : see /tmp/compileallerr_${$}"240 more /tmp/compileallerr_${$}241 exit 1242 243 244 225 done 226 echo "exit" >> /tmp/compileall${$}.pro 227 IDL_STARTUP=/tmp/compileall${$}.pro 228 ${idl_dir}/bin/idl &> /tmp/compileallerr_${$} 229 echo 230 echo 231 grep -i "error" /tmp/compileallerr_${$} 232 # grep -q "Compilation error(s)" /tmp/compileallerr_${$} 233 if [ ${?} -ne 0 ] 234 then 235 echo "ALL SAXO files are OK..." 236 rm -f /tmp/compileallerr_${$} /tmp/compileall${$}.pro 237 else 238 grep "Compilation error(s)" /tmp/compileallerr_${$} 239 echo "eee : see /tmp/compileallerr_${$}" 240 more /tmp/compileallerr_${$} 241 exit 1 242 fi 243 echo 244 echo 245 245 fi 246 246 #------------------------------------------------------------------ 247 247 if [ ${dohtml} -eq 1 ] 248 248 then 249 #250 # redo the HTML files251 #252 253 254 249 # 250 # redo the HTML files 251 # 252 cd ${memopwd} 253 make clean 254 make html 255 255 fi 256 256 #------------------------------------------------------------------ 257 257 if [ ${dowiki} -eq 1 ] 258 258 then 259 #260 # redo the WIKI files261 #262 263 264 259 # 260 # redo the WIKI files 261 # 262 cd ${memopwd} 263 make clean 264 make tracwiki 265 265 fi 266 266 #------------------------------------------------------------------ 267 267 if [ ${dooldtest} -eq 1 ] 268 268 then 269 # make the old test270 #271 272 273 269 # make the old test 270 # 271 cd ${memopwd}/../../Tests/ 272 ./makeold.sh 273 exit 0 274 274 fi 275 275 #------------------------------------------------------------------ 276 276 if [ ${doidlwavedoc} -eq 1 ] 277 277 then 278 #279 # redo idlwave doc280 #281 282 283 278 # 279 # redo idlwave doc 280 # 281 cd ${memopwd}/../.. 282 Documentation/idlwave_catalog -v -f saxo 283 exit 0 284 284 fi 285 285 #------------------------------------------------------------------ 286 286 if [ ${doidldoc} -eq 1 ] 287 287 then 288 289 290 291 -i ../.. -t "SAXO Documentation" \292 -o ../idldoc_html_output/293 -idl_dir ${idl_dir}294 -e pro -r ../idldoc_html_output/ \295 -e proidl -r /usr/local_linux/idl/idl_6.4/idl/help/online_help296 297 298 299 echo "eee : pb with doidldoc html"300 exit 1301 302 303 304 305 306 307 288 # 289 # build HTML idldoc outputs 290 ${SAXO_DIR}/SRC/Documentation/xmldoc/doidldoc.sh \ 291 -i ../.. -t "SAXO Documentation" \ 292 -o ../idldoc_html_output/ 293 -idl_dir ${idl_dir} 294 -e pro -r ../idldoc_html_output/ \ 295 -e proidl -r /usr/local_linux/idl/idl_6.4/idl/help/online_help 296 doidldoc_html=${?} 297 if [ ${doidldoc_html} -ne 0 ] 298 then 299 echo "eee : pb with doidldoc html" 300 exit 1 301 fi 302 # 303 # build a idl file to launch idldoc 304 output=../idldoc_assistant_output/ 305 log="/tmp/idldocassistant_${$}.log" 306 pro="/tmp/idldocassistant_${$}.pro" 307 cat <<EOF > ${pro} 308 308 !path = expand_path('+' + '../idldoc/') 309 309 print,!path … … 313 313 exit 314 314 EOF 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 sed \349 -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \350 -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/font>\)/\1\3/" \351 -e "/<h2>Produced on/d" \352 -e "/Last modification:/d" \353 -e "/<dd>... ... .* ..:..:.. ....<\/dd>/d" \354 -e '/href/s@_param_@_keyword_@g' \355 -e 's@<div class="value">@<div class="preformat">@' \356 -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \357 -e 's@^ <fixe>@<pre>@' \358 -e 's@^ </fixe>@</pre>@' \359 -e "s@<h3>Examples</h3>@<h3>Examples</h3><pre>@" \360 -e "s@<h3>Version history</h3>@</pre><h3>Version history</h3>@" \361 ${file_html} > ${file_html}_modify362 mv ${file_html}_modify ${file_html}363 364 365 366 367 368 369 370 371 372 373 374 375 ./pro2href.sh-i ${output} -r ${idl_dir}/help/online_help -e proidl376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 315 # launch idl with the file built above 316 IDL_STARTUP=${pro};${idl_dir}/bin/idl 317 /bin/rm ${pro} 318 # In order to do not have to many revision in svn, we modify some 319 # lines produced by idldoc : 320 # examples : 321 # <!-- Generated by IDLdoc 2.0 on Wed Jun 7 10:25:28 2006 --> 322 # will be replaced by 323 # <!-- Generated by IDLdoc 2.0 --> 324 # <p><font color="gray" size="-3"> Produced by IDLdoc 2.0 on Wed Sep 13 16:32:10 2006.</font></p> 325 # will be replaced by 326 # <p><font color="gray" size="-3"> Produced by IDLdoc 2.0</font></p> 327 # <h2>Produced on Wed Jun 7 10:23:13 2006</h2> 328 # will be delete 329 # other lines will be deleted because the time is the time of checkout not 330 # the time of revision. 331 # the sequence of lines 332 #<dl> 333 # <dt>Last modification:</dt> 334 # <dd>Fri Jun 2 11:46:24 2006</dd> 335 # </dl> 336 # should also be removed ++ je ne sais pas dire en sed la ligne 337 # suivant l'occurence de Last modification 338 # replace *_param_* in href attributes because anchors are badly written 339 # with _keyword_ 340 #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global 341 # ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path # won't work 342 # encaspulate example content in <pre> </pre> in idldoc assistant outputs 343 # Examples section is supposed to start with <h3>Examples</h3> 344 # and end is before <h3>Version history</h3> 345 list_html=$(find ${output} -name "*.html") 346 for file_html in ${list_html} 347 do 348 sed \ 349 -e "s/\(Generated by IDLdoc 2.0\)\( on .*\)\( -->\)/\1\3/" \ 350 -e "s/\(Produced by IDLdoc 2.0\)\( on .*\)\(\.<\/font>\)/\1\3/" \ 351 -e "/<h2>Produced on/d" \ 352 -e "/Last modification:/d" \ 353 -e "/<dd>... ... .* ..:..:.. ....<\/dd>/d" \ 354 -e '/href/s@_param_@_keyword_@g' \ 355 -e 's@<div class="value">@<div class="preformat">@' \ 356 -e 's/div\#file_comments {/div\#file_comments { white-space: pre;/' \ 357 -e 's@^ <fixe>@<pre>@' \ 358 -e 's@^ </fixe>@</pre>@' \ 359 -e "s@<h3>Examples</h3>@<h3>Examples</h3><pre>@" \ 360 -e "s@<h3>Version history</h3>@</pre><h3>Version history</h3>@" \ 361 ${file_html} > ${file_html}_modify 362 mv ${file_html}_modify ${file_html} 363 done 364 # replace <pro>ginette</pro> by a sequence like 365 # <a href="./ginette.html">ginette</a> 366 ./pro2href.sh -i ${output} -r ${output} -e pro 367 status=${?} 368 if [ ${status} -ne 0 ] 369 then 370 echo "eee : pb during ./pro2href.sh for <pro>...</pro>" 371 exit 1 372 fi 373 # replace <proidl>ginette</proidl> by a sequence like 374 # <a href="./ginette.html">ginette</a> 375 ./pro2href.sh -i ${output} -r ${idl_dir}/help/online_help -e proidl 376 status=${?} 377 if [ ${status} -ne 0 ] 378 then 379 echo "eee : pb during ./pro2href.sh for <proidl>...</proidl>" 380 exit 1 381 fi 382 # add the directory-overview.html from dir-files.html in idldoc_html_output 383 list_html=$(find ../idldoc_html_output -name dir-files.html) 384 for file_html in ${list_html} 385 do 386 fout=../idldoc_assistant_output/${file_html#../idldoc_html_output/*} 387 fout=${fout%/*}/directory-overview.html 388 cp ${file_html} ${fout} 389 done 390 # copy listings.css (needed by directory-overview.html files) 391 cp ../idldoc/resource/listings.css ${output} 392 # add an id in idldoc-lib.adp 393 cat << EOF > /tmp/adp_modification 394 394 <!-- \$Id\$ --> 395 395 EOF 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 396 sed -e "/<\/profile>/r /tmp/adp_modification" \ 397 ../idldoc_assistant_output/idldoc-lib.adp > \ 398 ../idldoc_assistant_output/idldoc-lib.adp_${$} 399 mv ../idldoc_assistant_output/idldoc-lib.adp_${$} \ 400 ../idldoc_assistant_output/idldoc-lib.adp 401 rm /tmp/adp_modification 402 echo "iii : you can see log file in ${log}" 403 echo "iii : and look ${output}/idldoc-warnings.html#undoc" 404 # check that the number of existing html files for each .pro file is 2! 405 for i in $( find ../.. -name "*.pro" ) 406 do 407 nhtml=$( find ../.. -name $( basename ${i} .pro ).html | wc -l ) 408 if [ ${nhtml} -ne 2 ] 409 then 410 echo "ERROR there is no 2 $( basename ${i} .pro ).html files" 411 find ../.. -name $( basename ${i} .pro ).html 412 echo 413 fi 414 done 415 415 fi 416 416 #------------------------------------------------------------------ 417 417 if [ ${doTARsrc} -eq 1 ] 418 418 then 419 420 mkdir${localtarbase}/421 # clean backup files : *~422 423 # prepare the source tar (without the svn...)424 #425 426 427 #428 #informations429 430 419 localtarbase=/tmp/savesaxo_${$} 420 mkdir ${localtarbase}/ 421 # clean backup files : *~ 422 find ${memopwd}/../../.. -name "*~" -exec rm {} \; 423 # prepare the source tar (without the svn...) 424 # 425 cd ${memopwd}/../../.. 426 tar czf ${localtarbase}/SAXO_SRC_${ndate}r${rev}.tar.gz --exclude .svn SRC 427 # 428 # informations 429 echo "iii : following file may be copied on http://forge.ipsl.jussieu.fr/saxo/download/" 430 ls -l ${localtarbase} 431 431 fi 432 432 #------------------------------------------------------------------ 433 433 if [ ${doTARdata} -eq 1 ] 434 434 then 435 436 mkdir${localtarbase}/437 #438 # prepare the data tar (without the svn...)439 #440 441 442 #443 #informations444 445 435 localtarbase=/tmp/savesaxo_${$} 436 mkdir ${localtarbase}/ 437 # 438 # prepare the data tar (without the svn...) 439 # 440 cd ${memopwd}/../../.. 441 tar czf ${localtarbase}/SAXO_DATA_${ndate}.tar.gz --exclude .svn DATA 442 # 443 # informations 444 echo "iii : following file may be copied on http://forge.ipsl.jussieu.fr/saxo/download/" 445 ls -l ${localtarbase} 446 446 fi 447 447 #------------------------------------------------------------------ 448 448 if [ ${doforge} -eq 1 ] 449 449 then 450 451 452 453 454 455 456 457 458 450 echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd two times" 451 if [ ${doTARsrc} -ne 1 ] 452 then 453 localtarbase=${1} 454 fi 455 scp ${localtarbase}/SAXO_*.tar.gz ${lgforge}@forge.ipsl.jussieu.fr:/ipsl/forge/projets/saxo/download/ 456 echo "iii : do not forget to update getsaxo.html" 457 echo "iii : \$ make ./getsaxo.html" 458 echo "iii : do not forget to clean ${localtarbase}" 459 459 fi 460 460 #------------------------------------------------------------------ 461 461 if [[ (${doDTAlocean} -eq 1) || (${doDTAipsl} -eq 1) ]] 462 462 then 463 464 465 466 467 463 echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd" 464 infodata=$(ssh ${lgforge}@forge.ipsl.jussieu.fr ls -lht /ipsl/forge/projets/saxo/download/SAXO_DATA_*.tar.gz | head -n 1) 465 filedata=$(echo ${infodata} | awk '{print $NF}') 466 filedata=$(basename ${filedata}) 467 cat <<EOF > job_data_$$ 468 468 #!/bin/bash 469 469 cd SAXO_DIR … … 483 483 if [ ${doSRClocean} -eq 1 ] 484 484 then 485 # update src on cerbere486 #487 488 485 # update src on cerbere 486 # 487 echo "iii : update src on cerbere" 488 ssh smasson@cerbere.locean-ipsl.upmc.fr "svn update SAXO_DIR/SRC ; chmod -R 755 SAXO_DIR" 489 489 fi 490 490 #------------------------------------------------------------------ 491 491 if [ ${doDTAlocean} -eq 1 ] 492 492 then 493 # update data on cerbere494 495 496 493 # update data on cerbere 494 echo "iii : update data on cerbere" 495 scp job_data_$$ smasson@cerbere.locean-ipsl.upmc.fr:. 496 ssh smasson@cerbere.locean-ipsl.upmc.fr "chmod 755 job_data_$$ ; ./job_data_$$ ; rm -f job_data_$$" 497 497 fi 498 498 #------------------------------------------------------------------ 499 499 if [ ${doSRCipsl} -eq 1 ] 500 500 then 501 # update src on calcul2502 #503 504 501 # update src on calcul2 502 # 503 echo "iii : update src on calcul2" 504 ssh smlod@calcul2.ipsl.jussieu.fr "svn update SAXO_DIR/SRC ; chmod -R 755 SAXO_DIR" 505 505 fi 506 506 #------------------------------------------------------------------ 507 507 if [ ${doDTAipsl} -eq 1 ] 508 508 then 509 # update data on cook510 511 512 509 # update data on cook 510 echo "iii : update data on cook" 511 scp job_data_$$ smlod@cook.ipsl.jussieu.fr:. 512 ssh smlod@cook.ipsl.jussieu.fr "chmod 755 job_data_$$ ; ./job_data_$$ ; rm -f job_data_$$" 513 513 fi 514 514 #------------------------------------------------------------------ 515 515 if [ ${doSRCidris} -eq 1 ] 516 516 then 517 # update src on ulam518 519 517 # update src on ulam 518 echo "iii : update src to ulam" 519 ssh -t smasson@cerbere.locean-ipsl.upmc.fr ssh reee217@ulam.idris.fr "svn update SAXO_DIR/SRC ; chmod -R 755 SAXO_DIR" 520 520 fi 521 521 #------------------------------------------------------------------ 522 522 if [ ${doDTAidris} -eq 1 ] 523 523 then 524 # create the update script for ulam525 526 527 528 529 530 531 532 524 # create the update script for ulam 525 if [[ (${doDTAlocean} -eq 0) && (${doDTAipsl} -eq 0) ]] 526 then 527 echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd" 528 infodata=$(ssh ${lgforge}@forge.ipsl.jussieu.fr ls -lht /ipsl/forge/projets/saxo/download/SAXO_DATA_*.tar.gz | head -n 1) 529 filedata=$(echo ${infodata} | awk '{print $NF}') 530 filedata=$(basename ${filedata}) 531 fi 532 cat <<EOF > job_data_idris_$$ 533 533 #!/bin/ksh 534 534 cd SAXO_DIR … … 545 545 # 546 546 EOF 547 # update data on gaya548 549 550 547 # update data on gaya 548 echo "iii : update data to gaya" 549 scp job_data_idris_$$ reee217@gaya.idris.fr:. 550 ssh reee217@gaya.idris.fr "chmod 755 job_data_idris_$$ ; ./job_data_idris_$$ ; rm -f job_data_idris_$$" 551 551 fi 552 552 #------------------------------------------------------------------ 553 553 if [ ${dodocdownload} -eq 1 ] 554 554 then 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 sed\578 -e "/Source code of a file/s+../.*/../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC+g" \579 -e "/..\/..\/ToBeReviewed/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g" \580 -e "/..\/..\/Tests/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g" \581 -e "/..\/..\/Calendar/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g" \582 -e "/..\/newheader/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/Documentation/+g" \583 ${file_html} > ${file_html}_${$}584 mv ${file_html}_${$} ${file_html}585 586 587 588 589 555 echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd several times" 556 # 557 # copy files in a temporary directory 558 mkdir /tmp/download_${$}/ 559 cp -rp ../xmldoc /tmp/download_${$}/ 560 cp -rp ../idldoc_html_output /tmp/download_${$}/ 561 # 562 # remove tools files 563 find /tmp/download_${$}/ -name ".svn" -exec rm -rf {} \; 2> /dev/null 564 find /tmp/download_${$}/ -name "*.xml" -exec rm -rf {} \; 2> /dev/null 565 find /tmp/download_${$}/ -name "*.xsl" -exec rm -rf {} \; 2> /dev/null 566 find /tmp/download_${$}/ -name "*.sed" -exec rm -rf {} \; 2> /dev/null 567 find /tmp/download_${$}/ -name "*.sh" -exec rm -rf {} \; 2> /dev/null 568 find /tmp/download_${$}/ -name "makefile" -exec rm -rf {} \; 2> /dev/null 569 find /tmp/download_${$}/ -name "*~" -exec rm -rf {} \; 2> /dev/null 570 # 571 # replace relative path 572 # by http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/ 573 # on ulink lines containing some directories like ../../ToBeReviewed/ or ../../Tests/ or file like newheader.txt 574 list_html=$(find /tmp/download_${$}/ -name "*.html") 575 for file_html in ${list_html} 576 do 577 sed \ 578 -e "/Source code of a file/s+../.*/../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC+g" \ 579 -e "/..\/..\/ToBeReviewed/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g" \ 580 -e "/..\/..\/Tests/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g" \ 581 -e "/..\/..\/Calendar/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/+g" \ 582 -e "/..\/newheader/s+../../+http://forge.ipsl.jussieu.fr/saxo/browser/trunk/SRC/Documentation/+g" \ 583 ${file_html} > ${file_html}_${$} 584 mv ${file_html}_${$} ${file_html} 585 done 586 echo 587 echo "give SAXO password if asked" 588 scp -rp /tmp/download_${$}/* saxo@forge.ipsl.jussieu.fr:/ipsl/forge/projets/saxo/download/ 589 rm -rf /tmp/download_${$}/ 590 590 fi 591 591 # … … 593 593 if [ ${dowikiupdate} -eq 1 ] 594 594 then 595 596 597 rsync -av --exclude=".DS_Store"--exclude=".svn" ./wiki/ saxo@forge.ipsl.jussieu.fr:/tmp/saxo598 599 600 595 # uncomment this following line if you want to start from scratch 596 # ssh saxo@forge.ipsl.jussieu.fr mkdir -p /tmp/saxo 597 rsync -av --exclude=".DS_Store" --exclude=".svn" ./wiki/ saxo@forge.ipsl.jussieu.fr:/tmp/saxo 598 ssh saxo@forge.ipsl.jussieu.fr trac-admin /ipsl/forge/projets/saxo/trac wiki load /tmp/saxo 599 # uncomment this following line if you want to leave without any trace 600 # ssh saxo@forge.ipsl.jussieu.fr rm -rf /tmp/saxo 601 601 fi 602 602 #------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.