2 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 ICUROOT="$(dirname $0)/.."
7 LINUX_SOURCE="${ICUROOT}/linux/icudtl_dat.S"
8 MAC_SOURCE="${ICUROOT}/mac/icudtl_dat.S"
10 cat > ${MAC_SOURCE} <<PREAMBLE
12 #ifdef U_HIDE_DATA_SYMBOL
13 .private_extern _icudt52_dat
21 PREAMBLE_LENGTH=$(($(egrep -n '^icudt' ${LINUX_SOURCE} | cut -d : -f 1) + 1))
22 tail -n +${PREAMBLE_LENGTH} ${LINUX_SOURCE} >> ${MAC_SOURCE}