#!/bin/sh # $FreeBSD: head/editors/omegaT/files/omegaT.sh.in 340872 2014-01-24 00:14:07Z mat $ ## If the preferences files is not available ## create a sample one ## if [ ! -f ${HOME}/.omegat/omegat.prefs ] ; then mkdir -m 755 ${HOME}/.omegat cp "%%DATADIR%%/omegat.prefs" ${HOME}/.omegat && chmod 644 ${HOME}/.omegat/omegat.prefs fi JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/OmegaT.jar" "$@"