home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / scim-bridge-agent.postinst < prev    next >
Encoding:
Text File  |  2008-10-26  |  624 b   |  34 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. ua_inst () {
  5.     update-alternatives \
  6.         --install /etc/X11/xinit/xinput.d/$1 xinput-$1 \
  7.         /etc/X11/xinit/xinput.d/$2 $3 ;
  8. }
  9.  
  10. case "$1" in
  11.     configure)
  12.         #ua_inst all_ALL scim-bridge  0
  13.         ua_inst ja_JP   scim-bridge 60
  14.         ua_inst ko_KR   scim-bridge 60
  15.         ua_inst zh_CN   scim-bridge 60
  16.         ua_inst zh_TW   scim-bridge 60
  17.         ua_inst zh_HK   scim-bridge 60
  18.         ua_inst zh_SG   scim-bridge 60
  19.     ;;
  20.  
  21.     abort-upgrade|abort-remove|abort-deconfigure)
  22.  
  23.     ;;
  24.  
  25.     *)
  26.         echo "postinst called with unknown argument \`$1'" >&2
  27.         exit 1
  28.     ;;
  29. esac
  30.  
  31.  
  32.  
  33.  
  34.