OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2016 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2016 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 is used to prepare for a major version update of ICU (e.g. from | 6 # This is used to prepare for a major version update of ICU (e.g. from |
7 # 54.1 to 56.1). Running this script is step 1 in README.chromium. | 7 # 54.1 to 56.1). Running this script is step 1 in README.chromium. |
8 | 8 |
9 if [ $# -lt 1 ]; | 9 if [ $# -lt 1 ]; |
10 then | 10 then |
(...skipping 16 matching lines...) Expand all Loading... |
27 rm -rf "${treeroot}/${file}" | 27 rm -rf "${treeroot}/${file}" |
28 done | 28 done |
29 | 29 |
30 echo "Download ${version} from the upstream repository ..." | 30 echo "Download ${version} from the upstream repository ..." |
31 for file in source license.html readme.html APIChangeReport.html | 31 for file in source license.html readme.html APIChangeReport.html |
32 do | 32 do |
33 svn export --native-eol LF "${repo}/${file}" "${treeroot}/${file}" | 33 svn export --native-eol LF "${repo}/${file}" "${treeroot}/${file}" |
34 done | 34 done |
35 | 35 |
36 echo "deleting directories we don't care about ..." | 36 echo "deleting directories we don't care about ..." |
37 for d in layout layoutex data/xml | 37 for d in layoutex data/xml test |
38 do | 38 do |
39 rm -rf "${treeroot}/source/${d}" | 39 rm -rf "${treeroot}/source/${d}" |
40 done | 40 done |
41 | 41 |
42 echo "restoring local data and configuration files ..." | 42 echo "restoring local data and configuration files ..." |
43 while read line | 43 while read line |
44 do | 44 do |
45 # $line is not quoted to expand "*html.ucm". | 45 # $line is not quoted to expand "*html.ucm". |
46 git checkout -- "${treeroot}/source/data/"${line} | 46 git checkout -- "${treeroot}/source/data/"${line} |
47 done < "${treeroot}/scripts/data_files_to_preserve.txt" | 47 done < "${treeroot}/scripts/data_files_to_preserve.txt" |
48 | 48 |
49 echo "Patching configure to work without source/layout(ex) directories ..." | 49 echo "Patching configure to work without source/layout(ex) directories ..." |
50 sed -i.orig -e '/^ac_config_files=/ s:\ layout\(ex\)\{0,1\}/Makefile::g' \ | 50 sed -i.orig -e '/^ac_config_files=/ s:\ layout\(ex\)\{0,1\}/Makefile::g' \ |
51 "${treeroot}/source/configure" | 51 "${treeroot}/source/configure" |
52 rm -f "${treeroot}/source/configure.orig" | 52 rm -f "${treeroot}/source/configure.orig" |
53 | 53 |
54 # TODO(jshin): Automatically update BUILD.gn and icu.gypi with the updated | 54 # TODO(jshin): Automatically update BUILD.gn and icu.gypi with the updated |
55 # list of source files. | 55 # list of source files. |
56 | 56 |
57 echo "Done" | 57 echo "Done" |
OLD | NEW |