File: check_libmap.sh

package info (click to toggle)
ipset 7.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,376 kB
  • sloc: ansic: 32,867; sh: 5,855; makefile: 246; awk: 3
file content (14 lines) | stat: -rwxr-xr-x 407 bytes parent folder | download | duplicates (6)
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" -o "$symbol" = '{' ]; then
    	continue
    fi
    if [ -z "`grep \" $symbol\;\" lib/libipset.map`" ]; then
    	echo "Symbol $symbol is missing from libipset.map"
    fi
done