summaryrefslogtreecommitdiff
path: root/textproc/smartdoc/files
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/smartdoc/files')
-rw-r--r--textproc/smartdoc/files/sdoc.in12
-rw-r--r--textproc/smartdoc/files/sdoc.sh.in5
2 files changed, 5 insertions, 12 deletions
diff --git a/textproc/smartdoc/files/sdoc.in b/textproc/smartdoc/files/sdoc.in
deleted file mode 100644
index 048013019a1b..000000000000
--- a/textproc/smartdoc/files/sdoc.in
+++ /dev/null
@@ -1,12 +0,0 @@
-#! /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 $*
diff --git a/textproc/smartdoc/files/sdoc.sh.in b/textproc/smartdoc/files/sdoc.sh.in
new file mode 100644
index 000000000000..575899322bf1
--- /dev/null
+++ b/textproc/smartdoc/files/sdoc.sh.in
@@ -0,0 +1,5 @@
+#! /bin/sh
+#
+# $FreeBSD$
+
+JAVA_VERSION="1.2+" "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/SmartDoc.jar" "$@"