This file is indexed.

postinst is in ruby1.9.1 1.9.3.0-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
23
24
25
26
27
28
29
30
#!/bin/sh

set -e

if [ "$1" = "configure" ]
then
        update-alternatives --install /usr/bin/gem gem \
            /usr/bin/gem1.9.1 10 \
	    --slave /usr/share/man/man1/gem.1.gz gem.1.gz /usr/share/man/man1/gem1.9.1.1.gz \
            --slave /etc/bash_completion.d/gem bash_completion_gem /etc/bash_completion.d/gem1.9.1
        RUBYVER=1.9.1
        update-alternatives \
		--install /usr/bin/ruby ruby /usr/bin/ruby${RUBYVER} 10 \
        --slave /usr/bin/erb erb /usr/bin/erb${RUBYVER} \
        --slave /usr/bin/testrb testrb /usr/bin/testrb${RUBYVER} \
        --slave /usr/bin/irb irb /usr/bin/irb${RUBYVER} \
        --slave /usr/bin/rdoc rdoc /usr/bin/rdoc${RUBYVER} \
        --slave /usr/bin/ri ri /usr/bin/ri${RUBYVER} \
        --slave /usr/share/man/man1/ruby.1.gz ruby.1.gz /usr/share/man/man1/ruby${RUBYVER}.1.gz \
        --slave /usr/share/man/man1/erb.1.gz erb.1.gz /usr/share/man/man1/erb${RUBYVER}.1.gz \
        --slave /usr/share/man/man1/testrb.1.gz testrb.1.gz /usr/share/man/man1/testrb${RUBYVER}.1.gz \
        --slave /usr/share/man/man1/irb.1.gz irb.1.gz /usr/share/man/man1/irb${RUBYVER}.1.gz \
        --slave /usr/share/man/man1/rdoc.1.gz rdoc.1.gz /usr/share/man/man1/rdoc${RUBYVER}.1.gz \
        --slave /usr/share/man/man1/ri.1.gz ri.1.gz /usr/share/man/man1/ri${RUBYVER}.1.gz
fi
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section