~ubuntu-branches/debian/lenny/octave3.0/lenny

« back to all changes in this revision

Viewing changes to debian/in/PACKAGE.prerm

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2007-12-23 16:04:15 UTC
  • Revision ID: james.westby@ubuntu.com-20071223160415-jfriqav7corvoi9d
Tags: 3.0.0-1
The "Seasons Greetings" release

* New upstream release.  A big thanks to John W. Eaton and all the
  Octave development team for this most awaited release.

* debian/in/control, debian/rules: Replaced most of the references to
  octave2.9 by octave3.0.  Made all octave3.0* packages
  provide/replace/conflict with the respective octave2.9* packages.
* debian/patches/02_prelease_warning.dpatch: Dropped patch, since this
  is the real 3.0 release
* debian/in/control: Dropped the build-conflict with atlas3-base-dev.
  This will make the autobuilders happy.
* debian/in/control: Dropped the empty octave package.  This will allow
  releasing octave3.0 without an epoch in its version number.  We will
  reintroduce this package later, if necessary (anyway, octave3.0
  provides octave).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
#
 
3
# prerm script for the Debian GNU/Linux octave package
 
4
#
 
5
# Written by Dirk Eddelbuettel <edd@debian.org>
 
6
 
 
7
#DEBHELPER#
 
8
 
 
9
# The current Octave version, known to debian/rules at build time
 
10
VERSION=@VERSION@
 
11
 
 
12
case "$1" in
 
13
    remove|upgrade|deconfigure)
 
14
        #
 
15
        # remove the /usr/local package, if we may
 
16
        if [ -w /usr/local/share/octave/site-m ]
 
17
        then
 
18
            rmdir /usr/local/share/octave/site-m 2>/dev/null || true
 
19
            rmdir /usr/local/share/octave        2>/dev/null || true
 
20
        fi
 
21
        #
 
22
        # remove the ls-R database for kpathsea
 
23
        if [ -f /usr/share/octave/ls-R ]
 
24
        then
 
25
            rm -f /usr/share/octave/ls-R
 
26
        fi
 
27
        #
 
28
        # update-alternatives for multiple Octave versions
 
29
        for f in octave octave-bug ; do
 
30
                update-alternatives --remove $f /usr/bin/$f-$VERSION
 
31
        done
 
32
 
 
33
        ;;
 
34
    failed-upgrade)
 
35
        ;;
 
36
    *)
 
37
        echo "prerm called with unknown argument \`$1'" >&2
 
38
        exit 0
 
39
    ;;
 
40
esac
 
41
 
 
42
 
 
43