This file is indexed.

preinst is in imagemagick-common 8:6.9.7.4+dfsg-16ubuntu6.

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

set -e 

# remove after squeeze + 2
dpkg-maintscript-helper rm_conffile \
               /etc/ImageMagick/sRGB.icm 8:6.7.7.0-1~ -- "$@"

# remove after squeeze + 2
dpkg-maintscript-helper rm_conffile \
               /etc/ImageMagick/sRGB.icc 8:6.7.7.7-1~ -- "$@"


# We move a whole bunch of configuration files:
# remove after jessie + 2
for f in coder.xml colors.xml delegates.xml log.xml magic.xml \
    mime.xml policy.xml quantization-table.xml thresholds.xml \
    type-dejavu.xml type-ghostscript.xml type-windows.xml \
    type.xml; do
  dpkg-maintscript-helper mv_conffile \
      /etc/ImageMagick/$f /etc/ImageMagick-6/$f 8:6.8.4.2-1~ -- "$@"
done

# remove after strech+2
dpkg-maintscript-helper dir_to_symlink \
	    /usr/share/doc/imagemagick-common /usr/share/doc/imagemagick-6-common 8:6.9.2.10+dfsg-1~ -- "$@"