mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01:00
f5db7d0bb3
Sun Feb 6 22:00:46 2005 Manish Singh <yosh@gimp.org> * abicheck.sh: feed the contents of config.h and glibconfig.h into the preprocessor, since glib.symbols could need #defines from them.
14 lines
474 B
Bash
Executable File
14 lines
474 B
Bash
Executable File
#! /bin/sh
|
|
|
|
egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp
|
|
|
|
INCLUDES="-include ${top_builddir:-..}/config.h"
|
|
INCLUDES="$INCLUDES -include glibconfig.cpp"
|
|
|
|
cpp -P $INCLUDES ${srcdir:-.}/gobject.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
|
|
rm glibconfig.cpp
|
|
|
|
nm -D .libs/libgobject-2.0.so | grep " T " | cut -d ' ' -f 3 | sort > actual-abi
|
|
|
|
diff -u expected-abi actual-abi && rm expected-abi actual-abi
|