2004-09-16 20:33:02 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
2005-02-07 07:01:18 +01:00
|
|
|
egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp
|
|
|
|
|
|
|
|
INCLUDES="-include ${top_builddir:-..}/config.h"
|
|
|
|
INCLUDES="$INCLUDES -include glibconfig.cpp"
|
|
|
|
|
2005-03-14 07:47:51 +01:00
|
|
|
cpp -P $INCLUDES -DALL_FILES ${srcdir:-.}/gobject.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
|
2005-02-07 07:01:18 +01:00
|
|
|
rm glibconfig.cpp
|
|
|
|
|
2004-09-17 03:41:30 +02:00
|
|
|
nm -D .libs/libgobject-2.0.so | grep " T " | cut -d ' ' -f 3 | sort > actual-abi
|
2005-02-07 07:01:18 +01:00
|
|
|
|
2004-09-16 20:33:02 +02:00
|
|
|
diff -u expected-abi actual-abi && rm expected-abi actual-abi
|