~ubuntu-branches/ubuntu/saucy/nvidia-settings-updates/saucy

« back to all changes in this revision

Viewing changes to debian/postrm

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Milone
  • Date: 2011-08-11 13:21:52 UTC
  • Revision ID: james.westby@ubuntu.com-20110811132152-t0b118koapfvmws1
Tags: 280.13-0ubuntu1
First release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# postrm script for nvidia-settings-updates
 
3
#
 
4
# see: dh_installdeb(1)
 
5
#
 
6
# Copyright (C) 2009-2010 Canonical Ltd
 
7
# Authors: Alberto Milone
 
8
 
 
9
set -e
 
10
 
 
11
# summary of how this script can be called:
 
12
#        * <postrm> `remove'
 
13
#        * <postrm> `purge'
 
14
#        * <old-postrm> `upgrade' <new-version>
 
15
#        * <new-postrm> `failed-upgrade' <old-version>
 
16
#        * <new-postrm> `abort-install'
 
17
#        * <new-postrm> `abort-install' <old-version>
 
18
#        * <new-postrm> `abort-upgrade' <old-version>
 
19
#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
 
20
# for details, see /usr/share/doc/packaging-manual/
 
21
 
 
22
case "$1" in
 
23
    remove|purge)
 
24
        # This should make sure that /usr/lib/nvidia-settings-updates is
 
25
        # removed even if some links are left.
 
26
        # See LP: #540143
 
27
        rm -Rf /usr/lib/nvidia-settings-updates
 
28
    ;;
 
29
 
 
30
    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
31
 
 
32
 
 
33
    ;;
 
34
 
 
35
    *)
 
36
        echo "postrm called with unknown argument \`$1'" >&2
 
37
        exit 0
 
38
    ;;
 
39
 
 
40
esac
 
41
 
 
42
# dh_installdeb will replace this with shell code automatically
 
43
# generated by other debhelper scripts.
 
44
 
 
45
#DEBHELPER#