Codebase list mozc / 07c4ab0
Add scripts for uim-mozc Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org> Nobuhiro Iwamatsu 13 years ago
2 changed file(s) with 91 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 #! /bin/sh
1 # postinst script for uim-mozc
2 #
3 # see: dh_installdeb(1)
4
5 set -e
6
7 # summary of how this script can be called:
8 # * <postinst> `configure' <most-recently-configured-version>
9 # * <old-postinst> `abort-upgrade' <new version>
10 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
11 # <new-version>
12 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
13 # <failed-install-package> <version> `removing'
14 # <conflicting-package> <version>
15 # for details, see http://www.debian.org/doc/debian-policy/ or
16 # the debian-policy package
17 #
18 # quoting from the policy:
19 # Any necessary prompting should almost always be confined to the
20 # post-installation script, and should be protected with a conditional
21 # so that unnecessary prompting doesn't happen if a package's
22 # installation fails and the `postinst' is called with `abort-upgrade',
23 # `abort-remove' or `abort-deconfigure'.
24
25 case "$1" in
26 configure)
27 if which uim-module-manager >/dev/null 2>&1; then
28 uim-module-manager --register mozc --path /etc/uim
29 fi
30 ;;
31
32 abort-upgrade|abort-remove|abort-deconfigure)
33
34 ;;
35
36 *)
37 echo "postinst called with unknown argument \`$1'" >&2
38 exit 1
39 ;;
40 esac
41
42 # dh_installdeb will replace this with shell code automatically
43 # generated by other debhelper scripts.
44
45 #DEBHELPER#
46
47 exit 0
48
49
0 #!/bin/sh
1 # prerm script for uim-mozc
2 #
3 # see: dh_installdeb(1)
4
5 set -e
6
7 # summary of how this script can be called:
8 # * <prerm> `remove'
9 # * <old-prerm> `upgrade' <new-version>
10 # * <new-prerm> `failed-upgrade' <old-version>
11 # * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
12 # * <deconfigured's-prerm> `deconfigure' `in-favour'
13 # <package-being-installed> <version> `removing'
14 # <conflicting-package> <version>
15 # for details, see http://www.debian.org/doc/debian-policy/ or
16 # the debian-policy package
17
18
19 case "$1" in
20 remove|deconfigure)
21 if which uim-module-manager >/dev/null 2>&1; then
22 uim-module-manager --unregister mozc --path /etc/uim
23 fi
24 ;;
25 upgrade|failed-upgrade)
26 ;;
27 *)
28 echo "prerm called with unknown argument \`$1'" >&2
29 exit 1
30 ;;
31 esac
32
33 # dh_installdeb will replace this with shell code automatically
34 # generated by other debhelper scripts.
35
36 #DEBHELPER#
37
38 exit 0
39
40