idl: rebuild drsuapi.idl
[Samba/aatanasov.git] / lib / tevent / script / abi_checks_gcc.sh
blob95182097d59254e8b62b44f555e5647d3e5dd9b1
1 #!/bin/bash
2 make clean
4 mkdir abi
5 ABI_CHECKS="-aux-info abi/\$@.X"
6 make ABI_CHECK="$ABI_CHECKS" CC="/usr/bin/gcc"
8 for i in abi/*.X; do cat $i | grep 'tevent\.h'; done | sort | uniq | awk -F "extern " '{ print $2 }' | sort> abi/signatures
10 cat > abi/exports << EOF
12 global:
13 EOF
14 cat abi/signatures | awk -F '(' '{ print $1 }' | awk -F ' ' '{ print " "$NF";" }' | tr -d '*' | sort >> abi/exports
15 cat >> abi/exports << EOF
17 local: *;
19 EOF
21 rm -fr abi/*.X
23 diff -u tevent.signatures abi/signatures
24 if [ "$?" != "0" ]; then
25 echo "WARNING: Possible ABI Change!!"
28 diff -u tevent.exports abi/exports
29 if [ "$?" != "0" ]; then
30 echo "WARNING: Export file may be outdated!!"