Update ooo320-m1
[ooovba.git] / odk / pack / copying / addsym-macosx.sh
blobd3bac6e5e878017bbb33bdbff8cac22448396835
1 #!/bin/bash
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 }'