freebsd-ports/devel/svnkit/files/javasvn.sh.in
Herve Quiroz c7930081ff - Update to 1.0.3 [1]
- Use 'exec' to launch the JVM
- Cleanup: unset USE_REINPLACE as REINPLACE_CMD is not even used

PR:		93868 [1]
Submitted by:	maintainer [1]
2006-04-04 08:18:39 +00:00

17 lines
494 B
Bash

#!/bin/sh
#
# $FreeBSD$
JAVASVN_HOME=${JAVASVN_HOME:-"%%DATADIR%%"}
JAVASVN_CP=${JAVASVN_HOME}/javasvn.jar:${JAVASVN_HOME}/javasvn-cli.jar:${JAVASVN_HOME}/jsch.jar
JAVASVN_LOGDIR=${JAVASVN_LOGDIR:-"${HOME}/.javasvn"}
if [ ! -d ${JAVASVN_LOGDIR} ]; then
mkdir ${JAVASVN_LOGDIR}
fi
JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" \
${JAVASVN_OPTS} \
-Djava.util.logging.config.file="${JAVASVN_HOME}/logging.properties" \
-cp "${JAVASVN_CP}" \
org.tmatesoft.svn.cli.SVN "$@"