source: oracle-java8-installer/trunk/fuentes/developer_helper.sh @ 6493

Last change on this file since 6493 was 6493, checked in by mabarracus, 20 months ago

Package Java 8u151

  • Property svn:executable set to *
File size: 734 bytes
Line 
1#!/bin/bash
2set -x
3JAVA_VERSION=8u151
4URL_FROM_ORACLE="http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf"
5
6for arch in i586 x64; do
7        echo " Downloading Java for $arch : STDOUT is disabled"
8        WGETRC=wgetrc wget --no-cookies --continue --no-check-certificate  --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" ${URL_FROM_ORACLE}/jdk-${JAVA_VERSION}-linux-${arch}.tar.gz >/dev/null 2>/dev/null
9        if [ $? -eq 0 ]; then
10            echo " Moving to the correct place : jdk-8-linux-${arch}.tar.gz"
11            #mv jdk-${JAVA_VERSION}-linux-${arch}.tar.gz jdk-8-linux-${arch}.tar.gz
12            echo " Java for $arch is ready"
13        else
14            echo " Download failed "
15        fi
16done
17
18
19
20
Note: See TracBrowser for help on using the repository browser.