Overview
Comment:Replace default by Default - default is now reserved in gawk
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 501413a38bd9b261162af4b538d903465ebb1305026edb3f6a26952e616a6053
User & Date: gawthrop@users.sourceforge.net on 2013-11-25 02:54:48
Other Links: branch diff | manifest | tags
Context
2013-11-25
03:16:20
Rollback to previous version. check-in: 7891a05edd user: gawthrop@users.sourceforge.net tags: origin/master, trunk
02:54:48
Replace default by Default - default is now reserved in gawk check-in: 501413a38b user: gawthrop@users.sourceforge.net tags: origin/master, trunk
00:54:29
Fix probs when Nu = 0 check-in: 7e0a339781 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_update from [444ef9d57a] to [62e70479ff].

9
10
11
12
13
14
15



16
17
18
19
20
21
22
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25







+
+
+







# Copyright (C) 2000 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.23  2005/02/17 18:54:23  geraint
## Fixed a bash-sim: replaced let with $(( ))
##
## Revision 1.22  2003/08/19 13:08:44  gawthrop
## Ingnore if/endif
##
## Revision 1.21  2003/08/14 10:33:46  gawthrop
## Ignore if and endif
##
## Revision 1.20  2003/08/13 15:49:39  gawthrop
212
213
214
215
216
217
218
219

220
221
222

223
224
225
226
227
228
229
230
231
232
233

234
235
236
237
238
239
240
215
216
217
218
219
220
221

222
223
224

225
226
227
228
229
230
231
232
233
234
235

236
237
238
239
240
241
242
243







-
+


-
+










-
+







 gawk '{
   if (FILENAME=="mtt_text") {
     gsub("[\t ]" ,""); # Remove whitespace
     split($0,a,"=");
     text[a[1]] = a[2];
   }
   if (FILENAME=="mtt_info"){
      info[$1] = default;
      info[$1] = Default;
   }
   if (FILENAME=="mtt_moreinfo"){
      moreinfo[$1] = default;
      moreinfo[$1] = Default;
   }
   }
 END{
   # for (iname in info) print iname
   for (tname in text) {
     if (!(tname in moreinfo)) print tname >> "mtt_in_text"
   }
   for (iname in info) {
     if (!(iname in text)) print iname >> "mtt_in_info"
   }
   }'  default=$default mtt_text mtt_info mtt_moreinfo
   }'  Default=$default mtt_text mtt_info mtt_moreinfo

 ## Remove if, end and endif from list
 remove_if mtt_in_text

if [ -z "$update" ]; then
  if [ -f "mtt_in_text" ]; then
    echo "The following variables are defined in $textfile, but do not exist:"


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