2 # Copyright (c) 2000-2003 International Business Machines
3 # Corporation and others. All Rights Reserved.
4 # postinst script for foo
6 # see: dh_installdeb(1)
10 # summary of how this script can be called:
11 # * <postinst> `configure' <most-recently-configured-version>
12 # * <old-postinst> `abort-upgrade' <new version>
13 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
15 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
16 # <failed-install-package> <version> `removing'
17 # <conflicting-package> <version>
18 # for details, see /usr/share/doc/packaging-manual/
20 # quoting from the policy:
21 # Any necessary prompting should almost always be confined to the
22 # post-installation script, and should be protected with a conditional
23 # so that unnecessary prompting doesn't happen if a package's
24 # installation fails and the `postinst' is called with `abort-upgrade',
25 # `abort-remove' or `abort-deconfigure'.
27 # Call ldconfig in a way that makes lintian happy.
29 if [ "$1" = "configure" ]; then ldconfig
; fi
31 # And now do the rest of the configuration
36 # Adjust the current ICU link in /usr/lib/icu
38 if [ -d /usr
/lib
/icu
]
41 icucurrent
=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
44 if test x
"$icucurrent" != x
46 ln -s "$icucurrent" current
47 ln -sf current
/Makefile.inc .
53 abort-upgrade|abort-remove|abort-deconfigure
)
58 echo "postinst called with unknown argument \`$1'" >&2
63 # dh_installdeb will replace this with shell code automatically
64 # generated by other debhelper scripts.