3 # This script is needed in the process of generating exported
4 # symbols list on Mac OS X
6 # Please note that the awk expression expects to get the output of 'nm -gx'!
7 # On Panther we have to filter out symbols with a value "1f" otherwise external
8 # symbols will erroneously be added to the generated export symbols list file.
9 awk -v SYMBOLSREGEXP
="^__ZTI.*$|^__ZTS.*$" '
10 match ($6,SYMBOLSREGEXP) > 0 && $6 !~ /_GLOBAL_/ { if (($2 != 1) && ( $2 != "1f" ) ) print $6 }'