development/openjdk8: Update README. Add zulu-openjdk7 boot option.

Signed-off-by: bedlam <dave@slackbuilds.org>
This commit is contained in:
Strahil Yordanov 2022-09-17 00:21:53 +01:00 committed by bedlam
parent a26c0759bc
commit a8a3f4382d
2 changed files with 5 additions and 3 deletions

View File

@ -9,6 +9,7 @@ dependency package -- you may wish to remove it after you're done.)
If you already have 'openjdk8' on your system (and are compiling a If you already have 'openjdk8' on your system (and are compiling a
newer version, for example) you don't need the 'openjdk7' dependency. newer version, for example) you don't need the 'openjdk7' dependency.
Also, you can use 'zulu-openjdk7' instead of 'openjdk7' if you wish.
After installing the package you will need to logout/login to your After installing the package you will need to logout/login to your
machine as it will add new files to the /etc/profile.d folder. machine as it will add new files to the /etc/profile.d folder.

View File

@ -2,7 +2,7 @@
# Slackware build script for OpenJDK # Slackware build script for OpenJDK
# Copyright 2020 Strahil Yordanov, Sofia, Bulgaria # Copyright 2022 Strahil Yordanov, Sofia, Bulgaria
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=openjdk8 PRGNAM=openjdk8
VERSION=${VERSION:-8u345} VERSION=${VERSION:-8u345}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -60,7 +60,8 @@ else
fi fi
BOOT_JAVA=/usr/lib${LIBDIRSUFFIX}/openjdk7 BOOT_JAVA=/usr/lib${LIBDIRSUFFIX}/openjdk7
[ ! -d ${BOOT_JAVA} ] && BOOT_JAVA=${BOOT_JAVA%?}8 [ ! -d ${BOOT_JAVA} ] && BOOT_JAVA=${BOOT_JAVA%/*}/zulu-openjdk7
[ ! -d ${BOOT_JAVA} ] && BOOT_JAVA=${BOOT_JAVA%/*}/openjdk8
[ ! -d ${BOOT_JAVA} ] && { echo "Boot java not found"; exit 1; } [ ! -d ${BOOT_JAVA} ] && { echo "Boot java not found"; exit 1; }
set -e set -e