Overview
Comment: | Fixed function () compatibility problem. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a0e16a464447f9c3178357d1f8609fe1 |
User & Date: | gawthrop@users.sourceforge.net on 2000-12-05 09:04:08 |
Other Links: | branch diff | manifest | tags |
Context
2000-12-05
| ||
09:04:54 | *** empty log message *** check-in: f49f372c3e user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
09:04:08 | Fixed function () compatibility problem. check-in: a0e16a4644 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
09:01:52 | Changed == to = check-in: d3e8b806d9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/rbg2abg_m from [fb82d60966] to [cd8aa2e02b].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | + + + | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: rbg2abg_m # ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.15 2000/11/03 14:53:33 peterg ## Copy NOTPAR as well ## ## Revision 1.14 2000/09/14 08:41:35 peterg ## Strip off the additional direction info from rbonds ## ## Revision 1.13 2000/03/16 12:53:26 peterg ## Added copy of the %VAR declarations ## Put in the endfunction statement ## |
︙ | |||
99 100 101 102 103 104 105 106 107 108 109 110 111 | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | + + - + + + + - + - + | # P.J.Gawthrop May 1996 # Copyright (c) P.J.Gawthrop, 1996. while [ -n "`echo $1 | grep '^-'`" ]; do case $1 in -I ) info=info;; -nounits ) units=no;; *) echo "$1 is an invalid argument - ignoring" ;; esac shift done |
︙ | |||
137 138 139 140 141 142 143 144 | 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 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 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | + + + + + - - - + + + - - + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - + | rbonds = rbonds(:,1:6); # Strip the directional information [bonds,components,n_vector_bonds] = rbg2abg(name,rbonds,rstrokes,rcomponents,port_coord,port_name,\ infofile,errorfile); %Write the function m-file for the causal bond graph write_abg(name,bonds,components,n_vector_bonds); EOF ## Sets the units for the abg file function test_units { grep '^[\s]*[#|%]UNITS' < ${lbl_file} >/dev/null |
︙ |