~ubuntu-branches/ubuntu/precise/gst0.10-python/precise

« back to all changes in this revision

Viewing changes to debian/python-gst0.10.prerm

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-05-11 11:03:02 UTC
  • mfrom: (1.2.1 upstream) (10 experimental)
  • mto: (4.1.22 karmic)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20090511110302-lenm60jjucpj6tzy
* New upstream release, 'We built a wall':
  + debian/rules,
    debian/control,
    debian/*.{install,postinst,prerm,rtupdate}:
    - Add a -dev package for the pkg-config files and def files
      (Closes: #527485).
    - Don't ship examples twice (Closes: #527498).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
PYTHON_DEFAULT=$(pyversions --default)
6
 
 
7
 
this="python-gst0.10"
8
 
 
9
 
pc_files() {
10
 
    runtime="$1"
11
 
 
12
 
    dpkg -L "$this" | sed -n -e "s#^/usr/lib/pkgconfig/$runtime/##p"
13
 
}
14
 
 
15
 
if [ "$1" = "remove" ]; then
16
 
    cd /usr/lib/pkgconfig
17
 
 
18
 
    for f in $(pc_files $PYTHON_DEFAULT); do
19
 
        rm -f "$f"
20
 
    done
21
 
fi
22
 
 
23
 
#DEBHELPER#
24