]> git.decadent.org.uk Git - ion3.git/blob - debian/ion3.postinst
Update to relaxed licence
[ion3.git] / debian / ion3.postinst
1 #!/bin/sh
2 set -e
3 . /usr/share/debconf/confmodule
4
5 UPSTREAM_VERSION=
6 DEBIAN_VERSION=
7
8 if [ -h /etc/X11/ion3/draw.lua ]; then
9     rm -f /etc/X11/ion3/draw.lua
10 fi
11
12 ln -s look_clean.lua /etc/X11/ion3/draw.lua
13
14 update-alternatives --install /usr/bin/ion ion /usr/bin/ion3 29 \
15     --slave /usr/share/man/man1/ion.1.gz ion.1.gz \
16     /usr/share/man/man1/ion3.1.gz
17
18 update-alternatives --install \
19     /usr/bin/x-window-manager x-window-manager /usr/bin/ion3 49 \
20     --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
21     /usr/share/man/man1/ion3.1.gz
22
23 update-alternatives --install \
24     /usr/bin/x-window-manager x-window-manager /usr/bin/pwm3 48 \
25     --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
26     /usr/share/man/man1/pwm3.1.gz
27
28 # i18n menu method
29 inst=/etc/menu-methods/ion3-i18n
30 if [ -f $inst ]; then
31     chmod a+x $inst
32 fi
33
34 # Initialise extra configuration file list if missing
35 [ -f /etc/X11/ion3/cfg_debian_ext.lua ] || >/etc/X11/ion3/cfg_debian_ext.lua
36
37 #DEBHELPER#
38
39 # Remove the old now-renamed generated Debian menu
40 rm -f /var/lib/ion3/debian-menus.lua