File: python-gst0.10-dev.prerm

package info (click to toggle)
gst0.10-python 0.10.19-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,032 kB
  • ctags: 1,854
  • sloc: sh: 11,143; python: 11,084; ansic: 1,772; perl: 1,585; makefile: 559
file content (24 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

PYTHON_DEFAULT=$(pyversions --default)

this="python-gst0.10-dev"

pc_files() {
    runtime="$1"

    dpkg -L "$this" | sed -n -e "s#^/usr/lib/pkgconfig/$runtime/##p"
}

if [ "$1" = "remove" ]; then
    cd /usr/lib/pkgconfig

    for f in $(pc_files $PYTHON_DEFAULT); do
        rm -f "$f"
    done
fi

#DEBHELPER#