- support of [Strings.LanguageID]-sections for inf-files added in setupapi
[reactos.git] / reactos / lib / 3rdparty / icu4ros / icu / debian / libicu.prerm.in
1 #! /bin/sh
2 # Copyright (c) 2000-2003 International Business Machines
3 # Corporation and others. All Rights Reserved.
4 # prerm script for foo
5 #
6 # see: dh_installdeb(1)
7
8 set -e
9
10 # summary of how this script can be called:
11 # * <prerm> `remove'
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/
19
20 case "$1" in
21 remove|upgrade|deconfigure)
22 # Adjust the current ICU link in @libdir@/@PACKAGE@
23
24 prefix=@prefix@
25 exec_prefix=@exec_prefix@
26
27 if [ -d @libdir@/@PACKAGE@ ]
28 then
29 icucurrent=`2>/dev/null ls -dp @libdir@/@PACKAGE@/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
30 cd @libdir@/@PACKAGE@
31 rm -f current
32 if test x"$icucurrent" != x
33 then
34 ln -s "$icucurrent" current
35 fi
36 fi
37
38 # install-info --quiet --remove /usr/info/foo.info.gz
39 ;;
40 failed-upgrade)
41 ;;
42 *)
43 echo "prerm called with unknown argument \`$1'" >&2
44 exit 0
45 ;;
46 esac
47
48 # dh_installdeb will replace this with shell code automatically
49 # generated by other debhelper scripts.
50
51 #DEBHELPER#
52
53 exit 0
54
55