]> git.saurik.com Git - apt.git/blame - abicheck/run_abi_test
avoid triggering gcc's -Wunsafe-loop-optimizations in EDSP
[apt.git] / abicheck / run_abi_test
CommitLineData
d8cd04f8
MV
1#!/bin/sh
2
e6d282e4
DK
3# ensure we are in the abibreak subdirectory
4cd "$(readlink -f $(dirname $0))"
5
707bc266
MV
6if [ ! -d ../build ]; then
7 echo "../build missing, did you run make?"
8 exit 1
9fi
10
e75e5879 11if 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
14fi
15
e6d282e4 16LIBPATH=$(find /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) -type f -regex '.*/libapt-\(pkg\|inst\)\.so\..*' -printf %p\\\\n)
d8cd04f8
MV
17sed s#@installed_libapt@#$LIBPATH# apt_installed.xml.in > apt_installed.xml
18
f0e33f05
MV
19BUILDPATH=$(readlink -f ../build)
20sed s#@build_path@#$BUILDPATH# apt_build.xml.in > apt_build.xml
21
c5f0d8e6 22abi-compliance-checker -l apt -d1 apt_installed.xml -d2 apt_build.xml $@