Index: mttroot/mtt/bin/trans/mtt_txt2m
==================================================================
--- mttroot/mtt/bin/trans/mtt_txt2m
+++ mttroot/mtt/bin/trans/mtt_txt2m
@@ -13,10 +13,13 @@
 # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 # %% Version control history
 # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 # %% $Id$
 # %% $Log$
+# %% Revision 1.12  2000/11/08 11:20:49  peterg
+# %% removed the empty matrix stuff
+# %%
 # %% Revision 1.11  2000/10/17 09:55:21  peterg
 # %% Added logic rep
 # %%
 # %% Revision 1.10  2000/10/15 09:51:50  peterg
 # %% Set array code in input rep
@@ -117,10 +120,12 @@
 
 system=$1
 representation=$2
 outfile=$1_$2.m
 
+tolower () { tr [A-Z] [a-z] ;}
+
 # Inform user
 echo Creating $outfile
 
 #Create the rep  file complete with headers.
 case $representation in
@@ -210,11 +215,11 @@
      -e 's/\[\([0-9]*\)\]/(\1)/g' \
      -e 's/\([^a-zA-Z_]\)t\([^a-zA-Z_]\)/\1mttt\2/g' \
      -e 's/x(/mttx(/g' \
      -e 's/u(/mttu(/g' \
      -e 's/mttmtt/mtt/g' \
- >> $outfile
+| tolower >> $outfile
 
 if [ -n "$arraycode" ]; then
   new_style=`strip_comments < $1_$2.txt| grep "$name(">/dev/null; echo $?`
 
   if [ "$new_style" = "1" ]; then
@@ -229,11 +234,12 @@
 
 ## Special for logic rep
 if [ "$representation" = "logic" ]; then
   echo >> $outfile
   echo "## Open switches" >> $outfile
-  switch_txt2m $system >> $outfile
+  switch_txt2m $system | tolower >> $outfile
 fi
 
 # End of the function
 echo '## END Code' >> $outfile
 echo 'endfunction' >> $outfile
+