File: xfonts-bolkhov-koi8r-75dpi.postinst

package info (click to toggle)
xfonts-bolkhov 1.1.20001007-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze, wheezy
  • size: 5,760 kB
  • ctags: 165
  • sloc: makefile: 134; perl: 93; sh: 14
file content (18 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (26)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

if [ "$1" = "configure" ]; then
    fontdirs="koi8-r.misc koi8-r.75dpi koi8-r.100dpi"
    for currentdir in $fontdirs; do
	longdir=/usr/lib/X11/fonts/$currentdir
	if [ -d $longdir ]; then
	    if [ $(find $longdir| egrep -v '/(fonts.dir|fonts.alias|encodings.dir)$'| wc -l) -eq 1 ]; then
		rm $longdir/fonts.dir 2>/dev/null || true
		rm $longdir/fonts.alias 2>/dev/null || true
		rm $longdir/encodings.dir 2>/dev/null || true
		rmdir $longdir
	    fi
	fi
    done
fi

#DEBHELPER#