This file is indexed.

postinst is in sawfish 1:1.5.3-2build1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/sh -e

if [ "$1" = "configure" ]; then

# Move old conffiles in < 0.37.2-2
  if [ -e /etc/X11/sawfish/defaults.jl ]; then
    mv /etc/X11/sawfish/defaults.jl /etc/X11/sawfish/site-init.d/00debian.jl
  fi
  if [ -e /etc/X11/sawfish/menu.jl ]; then
    mv /etc/X11/sawfish/menu.jl /etc/X11/sawfish/site-init.d/00menu.jl
  fi

# Remove old conffiles in < 0.38-1
	rm /etc/X11/sawfish/site-init.d/defaults.jl 2>/dev/null || true
	rm /etc/X11/sawfish/site-init.d/menu.jl 2>/dev/null || true

# Be sure to remove this old file
	rm /etc/X11/sawfish/site-init.jl 2>/dev/null || true

# Remove old generated menu file in /etc
	rm /etc/X11/sawfish/debian-menu.jl 2>/dev/null || true

# Touch all jlc files
  find /usr/share/sawfish/*/lisp -name *.jlc | xargs touch

# Because dh_installwm don't install a slave manpage
  update-alternatives --install /usr/bin/x-window-manager \
  x-window-manager /usr/bin/sawfish 70 \
  --slave /usr/share/man/man1/x-window-manager.1.gz \
  x-window-manager.1.gz /usr/share/man/man1/sawfish.1.gz

    # We should have a symlink, instead of a doc dir,
    # but dpkg will not replace one for the other, so we
    # do it by hand.
    # Closes: #556991.
    DOCDIR=/usr/share/doc/sawfish
    if [ ! -L $DOCDIR ] ; then
        rmdir $DOCDIR
        ln -s sawfish-data $DOCDIR
    fi

fi

# Automatically added by dh_installmenu
inst=/etc/menu-methods/sawfish
if [ -f $inst ]; then
	chmod a+x $inst
	if [ -x "`which update-menus 2>/dev/null`" ]; then
		update-menus
	fi
fi
# End automatically added section
# Automatically added by dh_installemacsen
if [ "$1" = "configure" ] && [ -x /usr/lib/emacsen-common/emacs-package-install ]
then
	/usr/lib/emacsen-common/emacs-package-install sawfish
fi
# End automatically added section


exit 0