home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / xml-core / examples / foo.postinst next >
Encoding:
Text File  |  2007-03-10  |  1.2 KB  |  40 lines

  1. #!/bin/sh
  2. ## ----------------------------------------------------------------------
  3. ## debian/postinst: post-installation script for foo
  4. ## ----------------------------------------------------------------------
  5.  
  6. ## ----------------------------------------------------------------------
  7. ## Abort if any command returns an error value
  8. set -e
  9.  
  10. ## --------------------------------------------------------------
  11. ## Install XML catalog entries
  12. if [ "$1" = "configure" ]
  13. then
  14.  
  15.     update-xmlcatalog --verbose --add --package foo --type public \
  16.         --id "-//FOO//DTD FOO//EN" \
  17.         --local /usr/share/xml/schema/foo/catalog.xml
  18.  
  19.     update-xmlcatalog --verbose --add --package foo --type system \
  20.         --id "http://www.foo.org/foo/foo.dtd" \
  21.         --local /usr/share/xml/schema/foo/catalog.xml
  22.  
  23.     update-xmlcatalog --verbose --add --root --type public \
  24.         --id "-//FOO//DTD FOO//EN" \
  25.         --package foo
  26.  
  27.     update-xmlcatalog --verbose --add --root --type system \
  28.         --id "http://www.foo.org/foo/foo.dtd" \
  29.         --package foo
  30.  
  31. fi
  32.  
  33. ## ----------------------------------------------------------------------
  34. ## Automatically added sections
  35. #DEBHELPER#
  36.  
  37. exit 0
  38.  
  39. ## ----------------------------------------------------------------------
  40.