imagemagick/debian/imagemagick-common.postinst

38 lines
1.2 KiB
Bash

#!/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~ -- "$@"
# 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
dpkg-maintscript-helper rm_conffile \
/etc/ImageMagick/sRGB.icc 8:6.7.7.7-1~ -- "$@"
# 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~ -- "$@"
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 rm_conffile \
/etc/etc/ImageMagick-6/$f 8:6.9.2.10+dfsg-2~ -- "$@"
done
#DEBHELPER#