PageRenderTime 39ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-26/SWIG/debian/postinst

#
Shell | 45 lines | 18 code | 7 blank | 20 comment | 0 complexity | 24845560540a2b88dcecdcf4d8e294a8 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #! /bin/sh
  2. # postinst script for swig1.3
  3. #
  4. # see: dh_installdeb(1)
  5. set -e
  6. # summary of how this script can be called:
  7. # * <postinst> `configure' <most-recently-configured-version>
  8. # * <old-postinst> `abort-upgrade' <new version>
  9. # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  10. # <new-version>
  11. # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  12. # <failed-install-package> <version> `removing'
  13. # <conflicting-package> <version>
  14. # for details, see /usr/share/doc/packaging-manual/
  15. #
  16. # quoting from the policy:
  17. # Any necessary prompting should almost always be confined to the
  18. # post-installation script, and should be protected with a conditional
  19. # so that unnecessary prompting doesn't happen if a package's
  20. # installation fails and the `postinst' is called with `abort-upgrade',
  21. # `abort-remove' or `abort-deconfigure'.
  22. case "$1" in
  23. configure)
  24. ;;
  25. abort-upgrade|abort-remove|abort-deconfigure)
  26. ;;
  27. *)
  28. echo "postinst called with unknown argument \`$1'" >&2
  29. exit 0
  30. ;;
  31. esac
  32. # dh_installdeb will replace this with shell code automatically
  33. # generated by other debhelper scripts.
  34. #DEBHELPER#
  35. exit 0