Index: mttroot/mtt/bin/trans/sympar2global_txt2lang ================================================================== --- mttroot/mtt/bin/trans/sympar2global_txt2lang +++ mttroot/mtt/bin/trans/sympar2global_txt2lang @@ -14,10 +14,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.5 1998/07/26 11:00:18 peterg +## Put in exits-- this all needs a good clean +## ## Revision 1.4 1998/07/26 10:50:30 peterg ## Corrected bug. ## ## Revision 1.3 1998/07/26 10:48:18 peterg ## Now strips comments @@ -55,20 +58,11 @@ $Lc====== Set up the global variables ======$Rc EOF # Matlab bit #Write out the variables in matlab global format if [ "$language" = "m" ]; then - strip_comments <$1_sympars.txt |\ - awk ' - BEGIN{ - var = "foobar"; - print "global ..." - } - {i++; print tolower($1), "..."; var = $1} - END{ - print var ";" # Repeat the last variable to avoid the trailing ... - }' + sympar2global_txt2m $1 exit fi if [ "$language" = "c" ]; then strip_comments <$1_sympars.txt |\