Overview
Comment:Changed some greps to be case insensitive
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 95a6d65dac2e0e07ba103dbd0f2885a7167a9ac3eba0f16fd4c893c849f6e71d
User & Date: gawthrop@users.sourceforge.net on 2000-11-27 11:52:10
Other Links: branch diff | manifest | tags
Context
2000-11-27
15:11:15
Initial revision check-in: 56f9d2fd62 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:52:10
Changed some greps to be case insensitive check-in: 95a6d65dac user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:51:43
Added zero matrices in matlab code check-in: ce706360ab user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_r2m from [dde7b80ddb] to [4c22c539fe].

14
15
16
17
18
19
20



21
22
23
24
25
26
27
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30







+
+
+







# Copyright (C) 2000 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.25  2000/10/14 08:50:07  peterg
## Use new mtt_header
##
## Revision 1.24  2000/10/11 09:07:53  peterg
## Vectorisation
## csex rep.
##
## Revision 1.23  2000/10/10 21:00:43  peterg
## More reps added
##
135
136
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
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







-
+
+
+
+
+





-
+
-


+
+


-
+

-
+







esac

    mtt_header  $1 $rep $ext  > mtt_junk

#Convert from the (optimised) r file
echo >> mtt_junk
echo '## Code' >> mtt_junk
grep 'mtt'  $1_$2.r |\
strip_comments<$1_$2.r | tr [A-Z] [a-z] |\
grep -vi 'MATRIX ' |\
grep -vi 'END;' |\
grep -v '^off' |\
grep -v '^in' |\
sed \
    -e "s/^mtt/  mtt/" \
    -e "s/:=/=/" \
    -e "s/\\$/;/" \
 >> mtt_junk

echo '## END Code' >> mtt_junk

echo endfunction >> mtt_junk

# Mend broken lines
mtt_mend_lines < mtt_junk > mtt_junk_mended
# Vectorise (n,1) arrays when appropriate
if [ -n "$vectorise" ]; then
     mtt_vectorise <mtt_junk >$out
     mtt_vectorise <mtt_junk_mended >$out
else
     mv mtt_junk $out
     mv mtt_junk_mended $out
fi

# Now invoke the standard error handling.
#mtt_error_r mtt_r2m.log




MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]