This file is indexed.

postinst is in sawfish 1:1.11.90-1.1.

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
#!/bin/sh

set -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

fi

# Automatically added by dh_installemacsen/11ubuntu1
if [ "$1" = "configure" ] && [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common -a -x /usr/lib/emacsen-common/emacs-package-install ]
then
	/usr/lib/emacsen-common/emacs-package-install --postinst sawfish
fi
# End automatically added section
# Automatically added by dh_installmenu/11ubuntu1
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_installdeb/11ubuntu1
dpkg-maintscript-helper symlink_to_dir /usr/share/doc/sawfish /usr/share/doc/sawfish-data 1:1.11-1~ -- "$@"
# End automatically added section


exit 0