#!/bin/sh # Config files can define several variables used throughout this script. # JAVACMD - The java command to launch osmosis. # JAVACMD_OPTIONS - The options to append to the java command, typically used to modify jvm settings such as max memory. # OSMOSIS_OPTIONS - The options to apply to all osmosis invocations, typically used to add plugins or make quiet operation the default. if [ -f /etc/osmosis ] ; then . /etc/osmosis fi if [ -f "$HOME/.osmosis" ] ; then . "$HOME/.osmosis" fi if [ -z "$JAVACMD" ] ; then # No JAVACMD provided in osmosis config files, therefore default to java JAVACMD=java fi ## resolve links - $0 may be a link to application PRG="$0" # if started without absolute path, but from PATH environment if [ ! -s "$PRG" ] ; then PRG=`which $PRG` fi # need this for relative symlinks while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG="`dirname "$PRG"`/$link" fi done if [ "x$1x" = "xx" ] || echo "$@" | grep -q -e '--help' ; then cat <