File: check_symbols

package info (click to toggle)
yorick-yeti 6.2.2-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,708 kB
  • ctags: 1,606
  • sloc: ansic: 17,054; makefile: 338; sh: 9
file content (13 lines) | stat: -rwxr-xr-x 331 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh

defined=$(nm yeti.so | grep '^[0-9A-Fa-f][0-9A-Fa-f]*  *T  *Y_' | sed 's/^[0-9A-Fa-f][0-9A-Fa-f]*  *T  *//')

required=$(grep '^[ 	] *\&Y_' ywrap.c | sed 's/^.*\&\(Y_[^ ,]*\).*/\1/')

for symbol in $required; do
  if echo $defined | grep -q $symbol; then
    echo "$symbol: OK"
  else
    echo "$symbol: BAD"
  fi
done