0144eeafd1
The scripts gen-abi.sh and check-abi.sh are updated to print error messages to stderr so they are likely never ignored. When called from test-meson-builds.sh, the standard messages on stdout can be more quiet depending on the verbosity settings. The beginning of the ABI check is announced in verbose mode. The commands are printed in very verbose mode. The check result details are available in verbose mode. Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
27 lines
502 B
Bash
Executable File
27 lines
502 B
Bash
Executable File
#!/bin/sh -e
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (c) 2019 Red Hat, Inc.
|
|
|
|
if [ $# != 1 ]; then
|
|
echo "Usage: $0 installdir" >&2
|
|
exit 1
|
|
fi
|
|
|
|
installdir=$1
|
|
if [ ! -d $installdir ]; then
|
|
echo "Error: install directory '$installdir' does not exist." >&2
|
|
exit 1
|
|
fi
|
|
|
|
dumpdir=$installdir/dump
|
|
rm -rf $dumpdir
|
|
mkdir -p $dumpdir
|
|
for f in $(find $installdir -name "*.so.*"); do
|
|
if test -L $f; then
|
|
continue
|
|
fi
|
|
|
|
libname=$(basename $f)
|
|
abidw --out-file $dumpdir/${libname%.so*}.dump $f
|
|
done
|