Changeset 408
- Timestamp:
- 11/04/09 16:31:28 (14 years ago)
- Location:
- trunk/SRC/Documentation/xmldoc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/xmldoc/doidldoc.sh
r377 r408 6 6 # ==== 7 7 # 8 # idldoc.sh - build idldoc documentations 9 # 8 # idldoc.sh - build idldoc documentations 10 9 # 11 10 # SYNOPSYS 12 11 # ======== 13 12 # 14 # ``doidldoc.sh -i indir -t title -o outdir ``13 # ``doidldoc.sh -i indir -t title -o outdir -idldoc_version idldoc_version -idldoc_dir idldoc_dir`` 15 14 # 16 15 # DESCRIPTION … … 19 18 # Produce HTML files from IDL sources using idldoc. 20 19 # 21 # -i directory input 22 # -t title 23 # -o directory output 20 # -i directory input 21 # -t title 22 # -o directory output 23 # -idldoc_version idldoc_version 24 # -idldoc_dir idldoc_dir 24 25 # 25 26 # Two pass : first *classic* idldoc then some home made transformation to avoid … … 28 29 # The first pass produce files in /tmp/idldoc_output_${$}/ directory. 29 30 # 30 # At the end the result is in ``outdir`` 31 # At the end the result is in ``outdir``. 32 # 33 # 34 # By default, embedded ``idldoc`` 2.0 in SAXO is used. 35 # 36 # You can specified an other ``idldoc`` implentation by specify directory and 37 # version using *idldoc_dir* and *idldoc_version*. 38 # 39 # Be warned that assitant help is only available with ``idldoc 2.0``. 31 40 # 32 41 # EXAMPLES … … 35 44 # Results can be seen be opening a browser on /tmp/idldoc_html_output/index.html 36 45 # 37 # To produce SAXO HTML outputs 46 # To produce SAXO HTML outputs : 38 47 # :: 39 48 # 40 # 41 # 42 # 43 # To produce AMSU HTML outputs 49 # $ cd SAXO_ws/SRC/Documentations/xmldoc/ 50 # $ doidldoc.sh -i ../.. -t "SAXO Documentation" -o ./idldoc_html_output/ 51 # 52 # To produce AMSU HTML outputs : 44 53 # :: 45 54 # 46 # 47 # 55 # $ cd /usr/home/fplod/incas/amsu/amsu_ws/ 56 # $ doidldoc.sh -i . -t "AMSU Documentation" -o /tmp/idldoc_html_output/ 48 57 # 49 58 # TODO … … 54 63 # :: 55 64 # 56 # 65 # $ export PATH=${HOME}/SAXO_DIR/SRC/Documentation/xmldoc/:${PATH} 57 66 # 58 67 # ++ pb avec IDL_DIR pas tjs positionné … … 60 69 # :: 61 70 # 62 # 71 # $ export IDL_DIR=/usr/local_linux/idl/ 63 72 # 64 73 # or for MacOSX with 65 74 # :: 66 75 # 67 # 76 # $ export IDL_DIR=/usr/local_macosx/idl//idl_6.2/idl_6.2/ 68 77 # 69 78 # 70 79 # ++ choix de la version de idldoc et consequences sur assistant 71 80 # 72 # ++ choix de la version de idlet consequences sur assistant et lien sur81 # ++ choix de la version de IDL et consequences sur assistant et lien sur 73 82 # doc idl 74 83 # … … 83 92 # $Id$ 84 93 # 94 # - ++ 95 # 96 # * add idldoc_version and idldoc_dir parameters 97 # idldoc version is usefull because parameters of ``idldoc`` 98 # have been modified (see ``CHARSET`` in 3.1.1.). 99 # 100 # ``idldoc`` release can not be guessed 101 # 85 102 # - fplod 2008-08-11T12:57:48Z aedon.locean-ipsl.upmc.fr (Darwin) 86 103 # 87 # 88 # 104 # * comments in this file in ReST format 105 # * add ``-i``, ``-t`` and ``-o`` parameters 89 106 # 90 107 # - fplod 2008-06-20T13:07:59Z aedon.locean-ipsl.upmc.fr (Darwin) 91 108 # 92 # 93 # 94 # 95 # 96 # between 2.and 3.)109 # * evaluation version 3.1.1 110 # 111 # we are not yet still ready to migrate to rst format because of lack of 112 # assistant transformation independant of IDLdoc release (at least 113 # between 2. and 3.) 97 114 # 98 115 # - fplod 2008-01-10T08:13:41Z aedon.locean-ipsl.upmc.fr (Darwin) 99 116 # 100 # 117 # * version http://cookbook.idldev.com/idldoc-3.0rc2.zip 101 118 # 102 119 # - fplod 2008-01-03T09:59:18Z aedon.locean-ipsl.upmc.fr (Darwin) 103 120 # 104 # 121 # * version http://cookbook.idldev.com/idldoc-3.0rc1.zip 105 122 # 106 123 # - fplod 2007-12-12T09:47:04Z aedon.locean-ipsl.upmc.fr (Darwin) 107 124 # 108 # 125 # * version http://michaelgalloy.com/wp-content/uploads/2007/12/idldoc-3.0b4.zip 109 126 # 110 127 # - fplod 2007-12-11T09:14:04Z aedon.locean-ipsl.upmc.fr (Darwin) 111 128 # 112 # 113 # 114 # 129 # * version http://michaelgalloy.com/wp-content/uploads/2007/12/idldoc-3.0b4-src.zip 130 # * ++ pb path 131 # * beginning of docbook templates writing (from html 3.0b3 tt files) 115 132 # 116 133 # - fplod 2007-12-10T09:28:11Z aedon.locean-ipsl.upmc.fr (Darwin) 117 134 # 118 # 135 # * test with gdl : pas possible car compatibility < 6.1 119 136 # 120 137 # - fplod 2007-12-04T09:21:18Z aedon.locean-ipsl.upmc.fr (Darwin) 121 138 # 122 # 123 # 124 # 125 # 126 # 127 # 139 # * version http://michaelgalloy.com/wp-content/uploads/2007/12/idldoc-3.0b3.zip 140 # * pb parser if ; after ;- 141 # * ++ plus de param et keyword dans l'index 142 # * ++ pas w3c tilte au lieu de title, pas de charset, pas de alt, pas de summary 143 # * ++ css pas ok 144 # * ++ plus de @restrictions 128 145 # 129 146 # - fplod 2007-12-04T09:10:55Z aedon.locean-ipsl.upmc.fr (Darwin) 130 147 # 131 # 132 # 133 # 134 # 135 # 136 # 148 # * externalisation of idldoc issues from savesaxo.sh 149 # * previous release of idldoc was 2.0 150 # * this tool can be checked by creating doc from Michael Galloy librayry 151 # available on http://www.michaelgalloy.com/lib-docs/ 152 # * version http://michaelgalloy.com/wp-content/uploads/2007/11/idldoc-3.0b1.zip 153 # * pas ok ne reconnait pas les @param, @keyword 137 154 #- 138 155 # … … 148 165 # 149 166 command=$(basename ${0}) 150 log_date=$(date -u +"%Y -%m-%dT%H:%M:%SZ")151 # 152 usage=" Usage : ${command} -i indir -t title -o outdir "167 log_date=$(date -u +"%Y%m%dT%H%M%SZ") 168 # 169 usage=" Usage : ${command} -i indir -t title -o outdir [-idldoc_dir idldoc_dir -idldoc_version idldoc_version]" 153 170 # 154 171 # default ++ pas encore en parametre 155 172 assistant=0 173 #assistant=1 156 174 transform=1 157 idldoc_dir="../idldoc/" # 158 idldoc_dir="/usr/home/fplod/src/idldoc-3.1.1/" # overriding idldoc_dir for test ++ 175 command_dir=$(dirname ${0}) 176 idldoc_dir="${command_dir}/../idldoc/" 177 idldoc_version="2.0" 178 unset command_dir 179 180 #idldoc_dir="/usr/home/fplod/src/idldoc-3.1.1/" # overriding idldoc_dir for test ++ 159 181 # 160 182 minargcount=4 … … 170 192 case ${1} in 171 193 -i) 172 173 194 indir=${2} 195 shift 174 196 ;; 175 197 -t) 176 177 198 title=${2} 199 shift 178 200 ;; 179 201 -o) 180 outdir=${2} 181 shift 202 outdir=${2} 203 shift 204 ;; 205 -idldoc_dir) 206 idldoc_dir=${2} 207 shift 208 ;; 209 -idldoc_version) 210 idldoc_version=${2} 211 shift 182 212 ;; 183 213 -h) 184 185 214 echo "${usage}" 215 exit 0 186 216 ;; 187 217 *) # other choice 188 189 218 echo "${usage}" 219 exit 1 190 220 ;; 191 221 esac … … 195 225 set -u 196 226 # 197 # ++ test si idl (car gdlinutilisable)227 # ++ test si IDL (car GDL inutilisable) 198 228 application=idl 199 229 # … … 201 231 memopwd=$(pwd) # should be <working space>/SRC/Documentation/xmldoc 202 232 # 203 # build a idlfile to launch idldoc233 # build a IDL file to launch idldoc 204 234 outputtmp=/tmp/idldoc_output${$}/ 205 235 idldoc_log="/tmp/idldochtml_${$}.log" … … 207 237 # 208 238 cd ${idldoc_dir} 209 cat << EOF > ${pro} 239 case ${idldoc_version} in 240 3.1.1) 241 cat << EOF > ${pro} 210 242 !path = expand_path('+' + '${idldoc_dir}') 211 243 idldoc,root="${indir}",title="${title}", $ … … 216 248 exit 217 249 EOF 218 # launch idl with the file built above 250 ;; 251 2.0) 252 cat << EOF > ${pro} 253 !path = expand_path('+' + '${idldoc_dir}') 254 idldoc,root="${indir}",title="${title}", $ 255 LOG_FILE="${idldoc_log}", $ 256 output="${outputtmp}", $ 257 overview="../../overview", /statistics, /preformat 258 exit 259 EOF 260 ;; 261 *) 262 echo "eee : idldoc version not implemented ${idldoc_version}" 263 exit 1 264 ;; 265 esac 266 # launch IDL with the file built above 219 267 export IDL_STARTUP=${pro} 220 268 ${application} … … 245 293 # retrieve the path of html file relative to memopwd (so relative to 246 294 # output). This path will be used in "Source" link. 247 nblev2=$(dirname ${file_html} | 295 nblev2=$(dirname ${file_html} | sed -e "s@/\$@@" | awk -F "/" '{print NF}') 248 296 difflev=$((${nblev2} - ${nblev1})) 249 297 if [ ${difflev} -ge 2 ] 250 298 then 251 252 253 254 255 256 257 258 259 260 261 262 299 ilev=1 300 reloutput_html=".." 301 while [ ${ilev} -le ${difflev} ] 302 do 303 reloutput_html="${reloutput_html}/.." 304 ilev=$(( ${ilev} + 1 )) 305 done 306 relpath_html=$(dirname ${file_html} | \ 307 sed \ 308 -e "s@${outputtmp}@${reloutput_html}@" \ 309 -e "s@\$@/@") 310 # echo "relpath ${relpath_html})" 263 311 else 264 312 relpath_html="./" 265 313 fi 266 314 # echo "relpath ${relpath_html}/${bfile}" … … 303 351 if [ ${status} -ne 0 ] 304 352 then 305 306 353 echo "eee : pb during pro2href.sh for <pro>...</pro>" 354 exit 1 307 355 fi 308 356 # replace <proidl>ginette</proidl> by a sequence like … … 312 360 if [ ${status} -ne 0 ] 313 361 then 314 315 362 echo "eee : pb during pro2href.sh for <proidl>...</proidl>" 363 exit 1 316 364 fi 317 365 fi # end of transform = 1 … … 320 368 if [ ${assistant} -eq 1 ] 321 369 then 322 # build a idl file to launch idldoc 323 idldoc_log="/tmp/idldocassistant_${$}.log" 324 pro="/tmp/idldocassistant_${$}.pro" 325 cat <<EOF > ${pro} 370 # build a IDL file to launch idldoc 371 idldoc_log="/tmp/idldocassistant_${$}.log" 372 pro="/tmp/idldocassistant_${$}.pro" 373 case ${idldoc_version} in 374 3.1.1) 375 echo "iii : assistant is not feasable with idldoc > 2.0" 376 ;; 377 2.0) 378 cat << EOF > ${pro} 326 379 !path = expand_path('+' + '${idldoc_dir}') 327 380 idldoc,root="${indir}",title="${title}", $ … … 330 383 exit 331 384 EOF 332 # launch idl with the file built above 385 ;; 386 *) 387 echo "eee : idldoc version not implemented ${idldoc_version}" 388 exit 1 389 ;; 390 esac 391 more ${pro} 392 read a 393 # launch IDL with the file built above 333 394 IDL_STARTUP=${pro};${IDL_DIR}/bin/idl 334 395 /bin/rm ${pro} … … 336 397 # lines produced by idldoc : 337 398 # examples : 338 # <!-- Generated by IDLdoc 2.0 on Wed Jun 399 # <!-- Generated by IDLdoc 2.0 on Wed Jun 7 10:25:28 2006 --> 339 400 # will be replaced by 340 401 # <!-- Generated by IDLdoc 2.0 --> … … 342 403 # will be replaced by 343 404 # <p><font color="gray" size="-3"> Produced by IDLdoc 2.0</font></p> 344 # <h2>Produced on Wed Jun 405 # <h2>Produced on Wed Jun 7 10:23:13 2006</h2> 345 406 # will be delete 346 407 # other lines will be deleted because the time is the time of checkout not … … 348 409 # the sequence of lines 349 410 #<dl> 350 # 351 # <dd>Fri Jun2 11:46:24 2006</dd>352 # 411 # <dt>Last modification:</dt> 412 # <dd>Fri Jun 2 11:46:24 2006</dd> 413 # </dl> 353 414 # should also be removed ++ je ne sais pas dire en sed la ligne 354 415 # suivant l'occurence de Last modification … … 356 417 # with _keyword_ 357 418 #++ -e 's@\(href="#_.*\)\(_param_\)\(.*"\)@\1_keyword_\3@g' \ # ++ pb global 358 # ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path# won't work419 # ONLINE_HELP, book="../idldoc_assistant_output/idldoc-lib.adp", /full_path # won't work 359 420 # encaspulate example content in <pre> </pre> in idldoc assistant outputs 360 421 # Examples section is supposed to start with <h3>Examples</h3> … … 385 446 if [ ${status} -ne 0 ] 386 447 then 387 388 448 echo "eee : pb during pro2href.sh for <pro>...</pro>" 449 exit 1 389 450 fi 390 451 # replace <proidl>ginette</proidl> by a sequence like 391 452 # <a href="./ginette.html">ginette</a> 392 pro2href.sh 453 pro2href.sh -i ${outputtmp} -r ${IDL_DIR}/help/online_help -e proidl 393 454 status=${?} 394 455 if [ ${status} -ne 0 ] 395 456 then 396 397 457 echo "eee : pb during pro2href.sh for <proidl>...</proidl>" 458 exit 1 398 459 fi 399 460 # add the directory-overview.html from dir-files.html in idldoc_html_output … … 401 462 for file_html in ${list_html} 402 463 do 403 404 405 464 fout=../idldoc_assistant_output/${file_html#../idldoc_html_output/*} 465 fout=${fout%/*}/directory-overview.html 466 cp ${file_html} ${fout} 406 467 done 407 468 # copy listings.css (needed by directory-overview.html files) … … 420 481 for i in $( find ../.. -name "*.pro" ) 421 482 do 422 423 424 425 426 427 428 483 nhtml=$( find ../.. -name $( basename ${i} .pro ).html | wc -l ) 484 if [ ${nhtml} -ne 2 ] 485 then 486 echo "ERROR there is not 2 $( basename ${i} .pro ).html files" 487 find ../.. -name $( basename ${i} .pro ).html 488 echo 489 fi 429 490 done 430 491 # -
trunk/SRC/Documentation/xmldoc/faqsaxo.xml
r376 r408 24 24 exemple de l'entité incluse) 25 25 --> 26 <title>Frequently Asked questions about SAXO</title>26 <title>Frequently Asked Questions about SAXO</title> 27 27 <info> 28 28 <authorgroup> -
trunk/SRC/Documentation/xmldoc/svnbasiccommands.xml
r387 r408 33 33 <author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname> <email>Sebastien.Masson_at_locean-ipsl.upmc.fr</email></author> 34 34 </authorgroup> 35 <pubdate>$Id </pubdate>35 <pubdate>$Id$</pubdate> 36 36 </info> 37 37 … … 60 60 61 61 <screen> 62 <prompt>$</prompt> <userinput>svn c osvn+ssh://<replaceable>YOUR_LOGIN</replaceable>@forge.ipsl.jussieu.fr/ipsl/forge/projets/&project;/svn/trunk ~/&project;</userinput>62 <prompt>$</prompt> <userinput>svn checkout svn+ssh://<replaceable>YOUR_LOGIN</replaceable>@forge.ipsl.jussieu.fr/ipsl/forge/projets/&project;/svn/trunk ~/&project;</userinput> 63 63 </screen> 64 64 </para> … … 116 116 117 117 <para> 118 Add a new file to &project; 118 Add a new file to &project; : 119 119 120 120 <screen> 121 121 <prompt>$</prompt> <userinput>svn add <replaceable>file_name</replaceable></userinput> 122 </screen> 123 </para> 124 <para> 125 If <replaceable>file_name</replaceable> is not in the working space (here ~/&project;), you must copy it. 126 For example : 127 <screen> 128 <prompt>$</prompt> <userinput>cp -p <replaceable>another_directory</replaceable> ~/&project;/</userinput> 122 129 </screen> 123 130 </para> … … 203 210 204 211 <programlisting> 205 $Id$ 212 $Id$ 206 213 </programlisting> 207 214 </para> … … 216 223 217 224 <para> 218 Next time you download/update you file, <literal> $Id$</literal> will be automatically replaced by the version tag.225 Next time you download/update you file, <literal>$Id$</literal> will be automatically replaced by the version tag. 219 226 </para> 220 227 </sect1>
Note: See TracChangeset
for help on using the changeset viewer.