2 # Copyright (c) 2000-2003 International Business Machines
3 # Corporation and others. All Rights Reserved.
6 # see: dh_installdeb(1)
10 # summary of how this script can be called:
12 # * <old-prerm> `upgrade' <new-version>
13 # * <new-prerm> `failed-upgrade' <old-version>
14 # * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
15 # * <deconfigured's-prerm> `deconfigure' `in-favour'
16 # <package-being-installed> <version> `removing'
17 # <conflicting-package> <version>
18 # for details, see /usr/share/doc/packaging-manual/
21 remove|upgrade|deconfigure
)
22 # Adjust the current ICU link in @libdir@/@PACKAGE@
25 exec_prefix
=@exec_prefix@
27 if [ -d @libdir@
/@PACKAGE@
]
29 icucurrent
=`2>/dev/null ls -dp @libdir@/@PACKAGE@/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
32 if test x
"$icucurrent" != x
34 ln -s "$icucurrent" current
38 # install-info --quiet --remove /usr/info/foo.info.gz
43 echo "prerm called with unknown argument \`$1'" >&2
48 # dh_installdeb will replace this with shell code automatically
49 # generated by other debhelper scripts.