prerm 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #! /bin/sh
  2. # Pre-remove script for ‘bsdgames’ package.
  3. #
  4. # Man page: ‘dh_installdeb(1)’
  5. set -e
  6. # Summary of ways this script can be called:
  7. # * <prerm> ‘remove’
  8. # * <old-prerm> ‘upgrade’ <new-version>
  9. # * <new-prerm> ‘failed-upgrade’ <old-version>
  10. # * <conflictor-prerm> ‘remove’
  11. # ‘in-favour’ <package> <new-version>
  12. # * <deconfigured-prerm> ‘deconfigure’
  13. # ‘in-favour’ <package-being-installed> <version>
  14. # ‘removing’ <conflicting-package> <version>
  15. # For details, see <URL:http://www.debian.org/doc/debian-policy/> or
  16. # the ‘debian-policy’ package.
  17. action="$1"
  18. case "$action" in
  19. remove|deconfigure)
  20. update-alternatives --remove \
  21. adventure /usr/games/bsdgames-adventure
  22. ;;
  23. upgrade|failed-upgrade)
  24. ;;
  25. *)
  26. printf "prerm called with unknown action ‘%s’\n" "$action" >&2
  27. exit 1
  28. ;;
  29. esac
  30. # dh_installdeb will replace this with shell code automatically
  31. # generated by other debhelper scripts.
  32. #DEBHELPER#
  33. exit 0