#!/bin/sh
#
# $Id: HtmlConverter,v 1.4 2001/11/14 18:19:18 kreilede Exp $
#
#  Copyright 2000-2001 Sun Microsystems, Inc. All rights reserved.
#  Copyright 2000-2001 Sun Microsystems, Inc. Tous droits rservs.
#
# This software is the proprietary information of Sun Microsystems, Inc.
# Use is subject to license terms.
#

#
# @(#)HtmlConverter	1.2 02/26/01
#
# Startup script for the HTML Converter
#

PRG=$0
SVPATH="${PATH}"
PATH=/bin:/usr/bin

while [ -L "${PRG}" ]; do
    ls=`ls -ld "${PRG}"`
    link=`expr "${ls}" : '.*-> \(.*\)$'`
    if expr "${link}" : '/' > /dev/null; then
        PRG="${link}"
    else
        PRG="`dirname ${PRG}`/${link}"
    fi
done

BINDIR=`dirname ${PRG}`
PATH="${SVPATH}"
exec ${BINDIR}/java -jar "${BINDIR}/../lib/htmlconverter.jar" $*
