xref: /aoo42x/main/odk/pack/copying/addsym-macosx.sh (revision e4af8f11)
1#!/bin/sh
2
3# This script is needed in the process of generating exported
4# symbols list on Mac OS X
5
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.
9awk -v SYMBOLSREGEXP="^__ZTI.*$|^__ZTS.*$" '
10match ($6,SYMBOLSREGEXP) > 0 &&  $6 !~ /_GLOBAL_/ { if (($2 != 1) && ( $2 != "1f" ) ) print $6 }'
11
12