OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. |
3 # # Use of this source code is governed by a BSD-style license that can be | 3 # # Use of this source code is governed by a BSD-style license that can be |
4 # # found in the LICENSE file. | 4 # # found in the LICENSE file. |
5 # | 5 # |
6 # This script is tested ONLY on Linux. It may not work correctly on | 6 # This script is tested ONLY on Linux. It may not work correctly on |
7 # Mac OS X. | 7 # Mac OS X. |
8 # | 8 # |
9 TOPSRC="$(dirname "$0")/.." | 9 TOPSRC="$(dirname "$0")/.." |
10 source "${TOPSRC}/scripts/data_common.sh" | 10 source "${TOPSRC}/scripts/data_common.sh" |
11 | 11 |
12 echo "Copying icudtl.dat and the corresponding assembly source for Linux" | 12 DATA_PREFIX="data/out/tmp/icudt${VERSION}" |
13 cp "data/out/tmp/icudt${VERSION}l.dat" "${TOPSRC}/common/icudtl.dat" | |
14 cp "data/out/tmp/icudt${VERSION}l_dat.S" "${TOPSRC}/linux/icudtl_dat.S" | |
15 | 13 |
16 "${TOPSRC}/scripts/make_mac_assembly.sh" | 14 echo "Generating the big endian data bundle" |
| 15 LD_LIBRARY_PATH=lib bin/icupkg -tb "${DATA_PREFIX}l.dat" "${DATA_PREFIX}b.dat" |
| 16 |
| 17 echo "Copying icudtl.dat and icudtlb.dat" |
| 18 for endian in l b |
| 19 do |
| 20 cp "${DATA_PREFIX}${endian}.dat" "${TOPSRC}/common/icudt${endian}.dat" |
| 21 done |
17 | 22 |
18 echo "Done with copying pre-built ICU data files." | 23 echo "Done with copying pre-built ICU data files." |
OLD | NEW |