#!/bin/sh
# -*- mode: shell-script; coding: utf-8 -*-
#
# Copyright 2002-2014 Cendio AB.
# For more information, see http://www.cendio.com

[ -h "$0" ] && ORIGIN=`ls -l "$0" | sed "s/.*-> //g"` || ORIGIN="$0"
ORIGIN=`(cd "\`dirname \"$ORIGIN\"\`"; pwd -P 2>/dev/null || pwd)`

if [ $# = 0 ]; then
    exec "${ORIGIN}/tlclient"
elif [ $# = 1 ]; then
    exec "${ORIGIN}/tlclient" -C "$1"
else
    echo "Usage: $0 [configfile]" >&2
fi
