author Chris Kitching <>
Tue, 16 Jul 2013 18:44:42 -0700
changeset 146374 f1028e173331ac1bf96929a1ea540925c1c58d82
parent 146313 107335e200360784dd5533df4bc7eed13fab9282
child 150610 9d3fa47e4dcbb8574df60bcc428e5402e5f56228
permissions -rwxr-xr-x
Bug 892094 - Create "Search" page in settings. r=liuche

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at

# Warning
# =======
# As of ICU 51.1, ICU as obtained from the ICU repository does not
# build with the Mozilla build tools for Windows. Check
# whether this has been addressed in the version you're updating to.
# If not, obtain the patch "Make ICU build with Mozilla build for Windows" from
# and reapply it after running (additional updates may be needed).
# If the bug has been addressed, please delete this warning.

# Warning
# =======
# The fix for ICU bug 10045 has been individually backported into this tree.
# If you update ICU to a version that does not have this fix yet, obtain the
# patch "Backported fix for formatting 0 with significant digits from ICU" from
# and reapply it after running
# If you update ICU to a version that has the fix, please delete this warning.

# Usage: <URL of ICU SVN with release>
# E.g., for ICU 50.1.1:

if [ $# -lt 1 ]; then
  echo "Usage: <URL of ICU SVN with release>"
  exit 1

icu_dir=`dirname $0`/icu
rm -rf ${icu_dir}
svn export $1 ${icu_dir}

# remove layout, tests, and samples, but leave makefiles in place
find ${icu_dir}/source/layout -name '*' -prune -or -type f -print | xargs rm
find ${icu_dir}/source/layoutex -name '*' -prune -or -type f -print | xargs rm
find ${icu_dir}/source/test -name '*' -prune -or -type f -print | xargs rm
find ${icu_dir}/source/samples -name '*' -prune -or -type f -print | xargs rm

# remove data that we currently don't need
rm ${icu_dir}/source/data/brkitr/*
rm ${icu_dir}/source/data/lang/*.mk
rm ${icu_dir}/source/data/lang/*.txt
rm ${icu_dir}/source/data/mappings/*.mk
find ${icu_dir}/source/data/mappings \
    -name ibm-37_P100-1995.ucm -prune -or \
    -name ibm-1047_P100-1995.ucm -prune -or \
    -name '*.ucm' -print | xargs rm
rm ${icu_dir}/source/data/rbnf/*
rm ${icu_dir}/source/data/region/*.mk
rm ${icu_dir}/source/data/region/*.txt
rm ${icu_dir}/source/data/translit/*

# Record `svn info`
svn info $1 > ${icu_dir}/SVN-INFO

hg addremove ${icu_dir}