File: pkg-config.preinst

package info (click to toggle)
pkgconf 1.8.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,856 kB
  • sloc: ansic: 6,400; sh: 5,783; makefile: 212; python: 132
file content (19 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

if [ "$1" = upgrade ] && dpkg --compare-versions "$2" le '1.8.0-1+'
then
    for symlink in /usr/bin/*-pkg-config
    do
        [ ! -L $symlink ] && continue
        target="$(readlink -n $symlink)"
        if [ "$target" = /usr/share/pkg-config-crosswrapper ]
        then
            echo Removing leftover symlink $symlink >&2
            rm -f "$symlink"
        fi
    done
fi

#DEBHELPER#