2
# postinst script for foo
4
# see: dh_installdeb(1)
8
# summary of how this script can be called:
9
# * <postinst> `configure' <most-recently-configured-version>
10
# * <old-postinst> `abort-upgrade' <new version>
11
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
13
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
14
# <failed-install-package> <version> `removing'
15
# <conflicting-package> <version>
16
# for details, see /usr/share/doc/packaging-manual/
18
# quoting from the policy:
19
# Any necessary prompting should almost always be confined to the
20
# post-installation script, and should be protected with a conditional
21
# so that unnecessary prompting doesn't happen if a package's
22
# installation fails and the `postinst' is called with `abort-upgrade',
23
# `abort-remove' or `abort-deconfigure'.
27
# Adjust the current ICU link in @libdir@/@PACKAGE@
30
exec_prefix=@exec_prefix@
32
if [ -d @libdir@/@PACKAGE@ ]
34
icucurrent=`2>/dev/null ls -dp @libdir@/@PACKAGE@/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
37
if test x"$icucurrent" != x
39
ln -s "$icucurrent" current
42
# Set ICU_DATA for ease of testing files. It is not necessary to
43
# export it as we are guaranteed that the binaries we invoke will
44
# use the right directory. But we're not taking chances with the
47
ICU_DATA=@libdir@/@PACKAGE@/@VERSION@
50
if test ! -f $ICU_DATA/cnvalias.dat -o @sysconfdir@/icu/convrtrs.txt -nt $ICU_DATA/cnvalias.dat
52
echo Compiling converters and aliases list from @sysconfdir@/@PACKAGE@/convrtrs.txt
53
@sbindir@/gencnval @sysconfdir@/@PACKAGE@/convrtrs.txt
59
abort-upgrade|abort-remove|abort-deconfigure)
64
echo "postinst called with unknown argument \`$1'" >&2
69
# dh_installdeb will replace this with shell code automatically
70
# generated by other debhelper scripts.