java-1.8.0-openjdk/generate_source_tarball.sh

32 lines
701 B
Bash
Raw Normal View History

2013-03-12 13:35:26 +00:00
#!/bin/bash
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
tar czf ${VERSION}.tar.gz jdk8