~ubuntu-branches/ubuntu/hardy/linux-restricted-modules-envy-2.6.24/hardy-proposed

« back to all changes in this revision

Viewing changes to debian/nvidia-new-kernel-source-envy.prerm

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Milone (tseliot)
  • Date: 2008-05-05 11:01:43 UTC
  • Revision ID: james.westby@ubuntu.com-20080505110143-gi9niqn3vkf11h6c
Tags: 2.6.24.500-500.26
* Removed ~envy in the package version
* nvidia-glx{-new, -legacy}-envy all provide nvidia-glx-dev
* Removed version from Conflicts of all the packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Copyright (C) 2002-2005 Flavio Stanchina
 
3
# Copyright (C) 2005-2006 Aric Cyr
 
4
# Copyright (C) 2007 Mario Limonciello
 
5
# Copyright (C) 2007 Alberto Milone
 
6
 
 
7
#DEBHELPER#
 
8
 
 
9
#CVERSION=`dpkg-query -W -f='${Version}' nvidia-new-kernel-source | awk -F "-" '{print $1}'`
 
10
#The line above will be used instead of the following as soon as the packages are no longer epoched
 
11
PKGVER=`dpkg-query -W -f='${Version}' nvidia-new-kernel-source-envy | awk -F "-" '{print $1}'`
 
12
NEWVER=${PKGVER#*:}
 
13
CVERSION=${NEWVER%+*}
 
14
 
 
15
case "$1" in
 
16
    remove)
 
17
                echo "Removing all DKMS Modules"
 
18
                dkms remove -m nvidia -v $CVERSION --all > /dev/null
 
19
                echo "Done."
 
20
        ;;
 
21
esac
 
22
 
 
23