]> git.pld-linux.org Git - packages/openjdk9.git/blame - download.sh
Use the official 'update' release jdk8u66-b02
[packages/openjdk9.git] / download.sh
CommitLineData
3899c70b
JK
1#!/bin/sh -e
2
d8978afb
JK
3tag="$1"
4
5if [ -z "$tag" -a -x /usr/bin/rpm-specdump ] ; then
6 version=$(rpm-specdump openjdk8.spec | awk '/^h PACKAGE_VERSION/ { sub(/.b/, "-b", $3); print $3 }')
7 if [ -n "$version" ] ; then
8 tag="jdk$version"
9 echo "Using spec version: $tag"
10 fi
11fi
12
13
14if [ -z "$tag" -o "${tag#jdk8}" = "${tag}" ] ; then
3899c70b 15 echo "Usage:" >&2
d8978afb 16 echo " $0 <tag>" >&2
3899c70b 17 echo "e.g:" >&2
d8978afb 18 echo " $0 jdk8u66-b02" >&2
3899c70b
JK
19 exit 1
20fi
21
d8978afb
JK
22if [ "${tag#jdk8u}" != "${tag}" ] ; then
23 repo="jdk8u"
24else
25 repo="jdk8"
26fi
3899c70b 27
d8978afb 28curl -o "openjdk8-${tag}.tar.bz2" "http://hg.openjdk.java.net/$repo/$repo/archive/${tag}.tar.bz2"
3899c70b
JK
29
30for component in corba hotspot jaxp jaxws jdk langtools nashorn ; do
d8978afb 31 curl -o "openjdk8-${component}-${tag}.tar.bz2" "http://hg.openjdk.java.net/$repo/$repo/${component}/archive/${tag}.tar.bz2"
3899c70b 32done
This page took 0.093428 seconds and 4 git commands to generate.