This file is indexed.

preinst is in wordpress 3.3.1+dfsg-1.

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

symlinks_to_drop="
/usr/share/wordpress/wp-includes/js/tinymce/plugins/inlinepopups
/usr/share/wordpress/wp-includes/js/tinymce/plugins/safari
/usr/share/wordpress/wp-includes/js/tinymce/plugins/paste
/usr/share/wordpress/wp-includes/js/tinymce/plugins/fullscreen
/usr/share/wordpress/wp-includes/js/tinymce/plugins/autosave
/usr/share/wordpress/wp-includes/js/tinymce/plugins/spellchecker/css
/usr/share/wordpress/wp-includes/js/tinymce/plugins/spellchecker/img
/usr/share/wordpress/wp-includes/js/tinymce/plugins/media
/usr/share/wordpress/wp-includes/js/tinymce/plugins/tabfocus
/usr/share/wordpress/wp-includes/js/tinymce/plugins/directionality
/usr/share/wordpress/wp-includes/js/crop
"

case "$1" in
    upgrade)
	if dpkg --compare-versions "$2" lt 3.2.1+dfsg-2; then
	    for symlink in $symlinks_to_drop; do
		if [ -h $symlink ]; then
		    echo "Dropping $symlink to convert it into a directory"
		    rm -f $symlink
		fi
	    done
	fi
    ;;
esac