#!/bin/sh export Tcl="@TCLSH@" if [ "x$1" = "x" ] ; then echo "bld2rc 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 @pkgdatadir@/bld2rc.tcl ] ; then Simp=@pkgdatadir@/bld2rc.tcl; fi if [ -f @CCAFE_RPM_pkgdatadir@/bld2rc.tcl ] ; then Simp=@CCAFE_RPM_pkgdatadir@/bld2rc.tcl; fi if [ -f @bindir@/bld2rc.tcl ] ; then Simp=@bindir@/bld2rc.tcl; fi if [ 'x$Simp' = 'x' ] ; then echo 'bld2rc.tcl not found in pwd'; exit 1; fi exec $Tcl $Simp -- $* exit 0