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

« back to all changes in this revision

Viewing changes to debian/in/PACKAGE.postinst

  • 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
# postinst script for the Debian GNU/Linux octave2.0 package
 
4
#
 
5
# Initial version written by Andrew D. Fernandes <adfernan@cnd.mcgill.ca>
 
6
# This version written by Dirk Eddelbuettel <edd@debian.org>
 
7
 
 
8
#DEBHELPER#
 
9
 
 
10
# The current Octave version, known to debian/rules at build time
 
11
VERSION=@VERSION@
 
12
PRIORITY=@PRIORITY@
 
13
 
 
14
case "$1" in
 
15
    configure)
 
16
        #
 
17
        # create /usr/local/ directory, if we may
 
18
        install -d /usr/local/share/octave/site-m \
 
19
                -m 2775 -o root -g staff             2>/dev/null || true
 
20
        #
 
21
        # if it exists, update the ls-R database for kpathsea
 
22
        if [ -d /usr/local/share/octave/ ]
 
23
        then
 
24
            ls -LR /usr/lib/octave/ /usr/share/octave \
 
25
                    /usr/local/share/octave > /usr/share/octave/ls-R
 
26
        else
 
27
            ls -LR /usr/lib/octave/ /usr/share/octave > /usr/share/octave/ls-R
 
28
        fi
 
29
        #
 
30
        # update-alternatives for multiple Octave versions
 
31
        for f in octave octave-bug ; do
 
32
                update-alternatives                                     \
 
33
                        --install /usr/bin/$f $f                        \
 
34
                                /usr/bin/$f-$VERSION $PRIORITY          \
 
35
                        --slave /usr/share/man/man1/$f.1.gz $f.1.gz     \
 
36
                                /usr/share/man/man1/$f-$VERSION.1.gz
 
37
        done
 
38
 
 
39
        ;;
 
40
    abort-upgrade|abort-remove|abort-deconfigure)
 
41
        ;;
 
42
    *)
 
43
        echo "postinst called with unknown argument \`$1'" >&2
 
44
        ;;
 
45
esac
 
46
 
 
47
exit 0