~ubuntu-branches/ubuntu/natty/flwm/natty

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2008-05-14 14:56:40 UTC
  • mfrom: (1.1.3 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080514145640-nhlo62529sxaguu0
Tags: 1.02+cvs20080422-2
* Added 03-parantheses-warnings.dpatch. It adds some parantheses in the code
  and avoids so on some warnings from the compiler.
* Some minor header fixes for the 01 and 02 dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
 
2
 
2
3
set -e
3
4
 
4
 
# remove (autogenerated) legacy menu files
 
5
# Remove (autogenerated) legacy menu files
5
6
if [ -d /etc/X11/flwm/wmx ]; then
6
 
    rm -r /etc/X11/flwm/wmx
 
7
        rm -r /etc/X11/flwm/wmx
7
8
fi
8
9
 
9
10
update-alternatives --install \
10
 
    /usr/bin/x-window-manager x-window-manager /usr/bin/flwm 40 \
11
 
    --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
12
 
    /usr/share/man/man1/flwm.1.gz
 
11
        /usr/bin/x-window-manager x-window-manager /usr/bin/flwm 40 \
 
12
        --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
 
13
        /usr/share/man/man1/flwm.1.gz
13
14
 
14
15
inst=/etc/menu-methods/flwm
 
16
 
15
17
if [ -f $inst ]; then
16
18
        chmod a+x $inst
17
 
        if [ -x /usr/bin/update-menus ]; then
18
 
                update-menus
19
 
        fi
20
19
fi
 
20
 
 
21
#DEBHELPER#
 
22
 
 
23
exit 0