Index: mttroot/mtt/bin/trans/rbg2abg_m ================================================================== --- mttroot/mtt/bin/trans/rbg2abg_m +++ mttroot/mtt/bin/trans/rbg2abg_m @@ -9,10 +9,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.8 1998/02/19 08:57:02 peterg +## Fixed mtt-info bug -- confused filename with number +## ## Revision 1.7 1997/08/05 08:38:23 peterg ## Added n-ports to the argument list in the comment. ## ## Revision 1.6 1996/12/04 21:52:01 peterg ## Uses filenum and fopen instead of filename. @@ -75,10 +78,21 @@ # Column 3-14 fig file information (see fig documentation) # # P.J.Gawthrop May 1996 # Copyright (c) P.J.Gawthrop, 1996. +while [ -n "`echo $1 | grep '^-'`" ]; do + case $1 in + -I ) + info=info;; + *) + echo "$1 is an invalid argument - ignoring" ;; + esac + shift +done + + # Remove the old log file rm -f rbg2abg_m.log rm -f $1_abg.m @@ -108,14 +122,16 @@ mat2mfile(components, 'components', filenum); fprintf(filenum, 'n_ports = %1.0f;\n', n_ports); EOF -cat mtt_info.txt +if [ "$info" = "info" ]; then + cat mtt_info.txt +fi mtt_error mtt_error.txt