• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/python -B
2
3"""Regenerates (just) ICU data files used in the Android system image."""
4
5from __future__ import print_function
6
7import os
8import sys
9
10import i18nutil
11import icuutil
12
13
14# Run with no arguments from any directory, with no special setup required.
15def main():
16  i18nutil.SwitchToNewTemporaryDirectory()
17  icu_build_dir = '%s/icu' % os.getcwd()
18
19  icu_dir = icuutil.icuDir()
20  print('Found icu in %s ...' % icu_dir)
21
22  icuutil.PrepareIcuBuild(icu_build_dir)
23
24  icuutil.MakeAndCopyIcuDataFiles(icu_build_dir)
25
26  print('Look in %s for new data files' % icu_dir)
27  sys.exit(0)
28
29if __name__ == '__main__':
30  main()
31