Overview
Comment: | Automatic generation of sub-system abg.m files. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
af3f3a57fbc56b7500df2558c132d1fb |
User & Date: | gawthrop@users.sourceforge.net on 1996-10-20 19:23:54 |
Other Links: | branch diff | manifest | tags |
Context
1996-10-21
| ||
12:34:47 | Initial revision check-in: 4bccf60e71 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1996-10-20
| ||
19:23:54 | Automatic generation of sub-system abg.m files. check-in: af3f3a57fb user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
19:22:41 | Cleans up after itself. check-in: 2be2a4fb7b user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mtt from [254d1892f5] to [7793b9bf59].
︙ | ︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996. ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ # Revision 1.29 1996/10/01 11:04:05 peter # Changed name of html document. # ## Revision 1.28 1996/09/13 18:44:11 peter ## Added params dependencies. ## ## Revision 1.27 1996/09/12 19:24:56 peter | > > > > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996. ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ ## Revision 1.30 1996/10/01 14:08:05 peterg ## Replaced $() by `` ## Replaced make with gmake ## # Revision 1.29 1996/10/01 11:04:05 peter # Changed name of html document. # ## Revision 1.28 1996/09/13 18:44:11 peter ## Added params dependencies. ## ## Revision 1.27 1996/09/12 19:24:56 peter |
︙ | ︙ | |||
169 170 171 172 173 174 175 | fi # 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 *_args.* | | | | 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | fi # 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 *_args.* rm -f *_rbg.* *_cmp.* *_fig.fig *_*cbg.* *_ese.* *_def.* *_sub.sh rm -f *_dae*.* *_cse.* *_ode*.* *_obs.* *_rfe.* *_ss.* rm -f *_dm.* *_csm.* *_sm.* *_tf.* *_sr*.* *_ir*.* *_*fr.* rm -f *_rep.* *_numpar.m rm -f mtt_error.txt mtt_info.txt exit fi # 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_args.* rm -f $1_rbg.* $1_cmp.* $1_fig.fig $1*_*cbg.* $1*_ese.* $1_def.* $1_sub.sh rm -f $1_dae*.* $1_cse.* $1_ode*.* $1_obs.* $1_rfe.* $1_ss.* rm -f $1_dm.* $1_csm.* $1_sm.* $1_tf.* $1_sr*.* $1_ir*.* $1_*fr.* rm -f $1_rep.* $1_numpar.m rm -f mtt_error.txt mtt_info.txt exit fi |
︙ | ︙ | |||
367 368 369 370 371 372 373 374 375 376 377 378 379 | #Raw bond graph: fig file to mfile $1_rbg.m: $1_abg.fig $1_lbl.txt rbg_fig2m $1 $1_cmp.m: $1_rbg.m $1_fig.fig: $1_rbg.m # Lbl to sympar conversion $1_sympar.r: $1_lbl.txt lbl2sympar_txt2r $1 #Raw bond graph to acausal bond graph: mfile | > > > > | > > > > > < | 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 | #Raw bond graph: fig file to mfile $1_rbg.m: $1_abg.fig $1_lbl.txt rbg_fig2m $1 $1_cmp.m: $1_rbg.m $1_fig.fig: $1_rbg.m #Subsystem creation commands $1_sub.sh: $1_cmp.m cmp2sub_m2sh $1 # Lbl to sympar conversion $1_sympar.r: $1_lbl.txt lbl2sympar_txt2r $1 #Raw bond graph to acausal bond graph: mfile $1_abg.m: $1_rbg.m $1_sub.sh echo Creating subsystem abg files for system $1 ... sh < $1_sub.sh echo Finished creating subsystem abg files for system $1 echo rbg2abg_m $1 #Causal bond graph: mfile to fig conversion $1_cbg.fig: $1_cbg.m $1_rbg.m $1_fig.fig cbg_m2fig $1 #Acausal bond graph to causal bond graph: mfile $1_cbg.m: $1_abg.m abg2cbg_m $1 #Elementary system equations + definitions $1_ese.r: $1_cbg.m |
︙ | ︙ |