File: check_all.sh

package info (click to toggle)
wxpython4.0 4.2.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 221,752 kB
  • sloc: cpp: 962,555; python: 230,573; ansic: 170,731; makefile: 51,756; sh: 9,342; perl: 1,564; javascript: 584; php: 326; xml: 200
file content (37 lines) | stat: -rwxr-xr-x 801 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
#
# This script is used to check that the ABI of the libraries in the "lib"
# subdirecotry is compatible with the ABI description in the directory
# containing this script itself.

libraries=$(ls -1 lib/*.so)

if [ -z "$libraries" ]; then
    echo 'Please run the script from the build directory and build the libraries first.' >&2
    exit 1
fi

thisdir=$(dirname "$0")

rc=0
for l in $libraries; do
    name=$(basename $l .so)
    echo -n "Checking ${name}... "
    abidiff ${thisdir}/${name}.abi $l
    case $? in
        0)
            echo 'ok'
            ;;

        4)
            echo "*** ABI changes detected in ${name} ***"
            ;;

        *)
            echo "!!! INCOMPATIBLE ABI changes detected in ${name} !!!"
            rc=1
            ;;
    esac
done

exit $rc