#!/bin/sh # caution: not done yet. just the starting point from # the java converter from sc02. export Tcl="/usr/bin/tclsh" progname="ctor" exec_prefix=/home/jacklm/cca/workspace/trunk/install/csn progsuffix=-0.2.4 Simp=./$progname.tcl$progsuffix SCAN_CCA_XML=/home/jacklm/cca/workspace/trunk/install/csn/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 ./$progname.tcl$progsuffix ] ; then Simp=./$progname.tcl$progsuffix; fi if [ -f ../src/$progname.tcl$progsuffix ] ; then Simp=../src/$progname.tcl$progsuffix; fi if [ -f ../src/$progname.tcl ] ; then Simp=../src/$progname.tcl; fi if [ -f /home/jacklm/cca/workspace/trunk/install/csn/bin/$progname.tcl$progsuffix ] ; then Simp=/home/jacklm/cca/workspace/trunk/install/csn/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