This file is indexed.

preinst is in dvipsk-ja 5.98+p1.7b-1.1ubuntu1.

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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#! /bin/sh
# preinst script for dvipsk-ja
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <new-preinst> `install'
#        * <new-preinst> `install' <old-version>
#        * <new-preinst> `upgrade' <old-version>
#        * <old-preinst> `abort-upgrade' <new-version>
#
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
    install|upgrade)
#        if [ "$1" = "upgrade" ]
#        then
#            start-stop-daemon --stop --quiet --oknodo  \
#                --pidfile /var/run/dvipsk-ja.pid  \
#                --exec /usr/sbin/dvipsk-ja 2>/dev/null || true
#        fi

    # Remove leftovers
    rm -f /etc/texmf/texmf.d/70dvipsj
    rm -f /etc/texmf/texmf.d/70DviPSJ

    # Remove old configuration files. 
    # As those files are broken anyway (#383266) and we now provide
    # a CHANGED version as conffile we can remove these files.
    if [ -f /etc/texmf/texmf.d/70dvipsj.cnf ] ; then
	MD5SUM=`md5sum /etc/texmf/texmf.d/70dvipsj.cnf | cut -f1 -d' '`
	if [ "$MD5SUM" = "687e0d9d530ac17150a328e00ac97489" ] ; then
	    rm /etc/texmf/texmf.d/70dvipsj.cnf
	fi
    fi
    if [ -f /etc/texmf/texmf.d/70dvipsj.cnf.bak ] ; then
	MD5SUM=`md5sum /etc/texmf/texmf.d/70dvipsj.cnf.bak | cut -f1 -d' '`
	if [ "$MD5SUM" = "687e0d9d530ac17150a328e00ac97489" ] ; then
	    rm /etc/texmf/texmf.d/70dvipsj.cnf.bak 
	fi
    fi

    dpkg-divert --package dvipsk-ja --add --rename --divert \
      /usr/bin/dvips.nonja /usr/bin/dvips
    dpkg-divert --package dvipsk-ja --add --rename --divert \
      /usr/share/man/man1/dvips.nonja.1.gz /usr/share/man/man1/dvips.1.gz

    ;;

    abort-upgrade)
    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0