summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-xfonts
blob: af02e1248c16cae9048f498119544c1583e3a494 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
makefontdir() {
    ENCDIR=/usr/lib/X11/fonts/encodings
    if [ -d $ENCDIR -a -d $ENCDIR/large ]; then
	/usr/bin/X11/mkfontdir -e $ENCDIR -e $ENCDIR/large "$@"
    else
	/usr/bin/X11/mkfontdir "$@"
    fi
}

if [ "$1" = "configure" ]; then
	fontdirs="#FONTDIRS#"
	updatecmds="#UPDATECMDS#"
	
	for dir in $fontdirs; do
		for currentcmd in $updatecmds; do
			$currentcmd /usr/lib/X11/fonts/$dir
		done
	done
fi