1#!/bin/sh 2set -eu 3 4LIB=${1-.libs/libwayland-egl.so} 5 6if ! [ -f "$LIB" ] 7then 8 exit 1 9fi 10 11FUNCS=$(nm -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do 12( grep -q "^$func$" || echo $func ) <<EOF 13wl_egl_window_resize 14wl_egl_window_create 15wl_egl_window_destroy 16wl_egl_window_get_attached_size 17_fini 18_init 19EOF 20done) 21 22test ! -n "$FUNCS" || echo $FUNCS 23test ! -n "$FUNCS" 24 25