~ubuntu-branches/ubuntu/quantal/hardening-wrapper/quantal

« back to all changes in this revision

Viewing changes to debian/postrm

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2009-12-19 18:00:22 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20091219180022-6pgp1t7aozcolnyc
Tags: 1.18
* debian/{control,rules}: add "hardening-includes" for use in other
  Debian rules files.
* debian/rules, hardening.make: relocate/enhance architecture logic
  to common makefile include file.
* tests/*: update to test both wrapper and include style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
 
3
 
undiv()
4
 
{
5
 
        dpkg-divert --package hardening-wrapper \
6
 
                --rename --remove /usr/bin/"$1" || true
7
 
}
8
 
 
9
 
if [ "$1" = "remove" ]; then
10
 
        for ver in 4.1 4.2 4.3 4.4
11
 
        do
12
 
                for i in gcc g++
13
 
                do
14
 
                        undiv "$i-$ver"
15
 
                done
16
 
        done
17
 
        undiv ld
18
 
fi
19
 
 
20
 
#DEBHELPER#