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 |
11 echo "Usage: "$0" version (e.g. '56-1')" >&2 | 11 echo "Usage: "$0" version (e.g. '56-1')" >&2 |
12 exit 1 | 12 exit 1 |
13 fi | 13 fi |
14 | 14 |
15 version="$1" | 15 version="$1" |
16 repoprefix="http://source.icu-project.org/repos/icu/icu/tags/release-" | 16 repoprefix="http://source.icu-project.org/repos/icu/icu/tags/release-" |
17 repo="${repoprefix}${version}" | 17 repo="${repoprefix}${version}/icu4c" |
18 treeroot="$(dirname "$0")/.." | 18 treeroot="$(dirname "$0")/.." |
19 | 19 |
20 # Check if the repo for $version is available. | 20 # Check if the repo for $version is available. |
21 svn ls "${repo}" > /dev/null 2>&1 || \ | 21 svn ls "${repo}" > /dev/null 2>&1 || \ |
22 { echo "${repo} does not exist." >&2; exit 2; } | 22 { echo "${repo} does not exist." >&2; exit 2; } |
23 | 23 |
24 echo "Cleaning up source/ ..." | 24 echo "Cleaning up source/ ..." |
25 for file in source LICENSE license.html readme.html APIChangeReport.html | 25 for file in source LICENSE license.html readme.html APIChangeReport.html |
26 do | 26 do |
27 rm -rf "${treeroot}/${file}" | 27 rm -rf "${treeroot}/${file}" |
(...skipping 24 matching lines...) Expand all Loading... |
52 echo "Patching configure to work without source/{layoutex,test} ..." | 52 echo "Patching configure to work without source/{layoutex,test} ..." |
53 sed -i.orig -e '/^ac_config_files=/ s:\ layoutex/Makefile::g' \ | 53 sed -i.orig -e '/^ac_config_files=/ s:\ layoutex/Makefile::g' \ |
54 -e '/^ac_config_files=/ s: test/.* samples/M: samples/M:' \ | 54 -e '/^ac_config_files=/ s: test/.* samples/M: samples/M:' \ |
55 "${treeroot}/source/configure" | 55 "${treeroot}/source/configure" |
56 rm -f "${treeroot}/source/configure.orig" | 56 rm -f "${treeroot}/source/configure.orig" |
57 | 57 |
58 # TODO(jshin): Automatically update BUILD.gn and icu.gypi with the updated | 58 # TODO(jshin): Automatically update BUILD.gn and icu.gypi with the updated |
59 # list of source files. | 59 # list of source files. |
60 | 60 |
61 echo "Done" | 61 echo "Done" |
OLD | NEW |