You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
407 B
Bash
15 lines
407 B
Bash
#!/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" -o "$symbol" = '{' ]; then
|
|
continue
|
|
fi
|
|
if [ -z "`grep \" $symbol\;\" lib/libipset.map`" ]; then
|
|
echo "Symbol $symbol is missing from libipset.map"
|
|
fi
|
|
done
|