~ubuntu-branches/ubuntu/saucy/nspr/saucy-updates

« back to all changes in this revision

Viewing changes to debian/libnspr4-0d.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2011-01-11 14:55:23 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110111145523-hb3ap33jpgf838lt
Tags: 4.8.7-0ubuntu1
* New upstream release v4.8.7 (NSPR_4_8_7_RTM)
* Refresh patches
  - update debian/patches/30_config_64bits.patch
  - update debian/patches/99_configure.patch
* Drop the link shuffeling now, as all upgraders to this version will be
  using a fixed package anyway
  - remove debian/libnspr4-0d.postinst
  - remove debian/libnspr4-0d.postrm
  - remove debian/libnspr4-0d.preinst
  - remove debian/libnspr4-0d.prerm
* Drop arch-specific symbols files for architectures we don't support
  - remove debian/libnspr4-0d.symbols.hurd_i386
  - remove debian/libnspr4-0d.symbols.ia64
  - remove debian/libnspr4-0d.symbols.lpia
* Ship the main SO files in an unversioned binary, as we don't have
  versioned SO's in Ubuntu. Maintain a transitional versioned binary
  package containing the versioned symlinks, to maintain compatibility with
  Debian
  - update debian/control
  - mass rename debian/libnspr4-0d* => debian/libnspr4*
  - update debian/rules
* Fix postinst-must-call-ldconfig - dh_makeshlibs doesn't seem to add
  the maintainer script hooks with the unversioned SO files, so add them
  manually
  - add debian/libnspr4.postinst
  - add debian/libnspr4.postrm

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
migratious_files="libnspr4.so libplc4.so libplds4.so"
6
 
 
7
 
if [ "$1" = "upgrade" ]; then
8
 
        for f in $migratious_files; do
9
 
                # before new binaries get installed, we move the links
10
 
                if [ -L /usr/lib/$f ]; then
11
 
                        rm -f /usr/lib/XNOLDCONFIG_$f.new-migration
12
 
                        mv /usr/lib/$f /usr/lib/XNOLDCONFIG_$f.new-migration
13
 
                fi
14
 
                # before the new links get installed, we move the old binaries
15
 
                if [ -r /usr/lib/$f.0d -a ! -L /usr/lib/$f.0d ]; then
16
 
                        rm -f /usr/lib/XNOLDCONFIG_$f.0d.new-migration
17
 
                        mv /usr/lib/$f.0d /usr/lib/XNOLDCONFIG_$f.0d.new-migration
18
 
                fi
19
 
        done
20
 
fi
21
 
 
22
 
#DEBHELPER#