Skip to content

Instantly share code, notes, and snippets.

@ykubota
Last active November 10, 2021 08:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ykubota/af23fc98150adda08bcab1f83c6fafb7 to your computer and use it in GitHub Desktop.
Save ykubota/af23fc98150adda08bcab1f83c6fafb7 to your computer and use it in GitHub Desktop.
Get specified jdk8 version sources from openjdk repository
if [ $# -ne 1 ]; then
echo "usage: bash $0 <jdk8uXX>"
exit 1
fi
TARGET=`echo $1 | tr '[A-Z]' '[a-z]'`
hg clone http://hg.openjdk.java.net/jdk8u/jdk8u ${TARGET}
cd ${TARGET}
bash get_source.sh
HGTAG=`hg tags | grep ${TARGET} | head -n1 | cut -d" " -f1`
bash ./common/bin/hgforest.sh checkout ${HGTAG}

Usage

bash get_specified_source.sh jdk8u77

Note: This script does not validate the input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment