5 echo "usage: $0 library symbol-file"
14 make_symbol_list
=`dirname $0`/make-symbol-list.sh
15 test -f "$make_symbol_list" ||
exit 1
17 if ! test -f "$symbol_file"; then
18 echo "$symbol_file doesn't exist"
22 diff=`sh $make_symbol_list "$lib" | \
23 diff -uB "$symbol_file" - | tail -n +3`
25 # stop if there are no differences
26 test -z "$diff" && exit 0
28 echo "symbols for $lib changed"
30 if echo "$diff" |
grep -q '^-'; then
32 echo "$diff" |
grep '^-' | cut
-b 2- | \
33 xargs -i echo " " "{}"
36 if echo "$diff" |
grep -q '^+'; then
38 echo "$diff" |
grep '^+' | cut
-b 2- | \
39 xargs -i echo " " "{}"