Commit 39c47c1d authored by Kan-Ru Chen's avatar Kan-Ru Chen

Cleanup trailing whitespaces

parent cc2921ac
#! /bin/sh #! /bin/sh
# postinst script for uim # postinst script for uim
# #
# see: dh_installdeb(1) # see: dh_installdeb(1)
set -e set -e
# summary of how this script can be called: # summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version> # * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version> # * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package> # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version> # <new-version>
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing' # <failed-install-package> <version> `removing'
# <conflicting-package> <version> # <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or # for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package # the debian-policy package
# #
# quoting from the policy: # quoting from the policy:
# Any necessary prompting should almost always be confined to the # Any necessary prompting should almost always be confined to the
# post-installation script, and should be protected with a conditional # post-installation script, and should be protected with a conditional
# so that unnecessary prompting doesn't happen if a package's # so that unnecessary prompting doesn't happen if a package's
# installation fails and the `postinst' is called with `abort-upgrade', # installation fails and the `postinst' is called with `abort-upgrade',
# `abort-remove' or `abort-deconfigure'. # `abort-remove' or `abort-deconfigure'.
case "$1" in case "$1" in
configure) configure)
if which uim-module-manager >/dev/null 2>&1; then if which uim-module-manager >/dev/null 2>&1; then
uim-module-manager --register chewing --path /etc/uim uim-module-manager --register chewing --path /etc/uim
fi fi
;; ;;
abort-upgrade|abort-remove|abort-deconfigure) abort-upgrade|abort-remove|abort-deconfigure)
...@@ -35,14 +35,14 @@ case "$1" in ...@@ -35,14 +35,14 @@ case "$1" in
;; ;;
*) *)
echo "postinst called with unknown argument \`$1'" >&2 echo "postinst called with unknown argument \`$1'" >&2
exit 1 exit 1
;; ;;
esac esac
# dh_installdeb will replace this with shell code automatically # dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts. # generated by other debhelper scripts.
#DEBHELPER# #DEBHELPER#
exit 0 exit 0
#!/bin/sh #!/bin/sh
# prerm script for #PACKAGE# # prerm script for #PACKAGE#
# #
# see: dh_installdeb(1) # see: dh_installdeb(1)
set -e set -e
# summary of how this script can be called: # summary of how this script can be called:
# * <prerm> `remove' # * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version> # * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version> # * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> # * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour' # * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing' # <package-being-installed> <version> `removing'
# <conflicting-package> <version> # <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or # for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package # the debian-policy package
case "$1" in case "$1" in
remove|deconfigure) remove|deconfigure)
if which uim-module-manager >/dev/null 2>&1; then if which uim-module-manager >/dev/null 2>&1; then
uim-module-manager --unregister chewing --path /etc/uim uim-module-manager --unregister chewing --path /etc/uim
fi fi
;; ;;
upgrade|failed-upgrade) upgrade|failed-upgrade)
;; ;;
*) *)
echo "prerm called with unknown argument \`$1'" >&2 echo "prerm called with unknown argument \`$1'" >&2
exit 1 exit 1
;; ;;
esac esac
# dh_installdeb will replace this with shell code automatically # dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts. # generated by other debhelper scripts.
#DEBHELPER# #DEBHELPER#
exit 0 exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment