#!/bin/sh
# caution: not done yet. just the starting point from
# the java converter from sc02.
export Tcl="/usr/bin/tclsh"
progname="bld2neo"
exec_prefix=/usr
progsuffix=-0.2.8
Simp=./$progname.tcl$progsuffix
SCAN_CCA_XML=/usr/bin/scanCCAxml.x$progsuffix
export SCAN_CCA_XML
if [ "x$1" = "x" ] ; then
	echo "$progname requires an input file argument"
	exit 1
fi
if [ "x$Tcl" =  "x" ] ; then
	echo 'tclsh not found';
	echo 'Please rerun configure with \"--with-tclsh=/path/to/your/tclsh\" added'
	exit 1;
fi

if [ -f /usr/bin/$progname.tcl$progsuffix ] ; then
	Simp=/usr/bin/$progname.tcl$progsuffix;
fi

if [ "x$Simp" = "x" ] ; then
	echo "$progname.tcl$progsuffix not found in pwd";
	exit 1;
fi

exec $Tcl $Simp -- $*
exit 0

