This file is indexed.

postinst is in anthy 9100h-23ubuntu2.

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
#! /bin/sh

DICTDIR=/usr/share/anthy/dic
UPDATE=/usr/sbin/update-anthy-dics
DICTLIST="2ch.t udict zipcode.t utf8.t tankanji.t extra.t compound.t base.t \
	  adjust.t gtankan.ctd gcannaf.ctd gcanna.ctd"
EXTRADICTLIST=""
HASHLIST=/var/lib/anthy/hashlist

set -e

case "$1" in
    configure)
	. /usr/share/debconf/confmodule

	if [ -f /etc/anthy/diclist ]; then
		rm -f /etc/anthy/diclist
	fi
	db_get anthy/dictionaries

	touch /etc/anthy/diclist
	DICS="$RET"
	if [ "$RET" != "" ]; then
		DICS=`echo $RET | sed 's/,//g'`
		for i in $DICS; do
			echo $i >> /etc/anthy/diclist
		done
	fi

	if [ -x "$UPDATE" ] && [ -d "$DICTDIR" ]; then
		tmpdir=`mktemp --tmpdir -d anthy.XXXXXXXXXX`
		cd $tmpdir && temp_hashlist=`mktemp anthy-dict.XXXXXXXXXX`
                cd $DICTDIR && \
		for dict in $DICTLIST $EXTRADICTLIST; do md5sum $dict >> $tmpdir/$temp_hashlist; done
		if [ ! -f "$HASHLIST" ]; then
   		  $UPDATE
		  mv $tmpdir/$temp_hashlist $HASHLIST
		elif [ -z "`cmp -l $HASHLIST $tmpdir/$temp_hashlist 2 > /dev/null`" ]; then
		  $UPDATE
		  mv $tmpdir/$temp_hashlist $HASHLIST
		else
		  rm $tmpdir/$temp_hashlist
		fi
	fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst 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