summarylogtreecommitdiffstats
path: root/uim-mozc.install
blob: 586121d9a1afb17aae3494fe1c5cf59a6260d77a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
  echo -n "Registering mozc on uim..."
  uim-module-manager --register mozc
  [[ $? != 0 ]] && echo "Failed." || echo "Done."

  cat << _EOF
  ==> You must run the following command to use mozc
  ==> whenever you upgrade or (re-)install uim.

  \`sudo uim-module-manager --register mozc'

_EOF
}

post_remove() {
  echo -n "Unregistering mozc from uim..."
  uim-module-manager --unregister mozc
  [[ $? != 0 ]] && echo "Failed." || echo "Done."
}