This file is indexed.

preinst is in r-base-core 3.4.4-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
31
32
33
34
35
36
37
#!/bin/sh
#
# preinst script for the Debian GNU/Linux r-base-core package
# This version written by Dirk Eddelbuettel <edd@debian.org>   

set -e

# Automatically added by dh_installdeb/11.1.6ubuntu1
dpkg-maintscript-helper mv_conffile /etc/bash_completion.d/R /usr/share/bash-completion/completions/R -- "$@"
# End automatically added section

    
case "$1" in
    install|upgrade)
	# edd 06 Feb 2006 2.2.1-4 created this symlink, we now want a directory
    	if [ -h /usr/lib/R/share ]
	then
	    echo "Removing symbolic link /usr/lib/R/share"
	    rm /usr/lib/R/share
	fi
	# edd 27 Jul 2006 this is now a softlink but used to be a dir
	dir=/usr/share/doc/r-base-core/doc
    	if [ -d $dir ] && [ ! -h $dir ]
	then
	    rmdir $dir
	fi
    ;;
 
    abort-upgrade)
    ;;
 
    *)
        echo "preinst called with unknown argument \`$1'" >&2
    ;;
esac

exit 0