This file is indexed.

postinst is in yorick 2.2.04+dfsg1-9.

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
#!/bin/sh
set -e
if [ "$1" = "configure" ] && [ -x "`which update-yorickdoc 2>/dev/null`" ]; then
	update-yorickdoc --auto
fi
# Automatically added by dh_installmenu/11.1.6ubuntu1
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section
# Automatically added by dh_usrlocal/11.1.6ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ]; then
(
	while read line; do
		set -- $line
		dir="$1"; mode="$2"; user="$3"; group="$4"
		if [ ! -e "$dir" ]; then
			if mkdir "$dir" 2>/dev/null; then
				chown "$user":"$group" "$dir"
				chmod "$mode" "$dir"
			fi
		fi
	done
) << DATA
/usr/local/lib 02775 root staff
/usr/local/lib/yorick 02775 root staff
/usr/local/lib/yorick/contrib 02775 root staff
/usr/local/lib/yorick/data 02775 root staff
/usr/local/lib/yorick/glade 02775 root staff
/usr/local/lib/yorick/i 02775 root staff
/usr/local/lib/yorick/i-start 02775 root staff
/usr/local/lib/yorick/i0 02775 root staff
/usr/local/lib/yorick/lib 02775 root staff
/usr/local/lib/yorick/packages 02775 root staff
/usr/local/lib/yorick/python 02775 root staff
DATA
fi
# End automatically added section