#!/bin/sh
#
# $FreeBSD: ports/devel/svnkit/files/svnsync.sh.in,v 1.2 2009/09/02 17:13:21 miwi Exp $

SVNKIT_HOME=${SVNKIT_HOME:-"/usr/local/share/java/svnkit"}
SVNKIT_CP=${SVNKIT_HOME}/svnkit.jar:${SVNKIT_HOME}/svnkit-cli.jar:${SVNKIT_HOME}/ganymed.jar
SVNKIT_LOGDIR=${SVNKIT_LOGDIR:-"${HOME}/.svnkit"}

if [ ! -d ${SVNKIT_LOGDIR} ]; then
        mkdir ${SVNKIT_LOGDIR}
fi

JAVA_VERSION="1.6+" exec "/usr/local/bin/java" \
        ${SVNKIT_OPTS} \
        -Djava.util.logging.config.file="${SVNKIT_HOME}/logging.properties" \
        -cp "${SVNKIT_CP}" \
        org.tmatesoft.svn.cli.svnsync.SVNSync "$@"
