Overview
Comment: | Initial revision |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
fae876e2c4d810321b78d0e8746f38f2 |
User & Date: | gawthrop@users.sourceforge.net on 1996-08-05 20:13:56 |
Other Links: | branch diff | manifest | tags |
Context
1996-08-05
| ||
20:15:39 | Prepared for recursive version. check-in: b130008abd user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
20:13:56 | Initial revision check-in: fae876e2c4 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
20:12:43 | Now writes a _fig.fig file. check-in: 5b59400390 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/cbg_m2fig version [48f32f827f].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: cbg_m2fig # # Causal bond graph: mfile format to fig file format # The resultant fig file is the original _abg.fig with # additional causal strokes superimposed. # # P.J.Gawthrop May 1996 # Copyright (c) P.J.Gawthrop, 1996. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ############################################################### # Remove the old log file rm -f cbg_m2fig.log rm -f mtt_info.txt cp $1_fig.fig $1_cbg.fig #Inform user echo Creating $1_cbg.fig # Use matrix manipulation to accomplish the transformation $MATRIX > cbg_m2fig.log 2>> cbg_m2fig.log << EOF system_name = '$1'; system_type = '$1'; full_name = ''; thick = 3; length = 250; red = 4; blue = 1; green = 12; font = 18; cbg2fig(system_name, ... system_type, full_name, ... length, thick, blue, ... font, green, red); EOF |
Added mttroot/mtt/bin/trans/rbg_fig2m version [3880d25071].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: rbg_fig2m # Raw bond-graph conversion from fig to matlab # P.J.Gawthrop May 1996 # Modified June 1996 to handle xfig version 3 # Copyright (c) P.J.Gawthrop, 1996. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ############################################################### # Inform user echo "Creating $1_rbg.m" echo "Creating $1_cmp.m" echo "Creating $1_fig.fig" rm -f $1_fig.fig # The following horrible sed thing is to replace tab by ---- # this is because I can't get sed to recognise tabs even if FS=" ". sed 's/ /---- /'<$1_abg.fig > $1_abg.mtt # This is the main transformation using gawk cat $1_lbl.txt $1_abg.mtt | gawk -f $MTTPATH/rbg_fig2m.awk $1 rm -f $1_abg.mtt |