1#!/bin/bash 2 3THIS_DIR=$(realpath $(dirname ${BASH_SOURCE[0]:-$0})) 4# prerequisite to run the script 5# See go/pip-install-remediation how to regenerate the requirements.txt file. 6pip3 install --require-hashes -r ${THIS_DIR}/requirements.txt 7 8pushd ${THIS_DIR} 9git fetch aosp expected_upstream 10git fetch aosp upstream-openjdk7u 11git fetch aosp upstream-openjdk8u 12git fetch aosp upstream-openjdk9 13git fetch aosp upstream-openjdk11u 14git fetch aosp upstream-openjdk17u 15popd 16 17alias ojluni_refresh_files=${THIS_DIR}/ojluni_refresh_files.py 18alias ojluni_merge_to_master=${THIS_DIR}/ojluni_merge_to_master.py 19alias ojluni_modify_expectation=${THIS_DIR}/ojluni_modify_expectation.py 20alias ojluni_run_tool_tests='PYTHONPATH=${PYTHONPATH}:${THIS_DIR} python3 -B -m unittest discover -v -s tests -p "*_test.py"' 21alias ojluni_upgrade_identicals=${THIS_DIR}/ojluni_upgrade_identicals.py 22alias ojluni_versions_report=${THIS_DIR}/ojluni_versions_report.py 23alias ojluni_merge_package=${THIS_DIR}/ojluni_merge_package.sh 24alias ojluni_cleanup_merged_branches=${THIS_DIR}/ojluni_cleanup_merged_branches.sh 25 26_ojluni_modify_expectation () 27{ 28 COMPREPLY=( $(ojluni_modify_expectation --autocomplete $COMP_CWORD ${COMP_WORDS[@]:1})) 29 30 return 0 31} 32 33complete -o nospace -F _ojluni_modify_expectation ojluni_modify_expectation 34