From 111ccb23bda3468af36d82aeb0b703a9f2d0828b Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 28 Oct 2014 17:36:25 +0100 Subject: Add script to check libipset.map for missing symbols --- check_libmap.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 check_libmap.sh (limited to 'check_libmap.sh') 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 -- cgit v1.2.3