diff options
author | Herve Quiroz <hq@FreeBSD.org> | 2005-02-05 03:45:32 +0000 |
---|---|---|
committer | Herve Quiroz <hq@FreeBSD.org> | 2005-02-05 03:45:32 +0000 |
commit | 9dce94ea1ca6f8b2f71aa29048464d8f1d0f5870 (patch) | |
tree | d479d7f38556248e2ab65e9bfbabae32025156e0 /textproc/smartdoc/files | |
parent | - Update to java.bsd.mk 2.0 (diff) |
- Update to bsd.java.mk 2.0
- Use JAVAJARDIR
- Use PORTDOCS (and calm portlint)
- CP -> INSTALL_DATA
- Improve the launcher shell script: use javavmwrapper 2.0 rather than testing
manually the JDK version
- Use SUB_FILES to configure launcher rather than a perl script
Notes
Notes:
svn path=/head/; revision=128066
Diffstat (limited to 'textproc/smartdoc/files')
-rw-r--r-- | textproc/smartdoc/files/sdoc.in | 12 | ||||
-rw-r--r-- | textproc/smartdoc/files/sdoc.sh.in | 5 |
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" "$@" |