File: postinst

package info (click to toggle)
gwm 1.8d-2
  • links: PTS
  • area: main
  • in suites: potato, woody
  • size: 5,120 kB
  • ctags: 3,030
  • sloc: ansic: 19,617; makefile: 1,763; lisp: 437; sh: 321; ml: 21
file content (16 lines) | stat: -rw-r--r-- 453 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh

set -e

if [ "$1" = "configure" ]; then
    if [ -d /usr/doc -a ! -e /usr/doc/gwm -a -d /usr/share/doc/gwm ]; then
	ln -sf ../share/doc/gwm /usr/doc
    fi

    update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/X11/gwm 40 \
    --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz /usr/X11R6/man/man1/gwm.1x.gz

    if command -v update-menus > /dev/null 2>&1; then
	update-menus
    fi
fi