home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- set -e
- # Automatically added by dh_installxmlcatalogs
- if [ "$1" = "configure" ]; then
- update-xmlcatalog --add --type system --id "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd" --package xml-core --local /usr/share/xml/schema/xml-core/catalog.xml
- update-xmlcatalog --add --type public --id "-//OASIS//DTD XML Catalogs V1.0//EN" --package xml-core --local /usr/share/xml/schema/xml-core/catalog.xml
-
- update-xmlcatalog --add --type system --id "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd" --package xml-core --root
- update-xmlcatalog --add --type public --id "-//OASIS//DTD XML Catalogs V1.0//EN" --package xml-core --root
-
- fi
- # End automatically added section
- # Automatically added by dh_installcatalogs
- if [ "$1" = "configure" ]; then
- rm -f /etc/sgml/xml-core.cat
- for ordcat in /usr/share/sgml/dtd/xml-core/catalog; do
- update-catalog --quiet --add /etc/sgml/xml-core.cat ${ordcat}
- done
- update-catalog --quiet --add --super /etc/sgml/xml-core.cat
- fi
- # End automatically added section
- # Automatically added by dh_usrlocal
- if [ "$1" = configure ]; then
- (
- while read line; do
- set -- $line
- dir="$1"; mode="$2"; user="$3"; group="$4"
- if [ ! -e "$dir" ]; then
- if mkdir "$dir" 2>/dev/null; then
- chown "$user":"$group" "$dir"
- chmod "$mode" "$dir"
- fi
- fi
- done
- ) << DATA
- /usr/local/share 2775 root staff
- /usr/local/share/xml 2775 root staff
- /usr/local/share/xml/schema 2775 root staff
- /usr/local/share/xml/misc 2775 root staff
- /usr/local/share/xml/entities 2775 root staff
- /usr/local/share/xml/declaration 2775 root staff
- DATA
- fi
- # End automatically added section
-