Debian Codegraph @

debian/fonts-hanazono.postinst

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