1e4af8f11SPedro Giffuni#!/bin/sh 2*122c3632SJürgen Schmidt#************************************************************** 3*122c3632SJürgen Schmidt# 4*122c3632SJürgen Schmidt# Licensed to the Apache Software Foundation (ASF) under one 5*122c3632SJürgen Schmidt# or more contributor license agreements. See the NOTICE file 6*122c3632SJürgen Schmidt# distributed with this work for additional information 7*122c3632SJürgen Schmidt# regarding copyright ownership. The ASF licenses this file 8*122c3632SJürgen Schmidt# to you under the Apache License, Version 2.0 (the 9*122c3632SJürgen Schmidt# "License"); you may not use this file except in compliance 10*122c3632SJürgen Schmidt# with the License. You may obtain a copy of the License at 11*122c3632SJürgen Schmidt# 12*122c3632SJürgen Schmidt# http://www.apache.org/licenses/LICENSE-2.0 13*122c3632SJürgen Schmidt# 14*122c3632SJürgen Schmidt# Unless required by applicable law or agreed to in writing, 15*122c3632SJürgen Schmidt# software distributed under the License is distributed on an 16*122c3632SJürgen Schmidt# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17*122c3632SJürgen Schmidt# KIND, either express or implied. See the License for the 18*122c3632SJürgen Schmidt# specific language governing permissions and limitations 19*122c3632SJürgen Schmidt# under the License. 20*122c3632SJürgen Schmidt# 21*122c3632SJürgen Schmidt#************************************************************** 22cdf0e10cSrcweir 23cdf0e10cSrcweir# This script is needed in the process of generating exported 24cdf0e10cSrcweir# symbols list on Mac OS X 25cdf0e10cSrcweir 26cdf0e10cSrcweir# Please note that the awk expression expects to get the output of 'nm -gx'! 27cdf0e10cSrcweir# On Panther we have to filter out symbols with a value "1f" otherwise external 28cdf0e10cSrcweir# symbols will erroneously be added to the generated export symbols list file. 29cdf0e10cSrcweirawk -v SYMBOLSREGEXP="^__ZTI.*$|^__ZTS.*$" ' 30cdf0e10cSrcweirmatch ($6,SYMBOLSREGEXP) > 0 && $6 !~ /_GLOBAL_/ { if (($2 != 1) && ( $2 != "1f" ) ) print $6 }' 31cdf0e10cSrcweir 32