diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2014-10-28 17:36:25 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2014-10-28 17:36:25 +0100 |
commit | 111ccb23bda3468af36d82aeb0b703a9f2d0828b (patch) | |
tree | f4d9d3498b2b01529c15c3df59450030f61ac411 /check_libmap.sh | |
parent | f2f4b16764b44d5efd8646a3137d3d6673dc35b7 (diff) |
Add script to check libipset.map for missing symbols
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 |