File: createTzDataBundle.sh

package info (click to toggle)
android-framework-23 6.0.1%2Br72-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 233,244 kB
  • sloc: java: 1,707,033; xml: 247,323; cpp: 211,819; ansic: 2,748; python: 2,640; sh: 1,517; yacc: 343; lex: 214; ruby: 183; perl: 88; makefile: 63; sed: 19
file content (25 lines) | stat: -rwxr-xr-x 654 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

# A script to generate TZ data updates.
#
# Usage: ./createTzDataBundle.sh <tzupdate.properties file> <output file>
# See libcore.tzdata.update.tools.CreateTzDataBundle for more information.

TOOLS_DIR=src/main/libcore/tzdata/update/tools
UPDATE_DIR=../update/src/main/libcore/tzdata/update
GEN_DIR=./gen

# Fail if anything below fails
set -e

rm -rf ${GEN_DIR}
mkdir -p ${GEN_DIR}

javac \
    ${TOOLS_DIR}/CreateTzDataBundle.java \
    ${TOOLS_DIR}/TzDataBundleBuilder.java \
    ${UPDATE_DIR}/ConfigBundle.java \
    ${UPDATE_DIR}/FileUtils.java \
    -d ${GEN_DIR}

java -cp ${GEN_DIR} libcore.tzdata.update.tools.CreateTzDataBundle $@