bash get_specified_source.sh jdk8u77
Note: This script does not validate the input.
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} |