This file is indexed.

postinst is in mono-gac 4.6.2.7+dfsg-1ubuntu1.

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

# On upgrades we need to repopulate the GAC and framework paths
# to accomodate any changes in layout
#
# We only need to do this on upgrade; on first configure we know
# that any GAC libraries will call gac-install-package later.
if [ -n "$2" ]; then
    # Install the GAC
    if [ -x /usr/share/cli-common/gac-install ]; then
	/usr/share/cli-common/gac-install mono
    fi
    # Install any framework libs
    if [ -x /usr/share/cli-common/framework-install ]; then
	/usr/share/cli-common/framework-install mono
    fi
fi

# Update the alternatives
update-alternatives \
	--install /usr/bin/cli-gacutil global-assembly-cache-tool /usr/bin/gacutil 10 \
	--slave /usr/share/man/man1/cli-gacutil.1.gz cli-gacutil.1.gz /usr/share/man/man1/gacutil.1.gz