aboutsummaryrefslogtreecommitdiff
path: root/textproc/smartdoc-devel/files
diff options
context:
space:
mode:
authorKiriyama Kazuhiko <kiri@FreeBSD.org>2002-07-29 10:53:16 +0000
committerKiriyama Kazuhiko <kiri@FreeBSD.org>2002-07-29 10:53:16 +0000
commitcdea8ba0f44faa549da376745381738a4ec0a204 (patch)
treef8f4de05b61c4f72f3537f3cfe66d42cc09da783 /textproc/smartdoc-devel/files
parent5d425526bc3480f7412cbd76ae351eac674dd75e (diff)
downloadports-cdea8ba0f44faa549da376745381738a4ec0a204.tar.gz
ports-cdea8ba0f44faa549da376745381738a4ec0a204.zip
Notes
Diffstat (limited to 'textproc/smartdoc-devel/files')
-rw-r--r--textproc/smartdoc-devel/files/catalog1
-rw-r--r--textproc/smartdoc-devel/files/sdoc.in12
2 files changed, 13 insertions, 0 deletions
diff --git a/textproc/smartdoc-devel/files/catalog b/textproc/smartdoc-devel/files/catalog
new file mode 100644
index 000000000000..632495e7c338
--- /dev/null
+++ b/textproc/smartdoc-devel/files/catalog
@@ -0,0 +1 @@
+PUBLIC "-//Tomoharu Asami//DTD PureSmartDoc XML V0.6.9//EN" "PureSmartDoc.dtd"
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 $*