patch-icu.sh 927 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  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/.
  5. set -e
  6. # Ensure that $Date$ in the checked-out git files expands timezone-agnostically,
  7. # so that this script's behavior is consistent when run from any time zone.
  8. export TZ=UTC
  9. # Also ensure GIT-INFO is consistently English.
  10. export LANG=en_US.UTF-8
  11. export LANGUAGE=en_US
  12. export LC_ALL=en_US.UTF-8
  13. icu_dir=`dirname $0`/icu
  14. for patch in \
  15. bug-915735 \
  16. suppress-warnings.diff \
  17. bug-1172609-timezone-recreateDefault.diff \
  18. bug-1198952-workaround-make-3.82-bug.diff \
  19. bug-1228227-bug-1263325-libc++-gcc_hidden.diff \
  20. ucol_getKeywordValuesForLocale-ulist_resetList.diff \
  21. ; do
  22. echo "Applying local patch $patch"
  23. patch -d ${icu_dir}/../../ -p1 --no-backup-if-mismatch < ${icu_dir}/../icu-patches/$patch
  24. done