2013-03-12 13:35:26 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-07-15 19:07:29 +00:00
|
|
|
set -e
|
|
|
|
|
2013-03-12 13:35:26 +00:00
|
|
|
VERSION=$1
|
|
|
|
REV=$2
|
|
|
|
JDK8_URL=http://hg.openjdk.java.net/jdk8/jdk8
|
|
|
|
|
|
|
|
if test "x${VERSION}" = "x"; then
|
|
|
|
echo "No version specified. A version is of the form 'jdk8-bXX' (such as 'jdk8-b79')"
|
|
|
|
exit -1;
|
|
|
|
fi
|
|
|
|
|
|
|
|
wget -O root.tar.gz ${JDK8_URL}/archive/${VERSION}.tar.gz
|
|
|
|
tar xzf root.tar.gz
|
|
|
|
rm -f root.tar.gz
|
|
|
|
mv jdk8-${VERSION} jdk8
|
|
|
|
rm -f jdk8/.hg*
|
|
|
|
pushd jdk8
|
|
|
|
|
2013-04-30 05:45:49 +00:00
|
|
|
for repos in corba jaxp jaxws langtools hotspot jdk nashorn
|
2013-03-12 13:35:26 +00:00
|
|
|
do
|
|
|
|
wget -O $repos.tar.gz ${JDK8_URL}/${repos}/archive/${VERSION}.tar.gz
|
|
|
|
tar xzf $repos.tar.gz
|
|
|
|
rm -f $repos.tar.gz
|
|
|
|
mv $repos-${VERSION} $repos
|
|
|
|
rm -f $repos/.hg*
|
|
|
|
done
|
|
|
|
|
|
|
|
rm -rvf jdk/src/share//native/sun/security/ec/impl
|
|
|
|
|
|
|
|
popd
|
2013-07-15 19:07:29 +00:00
|
|
|
tar cJf ${VERSION}.tar.xz jdk8
|