This file is indexed.

preinst is in fortunes-es-off 1.32.

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

msg_found_obsolete_dir="Eliminando directorio obsoleto"
msg_found_link="OK, encontrado como un link el directorio"
msg_instaling_link="Instalaci�n correcta. No est� el directorio obsoleto"
msg_unable_to_remove="No se pudo eliminar el directorio. Examine manualmente"

msg_found_obsolete_dir="Removing obsolete directory"
msg_found_link="OK, found as a link the directory"
msg_instaling_link="Installing O.K. Not found obsolete dir"
msg_unable_to_remove="Unable to remove dir. Please check"

check_fix_obsolete_dirs(){
    BAD_DIR="$1"
    if [ -d "$BAD_DIR" ]; then
	if [ ! -L $BAD_DIR ]; then
	    echo "*** $msg_found_obsolete_dir $BAD_DIR"
	    rm -f $BAD_DIR/changelog.gz $BAD_DIR/copyright
	    rmdir $BAD_DIR || echo "$BAD_DIR: $msg_unable_to_remove"
	else
	    echo "*** $msg_found_link $BAD_DIR"
	fi
    else
	echo "--- $msg_installing_link $BAD_DIR"
    fi
}

for i in /usr/doc/fortunes-es-off /usr/share/doc/fortunes-es-off; do
    check_fix_obsolete_dirs $i
done