Changeset 255 for trunk/SRC/Documentation/xmldoc/makehtml.sh
- Timestamp:
- 06/27/07 14:32:59 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/xmldoc/makehtml.sh
r188 r255 1 1 #!/bin/bash -x 2 2 # 3 # update : 3 # update : 4 4 # $Id$ 5 5 # 6 6 # ++ one day we can add accessibility check with tidy with -access 3 7 # diagnostics are not so good so far because tidy (HTML Tidy for Mac OS X 7 # diagnostics are not so good so far because tidy (HTML Tidy for Mac OS X 8 8 # released on 1 September 2005) doesn't handle carriage returns 9 9 # 10 # fplod 2007-06-27T11:54:26Z aedon.locean-ipsl.upmc.fr (Darwin) 11 # replacing saxon by xalan because of better results on callouts 10 12 # fplod 2006-09-20T16:28:32Z aedon.locean-ipsl.upmc.fr (Darwin) 11 13 # remove ?format=raw … … 24 26 # fplod 2006-07-11T08:25:30Z aedon.locean-ipsl.upmc.fr (Darwin) 25 27 # use of tidy and titlepage.saxo.xml 26 # replace /sw/share/xml/xsl/docbook-xsl/html/docbook.xsl 28 # replace /sw/share/xml/xsl/docbook-xsl/html/docbook.xsl 27 29 # by saxo_html.xsl 28 30 # fplod 2006-07-05T13:18:56Z aedon.locean-ipsl.upmc.fr (Darwin) … … 32 34 # add infoupdatekwd 33 35 # fplod 2006-06-02T14:37:47Z aedon.locean-ipsl.upmc.fr (Darwin) 34 # take only one tar file : the most recent using modification time 36 # take only one tar file : the most recent using modification time 35 37 # fplod 2006-06-02T10:00:41Z aedon.locean-ipsl.upmc.fr (Darwin) 36 # http://forge.ipsl.jussieu.fr/saxo/download/ is the new directory reference 37 # for tar file instead of ~/SAXO_SRC/ ie home of Sebatien Masson on 38 # http://forge.ipsl.jussieu.fr/saxo/download/ is the new directory reference 39 # for tar file instead of ~/SAXO_SRC/ ie home of Sebatien Masson on 38 40 # arete.lodyc.jussieu.fr 39 41 # !!! saxo@forge.ipsl.jussieu.fr password is needed … … 41 43 # . add creation of all_plots.html using firststeps.html 42 44 # . remplace ~/SAXO_SRC/SRC/Documentation/xmldoc/figpng by ./figpng/ 43 # we suppose that this shell script is launched when we are in 45 # we suppose that this shell script is launched when we are in 44 46 # <working space of saxo>/SRC/Documentation/xmldoc/ 45 47 # … … 70 72 szdatasvn=${szdatasvn%*M} 71 73 echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd two times" 72 # find the most recent SAXO_SRC_yyyymmddrxxx.tar.gz in 74 # find the most recent SAXO_SRC_yyyymmddrxxx.tar.gz in 73 75 # /ipsl/forge/projets/saxo/download/ 74 76 infosrc=$(ssh ${lgforge}@forge.ipsl.jussieu.fr ls -lht /ipsl/forge/projets/saxo/download/SAXO_SRC_*.tar.gz | head -n 1) … … 78 80 ndate=${filesrc##*_} 79 81 ndate=${ndate%.tar.gz} 80 # find the most recent SAXO_DATA_yyyymmddrxxx.tar.gz in 82 # find the most recent SAXO_DATA_yyyymmddrxxx.tar.gz in 81 83 # /ipsl/forge/projets/saxo/download/ 82 84 infodata=$(ssh ${lgforge}@forge.ipsl.jussieu.fr ls -lht /ipsl/forge/projets/saxo/download/SAXO_DATA_*.tar.gz | head -n 1) … … 211 213 # 212 214 # production of titlepage.saxo.xsl 213 # 215 # 214 216 # si pb reseau remplacer sur mac par la ligne suivante 215 217 titlepagexsl=http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl … … 237 239 -e s/"\&szsrcsvn\;"/${szsrcsvn}/g \ 238 240 -e s/"\&szdatasvn\;"/${szdatasvn}/g \ 239 ${1}.xml > ${1}_${$}.xml 241 ${1}.xml > ${1}_${$}.xml 240 242 ;; 241 243 firststeps) … … 258 260 -e s/"\&figspltt_orca2_stride\;"/"${figspltt_orca2_stride}"/g \ 259 261 -e s/"\&figspltt_orca05_stride\;"/"${figspltt_orca05_stride}"/g \ 260 ${1}.xml > ${1}_${$}.xml 262 ${1}.xml > ${1}_${$}.xml 261 263 ;; 262 264 infoupdatekwd) 263 265 sed -e "/-- rows from updatekwd.pro --/r /tmp/rowskwd.xml" \ 264 ${1}.xml > ${1}_${$}.xml 266 ${1}.xml > ${1}_${$}.xml 265 267 /bin/rm /tmp/rowskwd.xml 266 268 ;; 267 269 infoupdatecm) 268 270 sed -e "/-- rows from updateold.pro --/r /tmp/rowscm.xml" \ 269 ${1}.xml > ${1}_${$}.xml 271 ${1}.xml > ${1}_${$}.xml 270 272 /bin/rm /tmp/rowscm.xml 271 273 ;; 272 274 faqsaxo|websaxo) 273 # resolve xinclude 275 # resolve xinclude 274 276 xmllint --xinclude \ 275 277 --output ${1}_${$}.xml ${1}.xml … … 282 284 ;; 283 285 *) 284 cp ${1}.xml ${1}_${$}.xml 286 cp ${1}.xml ${1}_${$}.xml 285 287 echo "iii : no xml transformation needed" 286 288 ;; 287 289 esac 288 290 # 289 CLASSPATH="${CLASSPATH}:\ 290 /sw/share/java/saxon/saxon.jar:\ 291 /sw/share/xml/xsl/docbook-xsl/extensions/saxon653.jar" 291 CLASSPATH=$CLASSPATH:/usr/Xalan/xalan.jar:/usr/Xalan/xml-apis.jar:\ 292 /usr/Xalan/xercesImpl.jar:/usr/docbook-xsl/extensions/xalan25.jar 292 293 export CLASSPATH 293 294 # 294 java com.icl.saxon.StyleSheet -o ${1}.html ${1}_${$}.xml \ 295 saxo_html.xsl \ 296 section.autolabel=1 html.stylesheet="style.css saxo.css" css.decoration=1 \ 297 callout.graphics.extension=".png" \ 298 callout.graphics="1" \ 299 callout.graphics.path="images/callouts/" \ 300 use.extensions=1 \ 301 callouts.extension=1 295 java org.apache.xalan.xslt.Process -out ${1}.html -in ${1}_${$}.xml \ 296 -xsl saxo_html.xsl \ 297 -param section.autolabel 1 \ 298 -param html.stylesheet "style.css saxo.css" \ 299 -param css.decoration 1 302 300 status=${?} 303 301 if [ ${status} -ne 0 ] … … 321 319 -e s?"../../saxo/browser/trunk/SRC/Documentation/idldoc_html_output/"?"../idldoc_html_output/"?g \ 322 320 -e s?"../../saxo/browser/trunk"?"http://forge.ipsl.jussieu.fr/saxo/browser/trunk"?g \ 323 ${1}.html > ${1}_${$}.html 321 ${1}.html > ${1}_${$}.html 324 322 mv ${1}_${$}.html ${1}.html 325 323 ;; 326 324 esac 327 # 325 # 328 326 # use of tidy to have a W3C compliant html file 329 327 tidy -m ${1}.html
Note: See TracChangeset
for help on using the changeset viewer.