#!/bin/sh write_symbols() { OUTPUT=$1 shift grep 'getdns_[0-9a-zA-Z_]*(' $* | grep -v '^#' | grep -v 'INLINE' \ | sed -e 's/(.*$//g' -e 's/^.*getdns_/getdns_/g' > $OUTPUT } write_symbols libgetdns.symbols getdns/getdns.h.in getdns/getdns_extra.h echo plain_mem_funcs_user_arg >> libgetdns.symbols echo priv_getdns_context_mf >> libgetdns.symbols write_symbols extension/libevent.symbols getdns/getdns_ext_libevent.h write_symbols extension/libev.symbols getdns/getdns_ext_libev.h write_symbols extension/libuv.symbols getdns/getdns_ext_libuv.h