6
ABI_CHECKS="-aux-info abi/\$@.X"
7
make ABI_CHECK="$ABI_CHECKS" CC="/usr/bin/gcc"
9
for i in abi/*.X; do cat $i | grep 'talloc\.h'; done | sort | uniq | awk -F "extern " '{ print $2 }' | sort > abi/signatures
11
cat > abi/exports << EOF
15
cat abi/signatures | awk -F '(' '{ print $1 }' | awk -F ' ' '{ print " "$NF";" }' | tr -d '*' | sort >> abi/exports
16
# need to manually add talloc free for backward ABI compat
17
echo ' talloc_free;' >> abi/exports
18
cat >> abi/exports << EOF
26
diff -u talloc.signatures abi/signatures
27
if [ "$?" != "0" ]; then
28
echo "WARNING: Possible ABI Change!!"
31
diff -u talloc.exports abi/exports
32
if [ "$?" != "0" ]; then
33
echo "WARNING: Export file may be outdated!!"