source: oracle-java9-x64-installer/trunk/fuentes/debian/oracle-java9-x64-installer.config @ 6504

Last change on this file since 6504 was 6504, checked in by mabarracus, 2 years ago

Initial commit oracle-jdk9-x64-installer

File size: 1.5 KB
Line 
1#!/bin/sh
2#jinstall - Command line script to easily add new java directories to
3#'alternatives'. This sets the java as default, and you can switch your
4#default java with update-java-alternatives
5#
6#Copyright 2012 Bruce.Ingalls at gmail & Alin Andrei <webupd8@gmail.com>
7#GPL v3 Affero license at http://www.gnu.org/
8#Downloads & discussion at http://www.webupd8.org/
9#Tested on Ubuntu Oneiric; should require few changes for other modern Unix systems
10#Currently tested only with JDK, not JRE.
11# Not fully internationalized, including japanese man pages
12
13set -e
14
15VER='0.6alpha'
16
17. /usr/share/debconf/confmodule
18
19db_get oracle-java9-installer/local
20echo "$SHA256SUM_TGZ  $RET/$FILENAME" \
21| sha256sum -c > /dev/null 2>&1 \
22|| db_set oracle-java9-installer/local /var/cache/oracle-jdk9-x64-installer
23
24db_get oracle-java9-installer/local
25echo "$SHA256SUM_TGZ  $RET/$FILENAME" \
26| sha256sum -c > /dev/null 2>&1 \
27|| db_set oracle-java9-installer/local /usr/lib/oracle-jdk9-x64-installer-unpackdir
28
29db_get oracle-java9-installer/local
30echo "$SHA256SUM_TGZ  $RET/$FILENAME" \
31| sha256sum -c > /dev/null 2>&1 \
32|| db_reset oracle-java9-installer/local
33
34while true; do
35    db_input medium oracle-java9-installer/local || true
36    db_go
37    db_get oracle-java9-installer/local
38    if [ -d "$RET" -a -f "$RET"/$FILENAME ]; then
39                LOCAL="true"
40                break;
41    elif [ "x$RET" = "x" ]; then
42                break;
43    fi
44    db_reset oracle-java9-installer/not_exist || true
45    db_reset oracle-java9-installer/local || true
46    db_text medium oracle-java9-installer/not_exist || true
47    db_go
48done
49
50exit 0
Note: See TracBrowser for help on using the repository browser.