]> git.decadent.org.uk Git - ion3.git/blob - debian/ion3.postinst
[svn-inject] Applying Debian modifications to trunk
[ion3.git] / debian / ion3.postinst
1 #!/bin/sh
2 set -e
3
4 if [ -h /etc/X11/ion3/draw.lua ]; then
5     rm -f /etc/X11/ion3/draw.lua
6 fi
7
8 ln -s look_clean.lua /etc/X11/ion3/draw.lua
9
10 update-alternatives --install /usr/bin/ion ion /usr/bin/ion3 29 \
11     --slave /usr/share/man/man1/ion.1.gz ion.1.gz \
12     /usr/share/man/man1/ion3.1.gz
13
14 update-alternatives --install \
15     /usr/bin/x-window-manager x-window-manager /usr/bin/ion3 49 \
16     --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
17     /usr/share/man/man1/ion3.1.gz
18
19 update-alternatives --install \
20     /usr/bin/x-window-manager x-window-manager /usr/bin/pwm3 48 \
21     --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
22     /usr/share/man/man1/pwm3.1.gz
23
24 # i18n menu method
25 inst=/etc/menu-methods/ion3-i18n
26 if [ -f $inst ]; then
27     chmod a+x $inst
28 fi
29
30 #DEBHELPER#
31
32 # Remove the old now-renamed generated Debian menu
33 rm -f /var/lib/ion3/debian-menus.lua