Blame check_libmap.sh

Packit Bot e97e7f
#!/bin/sh
Packit Bot e97e7f
for file in include/libipset/*.h; do
Packit Bot e97e7f
    case $file in
Packit Bot e97e7f
    */ui.h) continue ;;
Packit Bot e97e7f
    esac
Packit Bot e97e7f
    grep ^extern $file | sed -r -e 's/\(.*//' -e 's/.* \*?//' | egrep -v '\[|\;'
Packit Bot e97e7f
done | while read symbol; do
Packit Bot e97e7f
    if [ -z "$symbol" -o "$symbol" = '{' ]; then
Packit Bot e97e7f
    	continue
Packit Bot e97e7f
    fi
Packit Bot e97e7f
    if [ -z "`grep \" $symbol\;\" lib/libipset.map`" ]; then
Packit Bot e97e7f
    	echo "Symbol $symbol is missing from libipset.map"
Packit Bot e97e7f
    fi
Packit Bot e97e7f
done