Changeset e858efa


Ignore:
Timestamp:
12/10/2004 07:41:21 PM (20 years ago)
Author:
Matthew Burgess <matthew@…>
Children:
2bdf98e
Parents:
10de47b
Message:

Updated INSTALL instructions for latest Docbook-XSL package

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4375 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • INSTALL

    r10de47b re858efa  
    11LFS Book Conversion Tools Installation Instructions
    22
    3 After downloading the CVS source, there are some things that need to be set up
     3After downloading the SVN source, there are some things that need to be set up
    44on your computer if you want to convert the XML source into something easier to
    55read (e.g. HTML, TXT, PS or PDF).  If you are interested in this, then keep
     
    2121  - http://www.linuxfromscratch.org/blfs/view/svn/pst/xml.html
    2222
    23 * DocBook XSL Stylesheets
    24   - http://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html
    25   - additionally create a link from
    26     /usr/share/xml/docbook/xsl-stylesheets-1.65.1 to
     23* DocBook XSL Stylesheets (1.67.2)
     24  install -d /usr/share/xml/docbook/xsl-stylesheets-1.67.2
     25  chown -R root:root .
     26  cp -af INSTALL VERSION common eclipse extensions fo html htmlhelp images \
     27    javahelp lib manpages params profiling template xhtml \
     28    /usr/share/xml/docbook/xsl-stylesheets-1.67.2
     29  install -d /usr/share/doc/xml
     30  cp -af doc/* /usr/share/doc/xml
     31  cd /usr/share/xml/docbook/xsl-stylesheets-1.67.2 && \
     32    sed -i -e 's@current/@1.67.2/@' INSTALL && \
     33    sh INSTALL
     34  xmlcatalog --noout --add "delegateURI" \
     35  "http://docbook.sourceforge.net/release/xsl/1.67.2/" \
     36  "file:///usr/share/xml/docbook/xsl-stylesheets-1.67.2/catalog.xml" \
     37  /etc/xml/catalog
     38  ln -sf xsl-stylesheets-$(VERSION) \
    2739    /usr/share/xml/docbook/xsl-stylesheets-current
    28 
    29     cd /usr/share/xml/docbook/ &&
    30     ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current
    3140
    3241* HTMLTidy
    3342  - http://www.linuxfromscratch.org/blfs/view/svn/general/tidy.html
    34   Patch to fix an issue with <pre> tags when the pages are served
    35   like application/xhtml+xml (not needed to see the pages locally)
    36   - http://www.macana-es.com/tidy-041005-fix-pre-tags-for-xhtml-1.patch
     43  - you'll also need the patch at http://linuxfromscratch.org/~matthew/tidy-041026-prevent_PRE_newlines-1.patch as well.
    3744
    3845-------------------------------------------------------------------------------
    3946If you want to be able to convert the book into PDF as well, then you will need
    4047the FOP package.  This takes an XSL-FO file (created with libxslt which you
    41 already installed) and converts it to PDF:
     48already installed) and converts it to PDF.  FOP is dependent on ANT
     49(Another Neat Tool) and the Java Advanced Imaging (JAI) API.
    4250
    43   - http://www.apache.org/dist/xml/fop/fop-0.20.5-bin.tar.gz
     51First we need the Java SDK installed.  See
     52http://www.linuxfromscratch.org/blfs/view/svn/general/j2sdk.html.
    4453
    45   Install FOP by running:
     54Now install JAI:
     55  - Download jai-1_1_2_01-lib-linux-i586-jdk.bin from
     56    http://java.sun.com/products/java-media/jai/downloads/download-1_1_2_01.html
     57(download the version for the JDK Install).
     58  - chmod +x jai-1_1_2_01-lib-linux-i586-jdk.bin
     59  - cd /opt/j2sdk && /path/to/jai-1_1_2_01-lib-linux-i586-jdk.bin
    4660
    47   cd /opt &&
    48   tar -xzvf /usr/src/fop-0.20.5-bin.tar.gz &&
    49   mv fop-0.20.5 fop
     61Next install ANT:
     62  - download http://www.apache.org/dist/ant/source/apache-ant-1.6.2-src.tar.bz2
     63  - tar -xjvf apache-ant-1.6.2-src.tar.bz2
     64    (recent versions of tar will warn about "A lone zero block at 33476" but
     65    this can be safely ignored)
     66  - cd apache-ant-1.6.2 && \
     67    ./boostrap.sh && \
     68    ./build && \
     69    install -d /opt/ant && \
     70    cp -r dist/* /opt/ant
     71  - edit your bash profile to set ANT_HOME=/opt/ant and PATH=$PATH:/opt/ant/bin
    5072
    51   Now set JAVA_HOME, FOP_HOME and PATH to values appropriate to your system.
     73And finally install FOP:
     74  - download http://www.apache.org/dist/xml/fop/fop-0.20.5-src.tar.gz
     75  - tar -xzvf fop-0.20.5-src.tar.gz
     76    (recent versions of tar will warn about "A lone zero block at 33476" but
     77    this can be safely ignored)
     78  - cd fop-0.20.5 &&
     79    ./build.sh &&
     80    install -d /opt/fop/{bin,lib} &&
     81    cp lib/{avalon-framework-cvs-20020806.jar,batik.jar} build/fop.jar \
     82    /opt/fop/lib &&
     83    cp fop.sh /opt/fop/bin
     84  - edit your bash profile to set FOP_HOME=/opt/fop and PATH=$PATH:/opt/fop/bin
Note: See TracChangeset for help on using the changeset viewer.