File: kinput2-common.postinst

package info (click to toggle)
kinput2 3.0-19
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,688 kB
  • ctags: 4,649
  • sloc: ansic: 45,508; makefile: 100; sh: 35
file content (21 lines) | stat: -rw-r--r-- 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

. /usr/share/debconf/confmodule

XRESOURCE=/etc/X11/Xresources/kinput2-common

if [ ! -f $XRESOURCE ]; then cat << EOF > $XRESOURCE
Kinput2*OverTheSpotConversion.UseOverrideShellForMode: True
Kinput2*CcWnn.ccdef: ccdef.kinput2
EOF
fi

db_get kinput2-common/defaults/keybindings
if [ "$RET" = "Egg" ]; then
    POSTFIX=".egg"
fi
sed "s/\(Kinput2\*CcWnn\.ccdef:\).*/\1\ ccdef.kinput2$POSTFIX/g" < $XRESOURCE > $XRESOURCE.new

mv -f $XRESOURCE.new $XRESOURCE

#DEBHELPER#