Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.135 1998/02/25 22:09:48 peterg +## Added simpar representation. +## ## Revision 1.134 1998/02/25 15:28:34 peterg ## Added state.m rep. ## ## Revision 1.133 1998/02/24 22:35:33 peterg ## Added -p (preserve) switch to cp in tidy mode. @@ -646,11 +649,11 @@ # The big clean up if [ "$1" = "Clean" ] && [ "$2" = "" ]; then echo 'Removing all generated files for all systems' rm -f *.log mtt_info.txt warning.txt - rm -f *_abg.m *_abg.ps *_args.* *_cr.r *_cr.txt *_abg.tex + rm -f *_abg.m *_abg.ps *_args.* *_cr.txt *_abg.tex rm -f *_sabg.fig *_sabg.ps *_head.fig *_bnd.fig rm -f *_sympar.r *_sympar.c *_sympar.h *_sympar.txt? *_sympar.tex rm -f *_rbg.* *_cmp.* *_fig.fig *_*cbg.* *_ese.* *_def.* rm -f *_sub.* *_type.sh rm -f *_dae*.* *_cse.* *_ode.* @@ -671,11 +674,11 @@ # Clean up named system if [ "$2" = "Clean" ] && [ "$3" = "" ]; then echo 'Removing all generated files for system ' $1 rm -f *.log mtt_info.txt warning.txt - rm -f $1_abg.m $1_abg.ps $1_args.* $1_cr.r $1_cr.txt $1_abg.tex + rm -f $1_abg.m $1_abg.ps $1_args.* $1_cr.txt $1_abg.tex rm -f $1_sabg.fig $1_sabg.ps $1_head.fig $1_bnd.fig rm -f $1_sympar.r $1_sympar.c $1_sympar.h $1_sympar.txt? $1_sympar.tex rm -f $1_rbg.* $1_cmp.* $1_fig.fig $1*_*cbg.* $1*_ese.* $1_def.* rm -f $1_sub.* $1_type.sh rm -f $1_dae*.* $1_cse.* $1_ode.* $1_obs.* $1_rfe.* $1_ss.* @@ -792,15 +795,15 @@ exit fi # Copy CRs from the library if [ "$1" = "crcopy" ]; then - # check that its not here already - file_exists=`ls $2.cr 2> /dev/null` + # check that its not here already (or a _cr.r version) + file_exists=`ls $2.cr $2_cr.r 2> /dev/null` if [ -n "$file_exists" ]; then if [ "$quiet" != "quiet" ]; then - echo $2.cr exists already - no action taken + echo $2.cr or $2_cr.r exists already - no action taken fi else path_name=$3 if [ -z "$path_name" ]; then path_name=$MTTPATH/lib/cr/r @@ -968,10 +971,15 @@ #Create empty files (with titles) if not already there #SUMMARY lbl label file (txt) $1_lbl.txt: abg2lbl_fig2txt $1 + +#SUMMARY lbl label file (tex) +#SUMMARY lbl label file (view) +$1_lbl.tex: $1_lbl.txt + txt2tex $1 lbl txt #SUMMARY cr constitutive relationship for each subsystem (txt) $1_cr.txt: $1_sub.sh lbl2cr_txt2txt $1 @@ -990,10 +998,15 @@ fi #SUMMARY cr constitutive relationship for each subsystem (r) $1_cr.r: $1_cr.txt cr_txt2r $1 + +#SUMMARY cr constitutive relationship for each subsystem (tex) +#SUMMARY cr constitutive relationship for each subsystem (view) +$1_cr.tex: $1_cr.r + txt2tex $1 cr r #SUMMARY sympar symbolic parameters (txt) # Lbl to sympar conversion ifeq ($switches,0) $1_sympar.txt: $1_sub.sh @@ -1662,13 +1675,11 @@ $1_$2.doc: $1_$2.tex makedoc "$mtt_switches" "$1" "$2" "$3" "$4" "$documenttype" #Generic conversion of LaTeX doc to dvi $1_$2.dvi: $1_$2.doc - echo Creating $1_$2.dvi - latex $1_$2.doc > /dev/null; - latex $1_$2.doc > /dev/null; + doc2dvi $1_$2 #Create PostScript version of fig files ifeq ($REPTYPE,bg) $1_$2.ps : $1_$2.fig echo Creating $1_$2.ps @@ -1751,10 +1762,11 @@ rep_txt2tex $1 "$documenttype" "$directory"; #SUMMARY abg Acausal bond graph report (tex) $1_abg.tex: $1_sub.sh abg2tex $1 + # Version control system - uses RCS RCS: echo Creating RCS mkdir RCS