2013-03-12 13:35:26 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-07-23 08:59:21 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
VERSION=$1
|
2013-07-21 17:35:12 +00:00
|
|
|
JDK8_URL=http://hg.openjdk.java.net
|
2013-03-12 13:35:26 +00:00
|
|
|
|
|
|
|
if test "x${VERSION}" = "x"; then
|
2013-07-23 08:59:21 +00:00
|
|
|
echo "No version specified. A version is of the form 'jdk8-bXX' (such as 'jdk8-b79')"
|
2013-03-12 13:35:26 +00:00
|
|
|
exit -1;
|
|
|
|
fi
|
|
|
|
|
2013-07-21 17:35:12 +00:00
|
|
|
for REPO_NAME in jdk8 aarch64-port
|
2013-07-23 08:59:21 +00:00
|
|
|
do
|
|
|
|
mkdir ${REPO_NAME}
|
|
|
|
pushd ${REPO_NAME}
|
|
|
|
|
|
|
|
REPO_ROOT=${JDK8_URL}/${REPO_NAME}/jdk8
|
|
|
|
|
|
|
|
if [[ "$REPO_NAME" == "aarch64-port" ]] ; then
|
|
|
|
# aarch64-port does not tag trees
|
|
|
|
# FIXME make this clone reproducible
|
|
|
|
hg clone ${REPO_ROOT}
|
|
|
|
else
|
|
|
|
hg clone ${REPO_ROOT} -r ${VERSION}
|
|
|
|
fi
|
|
|
|
pushd jdk8
|
|
|
|
|
2013-07-23 10:35:30 +00:00
|
|
|
# for subrepo in corba hotspot jdk jaxws jaxp langtools nashorn common
|
|
|
|
# it looks like commons have been added as separate repo for jdk8
|
|
|
|
# but not yet for aarch64-port
|
|
|
|
for subrepo in corba hotspot jdk jaxws jaxp langtools nashorn
|
2013-07-23 08:59:21 +00:00
|
|
|
do
|
|
|
|
if [[ "$REPO_NAME" == "aarch64-port" ]] ; then
|
|
|
|
# aarch64-port does not tag trees
|
|
|
|
# FIXME make this clone reproducible
|
|
|
|
hg clone ${REPO_ROOT}/${subrepo}
|
|
|
|
else
|
|
|
|
hg clone ${REPO_ROOT}/${subrepo} -r ${VERSION}
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
rm -rvf jdk/src/share/native/sun/security/ec/impl || echo ok
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
find jdk8 -type d -name ".hg" -exec rm -rf '{}' \; || echo ok
|
|
|
|
tar cJf ${REPO_NAME}-b${VERSION}.tar.xz jdk8
|
|
|
|
|
|
|
|
popd
|
2013-07-21 17:35:12 +00:00
|
|
|
done
|