You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

#!/usr/bin/env bash
# Copyright (C) 2017 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Re-generate all javadoc patches
source $(dirname $BASH_SOURCE)/common.sh
read -p "Discard all uncommitted changes in android_icu4j (y/n)? " CONT
if [ "$CONT" != "y" ]; then
exit 1
fi
# Create android_icu4j copy without patches
cd ${ICU_DIR}
git checkout -- ${ICU4J_DIR}
rm -r ${PATCHES_DIR}/src 2> /dev/null
cd ${SRCGEN_DIR}
./generate_android_icu4j.sh
# Create patches
cd ${ICU4J_DIR}
GIT_EXTERNAL_DIFF=${SCRIPT_DIR}/git_diff_create_patch.sh git diff -- ${ICU4J_DIR}
# Revert the changes in android_icu4j
git checkout -- ${ICU4J_DIR}