~anuchit/clubdistro/clubuntu-anoochit

« back to all changes in this revision

Viewing changes to ttf-iannnnn-0.1ubuntu1/debian/postinst

  • Committer: Anuchit Chalothorn
  • Date: 2008-06-17 07:23:31 UTC
  • Revision ID: anuchit@redlinesoft.net-20080617072331-ar01n69ar2201v7j
initail new branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
#DEBHELPER#
 
4
 
 
5
if [ "$1" = "configure" ]; then
 
6
    if [ -x "/usr/bin/mkfontdir" -o -x "/usr/bin/X11/mkfontdir" ]; then
 
7
        if [ -d "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" ]; then
 
8
            mkfontdir /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
 
9
        fi
 
10
    fi
 
11
    if [ -x "/usr/bin/fc-cache" ]; then
 
12
        echo -n "Regenerating fonts cache... "
 
13
        if (fc-cache -f -v 1>/var/log/fontconfig.log 2>&1); then
 
14
            echo "done."
 
15
        else
 
16
            echo "failed; see /var/log/fontconfig.log for more information."
 
17
            exit 1
 
18
        fi
 
19
    fi
 
20
fi