~ubuntu-branches/ubuntu/utopic/flwm/utopic

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Bill Allombert
  • Date: 2005-04-08 12:37:28 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050408123728-wnbw3utqy45nlanx
Tags: 1.00-7
* Rebuild with g++ with correct ABI.
* Add Fl::visible_focus(0) in initialize(). This should fix
  Alt-Enter with GNOME2 apps. Closes: #246090. Thanks Duncan Sargeant
* Ship the menu-method not executable in the tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
set -e
3
 
wm=flwm
4
3
 
5
4
# remove the obsolete /etc/X11/window-managers entry on upgrade
6
5
if [ "$1" = "configure" ]; then
12
11
        esac
13
12
    fi
14
13
 
15
 
    if [ -d /usr/doc -a ! -e /usr/doc/flwm -a -d /usr/share/doc/flwm ]; then
16
 
        ln -sf ../share/doc/flwm /usr/doc/flwm
17
 
    fi
18
14
fi
19
15
 
20
 
if test -x /usr/sbin/wm-menu-config; then wm-menu-config $wm on;fi
21
 
 
22
16
update-alternatives --install \
23
17
    /usr/bin/x-window-manager x-window-manager /usr/bin/flwm 40 \
24
18
    --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
25
19
    /usr/share/man/man1/flwm.1.gz
26
20
 
27
21
inst=/etc/menu-methods/flwm
28
 
if [ -x /usr/bin/update-menus -a -f $inst ] ; then
29
 
        chmod a+x $inst
30
 
        update-menus
 
22
if [ -f $inst ]; then
 
23
        chmod a+x $inst
 
24
        if [ -x /usr/bin/update-menus ]; then
 
25
                update-menus
 
26
        fi
31
27
fi