This file is indexed.

preinst is in fonts-arphic-uming 0.2.20080216.2-4.

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
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
set -e

# Purge leftovers from the old package if present

PACKAGE=ttf-arphic-uming
OLDTTF=uming.ttf
OLDMBETTF=umingmbe.ttf

if [ -x /usr/bin/defoma-font ]; then
  if [ -e /etc/defoma/hints/${PACKAGE}.hints ]; then
    defoma-font -t purge-all /etc/defoma/hints/${PACKAGE}.hints
  fi
  if [ -e /etc/defoma/hints/${PACKAGE}-mbe.hints ]; then
    defoma-font -t purge-all /etc/defoma/hints/${PACKAGE}-mbe.hints
    rm -f /etc/defoma/hints/${PACKAGE}-mbe.hints
  fi
fi

for X in [ /etc/fonts/conf.d/70-${PACKAGE}.conf \
/etc/fonts/conf.d/${PACKAGE} \
/var/lib/defoma/x-ttcidconf.d/dirs/TrueType/${OLDTTF} \
/var/lib/defoma/x-ttcidconf.d/dirs/TrueType/${OLDMBETTF} \
]; do
  if [ -e ${X} ]; then
    rm -f ${X};
  fi;
done

# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/defoma/hints/ttf-arphic-uming.hints 0.2.20080216.2-1 -- "$@"
# End automatically added section