mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
001e839401
Courtesy of GLib and GTK+. The abicheck.sh is a simple, Linux-only, script to check that we're not leaking private symbols, or that the clutter.symbols file hasn't been updated. In theory, it should go inside the distcheck phase.
12 lines
466 B
Bash
Executable File
12 lines
466 B
Bash
Executable File
#! /bin/sh
|
|
|
|
cpp -P \
|
|
-DG_OS_UNIX \
|
|
-DCLUTTER_WINDOWING_X11 \
|
|
-DCLUTTER_WINDOWING_GLX \
|
|
-DCLUTTER_WINDOWING_GDK \
|
|
${srcdir:-.}/clutter.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' -e 's/ DATA//' | sort > expected-abi
|
|
|
|
nm -D -g --defined-only .libs/libclutter-1.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi
|
|
diff -u expected-abi actual-abi && rm -f expected-abi actual-abi
|