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