You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
688 B

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