components/docbook/xsl/files/docbook-style-xsl-install.sh
changeset 7043 5286838de66c
equal deleted inserted replaced
7042:582373e0fdee 7043:5286838de66c
       
     1 #!/usr/bin/bash
       
     2 
       
     3 #
       
     4 # docbook-style-xsl %post
       
     5 #
       
     6 # cleanup catalog from previous release
       
     7 /usr/bin/xmlcatalog -v --noout --del "http://docbook.sourceforge.net/release/xsl/1.69.1" /etc/xml/catalog
       
     8 
       
     9 export version=1.75.2
       
    10 
       
    11 CATALOG=/etc/xml/catalog
       
    12 
       
    13 xmlcatalog --noout --add "rewriteSystem" \
       
    14  "http://docbook.sourceforge.net/release/xsl/${version}" \
       
    15  "file:///usr/share/sgml/docbook/xsl-stylesheets-${version}" $CATALOG
       
    16 xmlcatalog --noout --add "rewriteURI" \
       
    17  "http://docbook.sourceforge.net/release/xsl/${version}" \
       
    18  "file:///usr/share/sgml/docbook/xsl-stylesheets-${version}" $CATALOG
       
    19 xmlcatalog --noout --add "rewriteSystem" \
       
    20  "http://docbook.sourceforge.net/release/xsl/current" \
       
    21  "file:///usr/share/sgml/docbook/xsl-stylesheets-${version}" $CATALOG
       
    22 xmlcatalog --noout --add "rewriteURI" \
       
    23  "http://docbook.sourceforge.net/release/xsl/current" \
       
    24  "file:///usr/share/sgml/docbook/xsl-stylesheets-${version}" $CATALOG