Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: scripts/copy_data.sh

Issue 2743123002: ICU data customization for iOS (Closed)
Patch Set: update BUILD.gn and icudtl.dat for iOS Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/patch_locale.sh ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
10 if [ $# -lt 1 ];
11 then
12 echo "Usage: "$0" (common|android|ios)" >&2
13 exit 1
14 fi
15
9 TOPSRC="$(dirname "$0")/.." 16 TOPSRC="$(dirname "$0")/.."
10 source "${TOPSRC}/scripts/data_common.sh" 17 source "${TOPSRC}/scripts/data_common.sh"
11 18
12 DATA_PREFIX="data/out/tmp/icudt${VERSION}"
13 19
14 echo "Generating the big endian data bundle" 20 function copy_common {
15 LD_LIBRARY_PATH=lib bin/icupkg -tb "${DATA_PREFIX}l.dat" "${DATA_PREFIX}b.dat" 21 DATA_PREFIX="data/out/tmp/icudt${VERSION}"
16 22
17 echo "Copying icudtl.dat and icudtlb.dat" 23 echo "Generating the big endian data bundle"
18 for endian in l b 24 LD_LIBRARY_PATH=lib bin/icupkg -tb "${DATA_PREFIX}l.dat" "${DATA_PREFIX}b.dat"
19 do
20 cp "${DATA_PREFIX}${endian}.dat" "${TOPSRC}/common/icudt${endian}.dat"
21 done
22 25
23 echo "Done with copying pre-built ICU data files." 26 echo "Copying icudtl.dat and icudtlb.dat"
27 for endian in l b
28 do
29 cp "${DATA_PREFIX}${endian}.dat" "${TOPSRC}/common/icudt${endian}.dat"
30 done
31
32 echo "Done with copying pre-built ICU data files."
33 }
34
35 function copy_android_ios {
36 echo "Copying icudtl.dat for $1"
37
38 cp "data/out/tmp/icudt${VERSION}l.dat" "${TOPSRC}/$2/icudtl.dat"
39
40 echo "Done with copying pre-built ICU data file for $1."
41 }
42
43 case "$1" in
44 "common")
45 copy_common
46 ;;
47 "android")
48 copy_android_ios Android android
49 ;;
50 "ios")
51 copy_android_ios iOS ios
52 ;;
53 esac
OLDNEW
« no previous file with comments | « ios/patch_locale.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698