mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
cdea8ba0f4
beta of 1.0.0 at 1/7/2002(1.0.1b) with 1.0.0.20020701.
13 lines
421 B
Bash
13 lines
421 B
Bash
#! /bin/sh
|
|
|
|
INSTALLDIR=%%JAVALIBDIR%%/classes
|
|
JAVA_VERSION=`javavm -version 2>&1 | grep "^java.* version" | sed -e 's/^.* version "\([0-9]*\.[0-9]*\)\..*"$/\1/'`
|
|
|
|
if [ "$JAVA_VERSION" = '1.1' ]; then
|
|
echo "SmartDoc requires Java newer than 1.2."
|
|
echo "Fix %%LOCALBASE%%/etc/javavms properly, or set the environment variable JAVAVM to a correct JavaVM."
|
|
exit 1
|
|
fi
|
|
|
|
exec javavm -jar $INSTALLDIR/SmartDoc.jar $*
|