home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / sgml-base / examples / postinst next >
Encoding:
Text File  |  2003-09-21  |  1.0 KB  |  32 lines

  1. #!/bin/sh
  2. ## ----------------------------------------------------------------------
  3. ## debian/postinst: postinstallation script for foo
  4. ## ----------------------------------------------------------------------
  5.  
  6. ## ----------------------------------------------------------------------
  7. ## Abort if any command returns an error value
  8. set -e
  9.  
  10. ## --------------------------------------------------------------
  11. ## Install SGML catalog entries
  12. PACKAGE=foo
  13. CENTRALCAT="/etc/sgml/${PACKAGE}.cat"
  14. ORDCATS="${PACKAGE}/dtd/sgml/1.0/catalog ${PACKAGE}/entities/catalog"
  15. if [ "$1" = "configure" ]
  16. then
  17.     install-sgmlcatalog --quiet --remove ${PACKAGE} || true
  18.     for ordcat in ${ORDCATS}
  19.     do
  20.         update-catalog --quiet --add ${CENTRALCAT} /usr/share/sgml/${ordcat}
  21.     done
  22.     update-catalog --quiet --add --super ${CENTRALCAT}
  23. fi
  24.  
  25. ## ----------------------------------------------------------------------
  26. ## Automatically added sections
  27. #DEBHELPER#
  28.  
  29. exit 0
  30.  
  31. ## ----------------------------------------------------------------------
  32.