File: python-gst0.10.postinst

package info (click to toggle)
gst0.10-python 0.10.5-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,988 kB
  • ctags: 1,392
  • sloc: python: 9,422; sh: 9,084; ansic: 1,189; makefile: 334
file content (24 lines) | stat: -rw-r--r-- 353 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"

pc_files() {
    runtime="$1"

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

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

    for f in $(pc_files $PYTHON_DEFAULT); do
        ln -f -s "$PYTHON_DEFAULT/$f"
    done
fi

#DEBHELPER#