summaryrefslogtreecommitdiff
path: root/textproc/smartdoc-devel/files/sdoc.in
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/smartdoc-devel/files/sdoc.in')
-rw-r--r--textproc/smartdoc-devel/files/sdoc.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/textproc/smartdoc-devel/files/sdoc.in b/textproc/smartdoc-devel/files/sdoc.in
new file mode 100644
index 000000000000..048013019a1b
--- /dev/null
+++ b/textproc/smartdoc-devel/files/sdoc.in
@@ -0,0 +1,12 @@
+#! /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 $*