summaryrefslogtreecommitdiffstats
path: root/check_libmap.sh
blob: be2a3d3bdf5a2f50b5ddc302959f3b6e0e3125f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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