Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -17,10 +17,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.17 1996/08/19 06:48:14 peter +## Explicit figure editing. +## ## Revision 1.16 1996/08/18 19:58:36 peter ## Report generation included. ## ## Revision 1.15 1996/08/18 12:01:01 peter ## Unified format of time responses. @@ -111,13 +114,23 @@ EOF exit fi # Clean up after MTT -if [ "$1" = "clean" ] && [ "$2" = "" ]; then - echo 'Removing log, dat, gdat, doc, dvi and ps files' - rm -f *.log *.dat *.gdat *.doc *.dvi *.ps +if [ "$2" = "clean" ]; then + echo 'Removing log, dat, gdat, doc, dvi, aux and ps files' + rm -f $1.log $1.dat $1.gdat $1.doc $1.aux $1.dvi $1.ps + exit +fi + +if [ "$2" = "CLEAN" ]; then + echo 'Removing all generated files for system ' $1 + rm -f $1_abg.m $1_args.* + rm -f $1_rbg.* $1_cmp.* $1_fig.fig $1_cbg.* $1_ese.* $1_def.* + rm -f $1_dae*.* $1_cse.* $1_ode*.* $1_obs.* $1_rfe.* $1_ss.* + rm -f $1_dm.* $1_csm.* $1_tf.* $1_sr*.* $1_*fr.* + rm -f $1_rep.* exit fi # Invoke explicit requests for modification if [ "$2" = "abg" ] && [ "$3" = "fig" ]; then @@ -273,14 +286,10 @@ #Acausal bond graph to causal bond graph: mfile $1_cbg.m: $1_abg.m abg2cbg_m $1 -#LaTex system summary -$1_sum.tex: $1_abg.pl - abg2sum_pl2tex $1; latex_tidy $1_sum.tex - #Elementary system equations + definitions $1_ese.r: $1_cbg.m cbg2ese_m2r $1 $1_def.r: $1_ese.r touch $1_def.r