| 1 |
#! /bin/sh |
| 2 |
# postinst script for fonts-vlgothic |
| 3 |
|
| 4 |
set -e |
| 5 |
|
| 6 |
# font alternatives |
| 7 |
ALT_NAME="fonts-japanese-gothic" |
| 8 |
FONT_ENTRY="/usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf" |
| 9 |
FONT_PRIORITY=60 |
| 10 |
|
| 11 |
add_alternate_font_entry() |
| 12 |
{ |
| 13 |
update-alternatives --install \ |
| 14 |
/usr/share/fonts/truetype/$ALT_NAME.ttf \ |
| 15 |
$ALT_NAME.ttf \ |
| 16 |
$FONT_ENTRY \ |
| 17 |
$FONT_PRIORITY |
| 18 |
} |
| 19 |
|
| 20 |
case "$1" in |
| 21 |
configure) |
| 22 |
add_alternate_font_entry |
| 23 |
|
| 24 |
;; |
| 25 |
|
| 26 |
abort-upgrade|abort-remove|abort-deconfigure) |
| 27 |
|
| 28 |
;; |
| 29 |
|
| 30 |
*) |
| 31 |
echo "postinst called with unknown argument \`$1'" >&2 |
| 32 |
exit 1 |
| 33 |
;; |
| 34 |
esac |
| 35 |
|
| 36 |
# dh_installdeb will replace this with shell code automatically |
| 37 |
# generated by other debhelper scripts. |
| 38 |
|
| 39 |
#DEBHELPER# |
| 40 |
|
| 41 |
exit 0 |