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 38 39 40 41 42 43
|
#!/bin/sh
set -e
case "$1" in
configure)
# Add Papersize to config file.
# can't do this now that the app-defaults file is a conffile
# -- Branden Robinson, 12 Mar 2001
# if [ -f /etc/papersize -a \
# "`cat /etc/papersize | egrep a4`" = "a4" -o \
# "`cat /etc/papersize | egrep A4`" = "A4" ]; then
# echo "*pageMedia: A4" >> /usr/X11R6/lib/X11/app-defaults/Ghostview
# fi
# update menus
if command -v update-menus > /dev/null 2>&1; then
update-menus
fi
# remove obselete mime entries
if command -v install-mime > /dev/null 2>&1; then
install-mime --remove --noparmcheck --package=ghostview
fi
# update mime
if command -v update-mime > /dev/null 2>&1; then
update-mime
fi
# Take care of fsstnd -> FHS move.
if [ -d /usr/doc -a ! -e /usr/doc/ghostview -a -d /usr/share/doc/ghostview ]; then
ln -sf ../share/doc/ghostview /usr/doc/ghostview
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
esac
exit 0
# vim:set ai tw=0 et sw=8 softtabstop=8:
|