1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/textproc/smartdoc-devel/files/sdoc.in
Kiriyama Kazuhiko cdea8ba0f4 New port for SmartDoc development version(Beta). First, put
beta of 1.0.0 at 1/7/2002(1.0.1b) with 1.0.0.20020701.
2002-07-29 10:53:16 +00:00

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 $*