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