Commit e040b780 authored by Matthias Clasen's avatar Matthias Clasen

Add a little script

parent 8cb0674b
2006-03-10 Matthias Clasen <mclasen@redhat.com>
* gtk-engine-check-abi.sh: Add a script to check that theme
engines don't export any extra functions.
2006-03-10 Matthias Clasen <mclasen@redhat.com> 2006-03-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcolorsel.c (gtk_color_selection_init): Avoid a mnemonic * gtk/gtkcolorsel.c (gtk_color_selection_init): Avoid a mnemonic
......
2006-03-10 Matthias Clasen <mclasen@redhat.com>
* gtk-engine-check-abi.sh: Add a script to check that theme
engines don't export any extra functions.
2006-03-10 Matthias Clasen <mclasen@redhat.com> 2006-03-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcolorsel.c (gtk_color_selection_init): Avoid a mnemonic * gtk/gtkcolorsel.c (gtk_color_selection_init): Avoid a mnemonic
......
#! /bin/sh
# Check that a theme engine does not export any
# functions that may interfere with symbol resolution
cat >expected-abi <<EOF
theme_create_rc_style
theme_exit
theme_init
EOF
cat >optional-abi <<EOF
__bss_start
_edata
_end
_fini
_init
g_module_check_init
g_module_unload
EOF
nm -D -g --defined-only $1 | cut -d ' ' -f 3 > actual-abi
cat optional-abi >>expected-abi
sort expected-abi | uniq >expected-abi2
cat optional-abi >>actual-abi
sort actual-abi | uniq >actual-abi2
diff -u expected-abi2 actual-abi2 && rm expected-abi optional-abi actual-abi expected-abi2 actual-abi2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment