#!/bin/sh

SRCDIR=`dirname $0`
if [ $SRCDIR = "." ]
then
        SRCDIR=`pwd`
fi

# Append library location
SRCDIR=$SRCDIR/usr/share/Insight/library

INSIGHT=`which insight`
if [ $? != 0 ]; then
	echo "\nInsight not found on this system...\n"
	exit 1
fi

SZ=`/bin/ls -s "$INSIGHT" | awk '{printf "%s", $1}'` 

if [ "$SZ" -lt 200 ]; then
	# new
	insight -n -l "$SRCDIR/SGI_bookshelves"
else

	# old
	insight -l "$SRCDIR"
fi

exit 0

