42 lines
2.8 KiB
Bash
Executable File
42 lines
2.8 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# Install Expression XML catalogs the Debian way.
|
|
# See: http://debian-xml-sgml.alioth.debian.org/
|
|
#
|
|
# Note: All changes in this file must also be done on file
|
|
# debian/expression.xmlcatalogs
|
|
#
|
|
# Note: The XHTML 1.0 catalogs should really be defined in another package, for
|
|
# example xml-core.
|
|
|
|
PREFIX=/usr/local
|
|
|
|
# Add XHTML entities to package catalog (/etc/xml/expression.xml).
|
|
update-xmlcatalog --add --package expression --type public --id "-//W3C//ENTITIES Latin 1 for XHTML" --local $PREFIX/share/xml/entities/expression/catalog.xml
|
|
update-xmlcatalog --add --package expression --type public --id "-//W3C//ENTITIES Special for XHTML" --local $PREFIX/share/xml/entities/expression/catalog.xml
|
|
update-xmlcatalog --add --package expression --type public --id "-//W3C//ENTITIES Symbols for XHTML" --local $PREFIX/share/xml/entities/expression/catalog.xml
|
|
update-xmlcatalog --add --package expression --type system --id "http://www.w3.org/TR/xhtml1/DTD/xhtml-" --local $PREFIX/share/xml/entities/expression/catalog.xml
|
|
|
|
# Add XHTML 1.0 DTDs to package catalog (/etc/xml/expression.xml).
|
|
update-xmlcatalog --add --package expression --type public --id "-//W3C//DTD XHTML 1.0 " --local $PREFIX/share/xml/schema/expression/catalog.xml
|
|
update-xmlcatalog --add --package expression --type system --id "http://www.w3.org/TR/xhtml1/DTD/xhtml1-" --local $PREFIX/share/xml/schema/expression/catalog.xml
|
|
|
|
# Add XHTML package catalog to root XML catalog (/etc/xml/catalog).
|
|
# First: XHTML entities.
|
|
update-xmlcatalog --add --root --package expression --type public --id "-//W3C//ENTITIES Latin 1 for XHTML"
|
|
update-xmlcatalog --add --root --package expression --type public --id "-//W3C//ENTITIES Special for XHTML"
|
|
update-xmlcatalog --add --root --package expression --type public --id "-//W3C//ENTITIES Symbols for XHTML"
|
|
update-xmlcatalog --add --root --package expression --type system --id "http://www.w3.org/TR/xhtml1/DTD/xhtml-"
|
|
# Next: XHTML 1.0 DTDs.
|
|
update-xmlcatalog --add --root --package expression --type public --id "-//W3C//DTD XHTML 1.0 "
|
|
update-xmlcatalog --add --root --package expression --type system --id "http://www.w3.org/TR/xhtml1/DTD/xhtml1-"
|
|
|
|
# Add Expression XML descriptions to package catalog (/etc/xml/expression.xml).
|
|
update-xmlcatalog --add --package expression --type system --id "http://www.entrouvert.org/expression/descriptions/" --local $PREFIX/share/xml/misc/expression/catalog.xml
|
|
|
|
# Add Expression XML schemas to package catalog (/etc/xml/expression.xml).
|
|
update-xmlcatalog --add --package expression --type system --id "http://www.entrouvert.org/expression/schemas/" --local $PREFIX/share/xml/schema/expression/catalog.xml
|
|
|
|
# Add Expression package catalog to root XML catalog (/etc/xml/catalog).
|
|
update-xmlcatalog --add --root --package expression --type system --id "http://www.entrouvert.org/expression/"
|