1#!/bin/bash 2 3THIS_DIR=$(realpath $(dirname ${BASH_SOURCE[0]:-$0})) 4 5pushd ${THIS_DIR} 6git fetch aosp main 7git fetch aosp expected_upstream 8# -t option to fetch tags used in the EXPECTED_UPSTREAM file 9git fetch -t aosp upstream-openjdk7u 10git fetch -t aosp upstream-openjdk8u 11git fetch -t aosp upstream-openjdk9 12git fetch -t aosp upstream-openjdk11u 13git fetch -t aosp upstream-openjdk17u 14git fetch -t aosp upstream-openjdk21u 15git fetch -t aosp upstream-openjdk 16popd 17 18alias ojluni_refresh_files=${THIS_DIR}/ojluni_refresh_files.py 19alias ojluni_merge_to_main=${THIS_DIR}/ojluni_merge_to_main.py 20alias ojluni_modify_expectation=${THIS_DIR}/ojluni_modify_expectation.py 21alias ojluni_run_tool_tests='PYTHONPATH=${PYTHONPATH}:${THIS_DIR} python3 -B -m unittest discover -v -s tests -p "*_test.py"' 22alias ojluni_upgrade_identicals=${THIS_DIR}/ojluni_upgrade_identicals.py 23alias ojluni_versions_report=${THIS_DIR}/ojluni_versions_report.py 24alias ojluni_merge_package=${THIS_DIR}/ojluni_merge_package.sh 25alias ojluni_cleanup_merged_branches=${THIS_DIR}/ojluni_cleanup_merged_branches.sh 26 27_ojluni_modify_expectation () 28{ 29 COMPREPLY=( $(ojluni_modify_expectation --autocomplete $COMP_CWORD ${COMP_WORDS[@]:1})) 30 31 return 0 32} 33 34complete -o nospace -F _ojluni_modify_expectation ojluni_modify_expectation 35