debian/fonts-hanazono.preinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | OLD_ALT_NAME="ttf-japanese-mincho" |
| 6 | OLD_FONT_ENTRY="/usr/share/fonts/truetype/hanazono/hanazono.ttf" |
| 7 | |
| 8 | PKG="ttf-hanazono" |
| 9 | |
| 10 | case "$1" in |
| 11 | install|upgrade) |
| 12 | # do this on new installations, too, as these could be "upgrades" |
| 13 | # from ttf-hanazono |
| 14 | if dpkg --compare-versions "$2" lt "20120421-1.1~"; then |
| 15 | update-alternatives --remove $OLD_ALT_NAME.ttf $OLD_FONT_ENTRY |
| 16 | fi |
| 17 | |
| 18 | esac |
| 19 | |
| 20 | #DEBHELPER# |
| 21 | exit 0 |