File: fontconfig-config.postrm

package info (click to toggle)
fontconfig 2.13.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,592 kB
  • sloc: ansic: 30,881; sh: 5,358; makefile: 1,117; sed: 16
file content (46 lines) | stat: -rw-r--r-- 1,078 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#! /bin/sh

set -e

CONF=/etc/fonts/local.conf

# Duplicate list of all possible links in /etc/fonts/conf.d created
# in postinst
unhinted="10-unhinted.conf"
autohint="10-autohint.conf"
hintnone="10-hinting-none.conf"
hintslight="10-hinting-slight.conf"
hintmedium="10-hinting-medium.conf"
hintfull="10-hinting-full.conf"
subpixel="10-sub-pixel-rgb.conf"
no_subpixel="10-no-sub-pixel.conf"
yes_bitmaps="70-yes-bitmaps.conf"
no_bitmaps="70-no-bitmaps.conf"

CONFFILES="$unhinted $autohint $hintnone $hintslight $hintmedium $hintfull $subpixel $no_subpixel $yes_bitmaps $no_bitmaps"
CONFDIR=/etc/fonts/conf.d

case "$1" in
	purge)
	    if which ucf >/dev/null 2>&1; then
		ucf --purge $CONF
	    fi
	    rm -f $CONF

	    # Remove any files linked in postinst
	    for c in $CONFFILES; do
		rm -f $CONFDIR/$c
	    done

	    # Remove an empty local fonts directory
	    rmdir /usr/local/share/fonts 2>/dev/null || true

	    # Purge debconf database
	    if [ -e /usr/share/debconf/confmodule ]; then
		. /usr/share/debconf/confmodule
		db_purge
	    fi
	    ;;
esac

#DEBHELPER#