home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / xml-core.prerm < prev    next >
Encoding:
Text File  |  2008-11-06  |  1.1 KB  |  31 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installxmlcatalogs
  4. if [ "$1" = "remove" ] || [ "$1" = "upgrade" ]; then
  5.     update-xmlcatalog --del --type system --id "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd" --root || true
  6.     update-xmlcatalog --del --type public --id "-//OASIS//DTD XML Catalogs V1.0//EN" --root || true
  7.  
  8.     update-xmlcatalog --del --type system --id "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd" --package xml-core || true
  9.     update-xmlcatalog --del --type public --id "-//OASIS//DTD XML Catalogs V1.0//EN" --package xml-core || true
  10.  
  11. fi
  12. # End automatically added section
  13. # Automatically added by dh_installcatalogs
  14. if [ "$1" = "remove" ] || [ "$1" = "upgrade" ]; then
  15.     update-catalog --quiet --remove --super /etc/sgml/xml-core.cat
  16. fi
  17. # End automatically added section
  18. # Automatically added by dh_usrlocal
  19. (
  20.     while read dir; do
  21.         rmdir "$dir" 2>/dev/null || true
  22.     done
  23. ) << DATA
  24. /usr/local/share/xml/declaration
  25. /usr/local/share/xml/entities
  26. /usr/local/share/xml/misc
  27. /usr/local/share/xml/schema
  28. /usr/local/share/xml
  29. DATA
  30. # End automatically added section
  31.