forked from Lainports/freebsd-ports
This also fixes a problem that when being modified it wasn't specified by absolute path. Reported by: Robert Backhaus <robbak@robbak.com>
20 lines
516 B
Bash
20 lines
516 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: /tmp/pcvs/ports/java/javavmwrapper/files/pkg-install.in,v 1.1 2004-12-16 15:38:17 glewis Exp $
|
|
|
|
LOCALBASE=%%LOCALBASE%%
|
|
|
|
# This script runs during post-install
|
|
if [ "x${2}" != "xPOST-INSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# Ensure all JDKs and JREs are installed
|
|
for jvm in "${LOCALBASE}"/*jdk* "${LOCALBASE}"/*jre*; do
|
|
if [ -x "${jvm}/bin/java" ]; then
|
|
"${PKG_PREFIX}"/bin/registervm "${jvm}/bin/java"
|
|
fi
|
|
done
|
|
|
|
# Ensure all VMs are configured correctly
|
|
"${PKG_PREFIX}"/bin/checkvms
|