File: check_plugin_symbols

package info (click to toggle)
scummvm 1.4.1-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 77,184 kB
  • sloc: cpp: 1,031,793; asm: 28,817; ansic: 11,557; sh: 6,671; perl: 2,616; python: 2,544; xml: 1,782; java: 1,105; makefile: 1,054; objc: 779; sed: 11; php: 1
file content (15 lines) | stat: -rwxr-xr-x 262 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
case "$0" in
  */*) dir=`dirname "$0"`/;;
  *) dir="";;
esac
exec < "$dir"plugin.syms
while read sym; do
  if sh-elf-nm "$1" | grep >/dev/null " $sym"'$'; then
    :
  else
    echo >&2 "ERROR: Symbol $sym missing from $1"
    exit 1
  fi
done
exit 0