~ubuntu-branches/ubuntu/gutsy/icu/gutsy-updates

« back to all changes in this revision

Viewing changes to debian/libicu.prerm.in

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2005-11-19 11:29:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20051119112931-vcizkrp10tli4enw
Tags: 3.4-3
Explicitly build with g++ 3.4.  The current ICU fails its test suite
with 4.0 but not with 3.4.  Future versions should work properly with
4.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# prerm script for foo
3
 
#
4
 
# see: dh_installdeb(1)
5
 
 
6
 
set -e
7
 
 
8
 
# summary of how this script can be called:
9
 
#        * <prerm> `remove'
10
 
#        * <old-prerm> `upgrade' <new-version>
11
 
#        * <new-prerm> `failed-upgrade' <old-version>
12
 
#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
13
 
#        * <deconfigured's-prerm> `deconfigure' `in-favour'
14
 
#          <package-being-installed> <version> `removing'
15
 
#          <conflicting-package> <version>
16
 
# for details, see /usr/share/doc/packaging-manual/
17
 
 
18
 
case "$1" in
19
 
    remove|upgrade|deconfigure)
20
 
        # Adjust the current ICU link in @libdir@/@PACKAGE@
21
 
 
22
 
        prefix=@prefix@
23
 
        exec_prefix=@exec_prefix@
24
 
 
25
 
        if [ -d @libdir@/@PACKAGE@ ]
26
 
        then
27
 
            icucurrent=`2>/dev/null ls -dp @libdir@/@PACKAGE@/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
28
 
            cd @libdir@/@PACKAGE@
29
 
            rm -f current
30
 
            if test x"$icucurrent" != x
31
 
            then
32
 
                ln -s "$icucurrent" current
33
 
            fi
34
 
        fi
35
 
 
36
 
#       install-info --quiet --remove /usr/info/foo.info.gz
37
 
        ;;
38
 
    failed-upgrade)
39
 
        ;;
40
 
    *)
41
 
        echo "prerm called with unknown argument \`$1'" >&2
42
 
        exit 0
43
 
    ;;
44
 
esac
45
 
 
46
 
# dh_installdeb will replace this with shell code automatically
47
 
# generated by other debhelper scripts.
48
 
 
49
 
#DEBHELPER#
50
 
 
51
 
exit 0
52
 
 
53