#!/bin/sh
###########################################################################
# Version: 1.0
# Code from the clustalx installer script
# Path to the clustal installation directory
export CLU_INSTALL_DIR=/usr/lib64/clustalx
BINARY=clustalx
###########################################################################

PROG=`basename $0`

# Debugging
#echo CLU_INSTALL_DIR=$CLU_INSTALL_DIR  1>&2
#echo BINARY=$BINARY  1>&2

# Is there an executable binary file?
binary=$CLU_INSTALL_DIR/$BINARY
if [ ! -f $binary ]; then
    echo "$PROG: Can't find executable '$binary'"
    exit 1
fi
if [ ! -x $binary ]; then
    echo "$PROG: Binary '$binary' is not executable"
    exit 1
fi

# Exec the child over this one
exec $binary $*
###########################################################################
