File: postinst

package info (click to toggle)
ttf-alee 11.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,128 kB
  • sloc: makefile: 37; sh: 22
file content (27 lines) | stat: -rw-r--r-- 906 bytes parent folder | download
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
#!/bin/sh

#DEBHELPER#

FONTS="09t@rk Aqu@rk EunBandal EunBangwool EunJin EunGuseul EunGuseulMono Eunhasu GuseulMono Ongdalsam"

if [ "$1" = "configure" ]; then
    for FONT in $FONTS; do 
        defoma-font purge truetype \
            /usr/share/fonts/truetype/alee/$FONT.ttf > /dev/null || true
    done
    if [ -x "/usr/bin/mkfontdir" -o -x "/usr/bin/X11/mkfontdir" ]; then
        if [ -d "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" ]; then
            mkfontdir /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
        fi
    fi
    if [ -x "/usr/bin/fc-cache" ]; then
        echo -n "Regenerating fonts cache... "
        rm -f /usr/share/fonts/truetype/alee/fonts.cache*
        if (fc-cache -v 1>/var/log/fontconfig.log 2>&1); then
            echo "done."
        else
            echo "failed; see /var/log/fontconfig.log for more information."
            exit 1
        fi
    fi
fi