Index: mttroot/mtt/bin/trans/cbg2ese_m2r ================================================================== --- mttroot/mtt/bin/trans/cbg2ese_m2r +++ mttroot/mtt/bin/trans/cbg2ese_m2r @@ -14,10 +14,13 @@ ## Version control history ############################################################### ## $Id$ ## ## $Log$ +## Revision 1.29 2001/03/29 19:24:14 gawthrop +## Can now use c representations of crs when using -c option +## ## Revision 1.28 2001/02/05 17:19:52 gawthrop ## Now gives unique names to the states of multiports. Second name ## onwards labeled with port number ## ## Revision 1.27 2000/12/05 12:09:56 peterg @@ -183,16 +186,16 @@ if [ -z "$partition" ]; then ## Don't partition # Create the composite ese file - cat $1_ese.r $1_*_ese.r $1_modpar.r > $1_ese.tmp 2>> /dev/null + mtt_xargs.sh cat "$1_ese.r $1_*_ese.r $1_modpar.r" > $1_ese.tmp 2>> /dev/null mv $1_ese.tmp $1_ese.r # Zap the sub ese files - rm -f $1_*_ese.r + mtt_xargs.sh "rm -f" "$1_*_ese.r" echo "END;" >> $1_ese.r else # Partition the system @@ -301,11 +304,11 @@ endfor; EOF ## Subsystems (Only works when no repetitions at this level) esefile=${subsystem}_ese.r echo Creating $esefile - cat ${subsystem}_1_ese.r ${subsystem}_1_*_ese.r > $esefile 2> /dev/null + mtt_xargs.sh cat "${subsystem}_1_ese.r ${subsystem}_1_*_ese.r" > $esefile 2> /dev/null echo "END;" >> $esefile ## Def file for subsystem makedef ${subsystem} ADDED mttroot/mtt/bin/trans/mtt_xargs.sh Index: mttroot/mtt/bin/trans/mtt_xargs.sh ================================================================== --- mttroot/mtt/bin/trans/mtt_xargs.sh +++ mttroot/mtt/bin/trans/mtt_xargs.sh @@ -0,0 +1,7 @@ +#! /bin/sh + +cmd=$1 +for arg in $2; do + eval $cmd $arg +done +