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 / prerm < prev   
Encoding:
Text File  |  2003-09-21  |  793 b   |  26 lines

  1. #!/bin/sh
  2. ## ----------------------------------------------------------------------
  3. ## debian/prerm: preremoval script for foo
  4. ## ----------------------------------------------------------------------
  5.  
  6. ## ----------------------------------------------------------------------
  7. ## Abort if any command returns an error value
  8. set -e
  9.  
  10. ## --------------------------------------------------------------
  11. ## Remove SGML catalog entries
  12. PACKAGE=foo
  13. CENTRALCAT="/etc/sgml/${PACKAGE}.cat"
  14. if [ "$1" = "remove" ] || [ "$1" = "upgrade" ]
  15. then
  16.     update-catalog --quiet --remove --super ${CENTRALCAT}
  17. fi
  18.  
  19. ## ----------------------------------------------------------------------
  20. ## Automatically added sections
  21. #DEBHELPER#
  22.  
  23. exit 0
  24.  
  25. ## ----------------------------------------------------------------------
  26.