File: postinst

package info (click to toggle)
ttf-alee 12
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,108 kB
  • sloc: makefile: 28; sh: 16
file content (20 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

#DEBHELPER#

if [ "$1" = "configure" ]; then
    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... "
        if (fc-cache -f -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