[Slackbuilds-users] LibreOffice.SlackBuild: java selection code
Andrzej Telszewski
atelszewski at gmail.com
Sat Mar 4 10:21:00 UTC 2017
Hi,
In the latest LibreOffice.SlackBuild you have:
JAVA=${JAVA:-openjdk}
if [ "$JAVA" = "openjdk" ]; then
. /etc/profile.d/openjdk.sh
use_java="--with-java=java"
elif [ "$JAVA" = "openjdk8" ]; then
. /etc/profile.d/openjdk8.sh
use_java="--with-java=java"
elif [ "$JAVA" = "jdk" ]; then
. /etc/profile.d/jdk.sh
use_java="--with-java=java"
elif [ "$JAVA" = "no" ]; then
use_java="--with-java=no"
fi
Isn't it the task of the shell to actually source the correct file?
--
Best regards,
Andrzej Telszewski
More information about the SlackBuilds-users
mailing list