summaryrefslogtreecommitdiff
path: root/odk/pack
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-07-11 13:32:37 +0000
committerRüdiger Timm <rt@openoffice.org>2008-07-11 13:32:37 +0000
commit95042ecec833177e6fd66a943065d34ecd482333 (patch)
tree477f65ac6c8e89d8c1c83b2c27851badf85fb075 /odk/pack
parent8313cf4f21b3c34472889ef8206b0d7fd6e08d61 (diff)
INTEGRATION: CWS jsc21 (1.1.2); FILE ADDED
2008/06/27 08:48:00 jsc 1.1.2.1: #i90032# new
Diffstat (limited to 'odk/pack')
-rwxr-xr-xodk/pack/copying/addsym-macosx.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/odk/pack/copying/addsym-macosx.sh b/odk/pack/copying/addsym-macosx.sh
new file mode 100755
index 000000000000..d3bac6e5e878
--- /dev/null
+++ b/odk/pack/copying/addsym-macosx.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# This script is needed in the process of generating exported
+# symbols list on Mac OS X
+
+# Please note that the awk expression expects to get the output of 'nm -gx'!
+# On Panther we have to filter out symbols with a value "1f" otherwise external
+# symbols will erroneously be added to the generated export symbols list file.
+awk -v SYMBOLSREGEXP="^__ZTI.*$|^__ZTS.*$" '
+match ($6,SYMBOLSREGEXP) > 0 && $6 !~ /_GLOBAL_/ { if (($2 != 1) && ( $2 != "1f" ) ) print $6 }'
+