updated [and finally fixed my script to produce ready to go de-in(ed)
[platform/upstream/glib.git] / glib / abicheck.sh
1 #! /bin/sh
2
3 cpp -P -DG_OS_UNIX -DINCLUDE_INTERNAL_SYMBOLS ${srcdir:-.}/glib.symbols | sed -e '/^$/d' -e 's/ PRIVATE$//' | sort > expected-abi
4 nm -D .libs/libglib-2.0.so | grep " T " | cut -d ' ' -f 3 | sort > actual-abi
5 diff -u expected-abi actual-abi && rm expected-abi actual-abi