2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # As of ICU 51.1, ICU as obtained from the ICU repository does not
9 # build with the Mozilla build tools for Windows. Check
10 # http://bugs.icu-project.org/trac/ticket/9985
11 # whether this has been addressed in the version you're updating to.
12 # If not, obtain the patch "Make ICU build with Mozilla build for Windows" from
13 # https://bugzilla.mozilla.org/show_bug.cgi?id=724533
14 # and reapply it after running update-icu.sh (additional updates may be needed).
15 # If the bug has been addressed, please delete this warning.
17 # Usage: update-icu.sh <URL of ICU SVN with release>
18 # E.g., for ICU 50.1.1: update-icu.sh http://source.icu-project.org/repos/icu/icu/tags/release-50-1-1/
21 echo "Usage: update-icu.sh <URL of ICU SVN with release>"
25 icu_dir
=`dirname $0`/icu
27 svn
export $1 ${icu_dir}
29 # remove layout, tests, and samples, but leave makefiles in place
30 find ${icu_dir}/source
/layout
-name '*Makefile.in' -prune -or -type f
-print |
xargs rm
31 find ${icu_dir}/source
/layoutex
-name '*Makefile.in' -prune -or -type f
-print |
xargs rm
32 find ${icu_dir}/source
/test -name '*Makefile.in' -prune -or -type f
-print |
xargs rm
33 find ${icu_dir}/source
/samples
-name '*Makefile.in' -prune -or -type f
-print |
xargs rm
35 # remove data that we currently don't need
36 rm ${icu_dir}/source
/data
/brkitr
/*
37 rm ${icu_dir}/source
/data
/lang
/*.mk
38 rm ${icu_dir}/source
/data
/lang
/*.txt
39 rm ${icu_dir}/source
/data
/mappings
/*.mk
40 find ${icu_dir}/source
/data
/mappings \
41 -name ibm-37_P100-1995.ucm
-prune -or \
42 -name ibm-1047_P100-1995.ucm
-prune -or \
43 -name '*.ucm' -print |
xargs rm
44 rm ${icu_dir}/source
/data
/rbnf
/*
45 rm ${icu_dir}/source
/data
/region
/*.mk
46 rm ${icu_dir}/source
/data
/region
/*.txt
47 rm ${icu_dir}/source
/data
/translit
/*
50 svn info
$1 > ${icu_dir}/SVN-INFO
52 hg addremove
${icu_dir}