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" |
(...skipping 24 matching lines...) Expand all Loading... |
35 s/\(\$(ZONESRCDIR.*\)\$(<F)$/\1$(ZONE_SRC)/ | 35 s/\(\$(ZONESRCDIR.*\)\$(<F)$/\1$(ZONE_SRC)/ |
36 s/\(\$(LOCSRCDIR.*\)\$(<F)$/\1$(RES_SRC)/ | 36 s/\(\$(LOCSRCDIR.*\)\$(<F)$/\1$(RES_SRC)/ |
37 }' Makefile | 37 }' Makefile |
38 } | 38 } |
39 | 39 |
40 # Rebuild the ICU data. 'make' has to be run twice because of | 40 # Rebuild the ICU data. 'make' has to be run twice because of |
41 # http://bugs.icu-project.org/trac/ticket/10570 | 41 # http://bugs.icu-project.org/trac/ticket/10570 |
42 function build_data { | 42 function build_data { |
43 make clean | 43 make clean |
44 make | 44 make |
45 sed -i 's/css3transform.res/root.res/' out/tmp/icudata.lst | 45 sed -i 's/root_subset.res/root.res/' out/tmp/icudata.lst |
46 make | 46 make |
47 } | 47 } |
48 | 48 |
49 # Copy a single pool.res to the source tree and emit the sizes | 49 # Copy a single pool.res to the source tree and emit the sizes |
50 # before and after. | 50 # before and after. |
51 function copy_pool_bundle { | 51 function copy_pool_bundle { |
52 echo "copying pool.res for $3" | 52 echo "copying pool.res for $3" |
53 echo "original: $(ls -l $2/pool.res | awk '{print $5;}')" | 53 echo "original: $(ls -l $2/pool.res | awk '{print $5;}')" |
54 echo "optimized: $(ls -l $1 | awk '{print $5;}')" | 54 echo "optimized: $(ls -l $1 | awk '{print $5;}')" |
55 cp "$1" "$2" | 55 cp "$1" "$2" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 echo "PASS2: Building the final ICU data with custom pool bundles" | 90 echo "PASS2: Building the final ICU data with custom pool bundles" |
91 build_data | 91 build_data |
92 ls -l out/tmp/icudt*l.dat | 92 ls -l out/tmp/icudt*l.dat |
93 | 93 |
94 clean_up_src | 94 clean_up_src |
95 | 95 |
96 echo "Done." | 96 echo "Done." |
97 } | 97 } |
98 | 98 |
99 main "$@" | 99 main "$@" |
OLD | NEW |