diff options
Diffstat (limited to 'check_libmap.sh')
-rwxr-xr-x | check_libmap.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/check_libmap.sh b/check_libmap.sh new file mode 100755 index 0000000..be2a3d3 --- /dev/null +++ b/check_libmap.sh @@ -0,0 +1,14 @@ +#!/bin/sh +for file in include/libipset/*.h; do + case $file in + */ui.h) continue ;; + esac + grep ^extern $file | sed -r -e 's/\(.*//' -e 's/.* \*?//' | egrep -v '\[|\;' +done | while read symbol; do + if [ -z "$symbol" ]; then + continue + fi + if [ -z "`grep \" $symbol\;\" lib/libipset.map`" ]; then + echo "Symbol $symbol is missing from libipset.map" + fi +done |