This file is indexed.

postinst is in xfonts-bolkhov-koi8r-75dpi 1.1.20001007-6ubuntu3.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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

# Automatically added by dh_installxfonts
if which update-fonts-dir >/dev/null 2>&1; then
	update-fonts-dir --x11r7-layout 75dpi
fi
# End automatically added section