#!/usr/bin/bash

# Find the absolute path to CRUSH (follow links manually, not using 'readlink 
# -f' (which does not work on MacOS X)
CURRENT_DIR=`pwd`
cd `dirname $0`
RUNAS=`basename $0`
while [ -L $RUNAS ] ; do
  RUNAS=`readlink $(basename $RUNAS)`
  cd `dirname $RUNAS`
  RUNAS=`basename $RUNAS`
done
CRUSH=`pwd`
cd $CURRENT_DIR

source $CRUSH/startup/wrapper.sh show

$JAVA $JAVAOPTS -classpath $CLASSPATH crushtools.ShowData ${1+"$@"}
