| 1 |
@ECHO OFF |
|---|
| 2 |
:: build4xslt.bat |
|---|
| 3 |
:: |
|---|
| 4 |
:: Copyright (c) 2005, CherryPy Team (team@cherrypy.org) |
|---|
| 5 |
:: All rights reserved. |
|---|
| 6 |
:: |
|---|
| 7 |
:: Redistribution and use in source and binary forms, with or without modification, |
|---|
| 8 |
:: are permitted provided that the following conditions are met: |
|---|
| 9 |
:: |
|---|
| 10 |
:: * Redistributions of source code must retain the above copyright notice, |
|---|
| 11 |
:: this list of conditions and the following disclaimer. |
|---|
| 12 |
:: * Redistributions in binary form must reproduce the above copyright notice, |
|---|
| 13 |
:: this list of conditions and the following disclaimer in the documentation |
|---|
| 14 |
:: and/or other materials provided with the distribution. |
|---|
| 15 |
:: * Neither the name of CherryPy Team nor the names of its contributors |
|---|
| 16 |
:: may be used to endorse or promote products derived from this software |
|---|
| 17 |
:: without specific prior written permission. |
|---|
| 18 |
:: |
|---|
| 19 |
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
|---|
| 20 |
:: ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|---|
| 21 |
:: WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
|---|
| 22 |
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE |
|---|
| 23 |
:: FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
|---|
| 24 |
:: DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCU::ENT OF SUBSTITUTE GOODS OR |
|---|
| 25 |
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
|---|
| 26 |
:: CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|---|
| 27 |
:: OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|---|
| 28 |
:: OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|---|
| 29 |
:: |
|---|
| 30 |
|
|---|
| 31 |
set DOCBOOK_BASE_PATH=../../tools/docbook/ |
|---|
| 32 |
set DOCBOOK_DTD_DIRECTORY=docbook4.5 |
|---|
| 33 |
set DOCBOOK_XSL_DIRECTORY=docbook-xsl-1.68.1 |
|---|
| 34 |
|
|---|
| 35 |
rmdir /q/s html |
|---|
| 36 |
mkdir html\css |
|---|
| 37 |
copy css\*.css html\css |
|---|
| 38 |
4xslt --outfile=html/index.html xml/cherrypy.xml xsl/html.xsl %DOCBOOK_BASE_PATH%%DOCBOOK_XSL_DIRECTORY%/html/docbook.xsl |
|---|
| 39 |
|
|---|
| 40 |
rmdir /q/s chunk |
|---|
| 41 |
mkdir chunk\css |
|---|
| 42 |
copy css\*.css chunk\css |
|---|
| 43 |
4xslt --outfile=chunk/index.html xml/cherrypy.xml xsl/chunked.xsl %DOCBOOK_BASE_PATH%%DOCBOOK_XSL_DIRECTORY%/html/docbook.xsl |
|---|