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.13 1998/05/12 14:49:10 peterg +## Don't write END; any more - ese-tidy does this now! +## ## Revision 1.12 1998/01/23 13:30:46 peterg ## $RMATRIX --> $MATRIX ## ## Revision 1.11 1997/12/16 18:05:03 peterg ## Increased size of structure vector by on to include unknown_inputs as @@ -54,10 +57,21 @@ ## ## Revision 1.1 1996/08/08 15:57:15 peter ## Initial revision ## ############################################################### + +while [ -n "`echo $1 | grep '^-'`" ]; do + case $1 in + -I ) + info=info;; + *) + echo "$1 is an invalid argument - ignoring" ;; + esac + shift +done + infofile='mtt_info.txt'; structurefile="$1_struc.txt"; eqnfile="$1_ese.r"; deffile="$1_def.r"; @@ -100,11 +114,14 @@ 1, structure, structurefilenum, infofilenum); makedef(structure,deffilenum); EOF -cat $infofile + +if [ "$info" = "info" ]; then + cat $infofile +fi # Create the composite ese file cat $1_ese.r $1_*_ese.r > $1_ese.tmp 2>> /dev/null mv $1_ese.tmp $1_ese.r