Commit | Line | Data |
---|---|---|
d8cd04f8 MV |
1 | #!/bin/sh |
2 | ||
e6d282e4 DK |
3 | # ensure we are in the abibreak subdirectory |
4 | cd "$(readlink -f $(dirname $0))" | |
5 | ||
707bc266 MV |
6 | if [ ! -d ../build ]; then |
7 | echo "../build missing, did you run make?" | |
8 | exit 1 | |
9 | fi | |
10 | ||
e75e5879 | 11 | if command -v abi-compliance-checker 2>/dev/null >&2; then |
183116d1 | 12 | echo "Please install the 'abi-compliance-checker' package" |
ca57fd4d MV |
13 | exit 1 |
14 | fi | |
15 | ||
e6d282e4 | 16 | LIBPATH=$(find /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) -type f -regex '.*/libapt-\(pkg\|inst\)\.so\..*' -printf %p\\\\n) |
d8cd04f8 MV |
17 | sed s#@installed_libapt@#$LIBPATH# apt_installed.xml.in > apt_installed.xml |
18 | ||
f0e33f05 MV |
19 | BUILDPATH=$(readlink -f ../build) |
20 | sed s#@build_path@#$BUILDPATH# apt_build.xml.in > apt_build.xml | |
21 | ||
c5f0d8e6 | 22 | abi-compliance-checker -l apt -d1 apt_installed.xml -d2 apt_build.xml $@ |