]> git.wh0rd.org Git - fontconfig.git/blob - debian/fontconfig.postrm
file fc-match.sgml was initially added on branch fc-2_4_branch.
[fontconfig.git] / debian / fontconfig.postrm
1 #! /bin/sh
2 # postrm script for fontconfig
3
4 set -e
5
6 CONF=/etc/fonts/local.conf
7
8 case "$1" in
9         purge)
10             if [ -x /usr/bin/ucf ]; then
11                 ucf --purge $CONF
12             fi
13             rm -f $CONF
14             rm -rf /var/lib/fontconfig /var/lib/defoma/fontconfig.d
15             for dir in /usr/share/fonts /usr/X11R6/lib/X11/fonts /usr/local/share/fonts ; do
16                 if [ -d $dir ]; then
17                     find $dir -name fonts.cache-1 | xargs rm -f
18                 fi
19             done
20             rmdir /usr/local/share/fonts 2> /dev/null || true
21             ;;
22 esac
23
24 #DEBHELPER#
25  
26 exit 0