From f0e276cff896bb40941357a27c0ff1cd772ba8b4 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 28 Aug 2009 16:04:47 +0200 Subject: tevent: move the original abi_checks script to script/abi_checks_gcc.sh Michael --- lib/tevent/script/abi_checks_gcc.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 lib/tevent/script/abi_checks_gcc.sh (limited to 'lib/tevent/script') diff --git a/lib/tevent/script/abi_checks_gcc.sh b/lib/tevent/script/abi_checks_gcc.sh new file mode 100755 index 0000000000..95182097d5 --- /dev/null +++ b/lib/tevent/script/abi_checks_gcc.sh @@ -0,0 +1,31 @@ +#!/bin/bash +make clean + +mkdir abi +ABI_CHECKS="-aux-info abi/\$@.X" +make ABI_CHECK="$ABI_CHECKS" CC="/usr/bin/gcc" + +for i in abi/*.X; do cat $i | grep 'tevent\.h'; done | sort | uniq | awk -F "extern " '{ print $2 }' | sort> abi/signatures + +cat > abi/exports << EOF +{ + global: +EOF +cat abi/signatures | awk -F '(' '{ print $1 }' | awk -F ' ' '{ print " "$NF";" }' | tr -d '*' | sort >> abi/exports +cat >> abi/exports << EOF + + local: *; +}; +EOF + +rm -fr abi/*.X + +diff -u tevent.signatures abi/signatures +if [ "$?" != "0" ]; then + echo "WARNING: Possible ABI Change!!" +fi + +diff -u tevent.exports abi/exports +if [ "$?" != "0" ]; then + echo "WARNING: Export file may be outdated!!" +fi -- cgit