Overview
Comment:Whoops! Put awk back to gawk
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 86f1b8f455968f8f7838aac6e26e0ac3788aab186cbab4bbaefc2a68f9d3861d
User & Date: gawthrop@users.sourceforge.net on 2002-05-01 14:26:03
Other Links: branch diff | manifest | tags
Context
2002-05-01
17:30:56
Improved pre-processor directives to better accommodate future alternatives (matlab)
if necessary.
check-in: f3e2114050 user: geraint@users.sourceforge.net tags: origin/master, trunk
14:26:03
Whoops! Put awk back to gawk check-in: 86f1b8f455 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:10:22
Added -dr foo (reads from dir foo) option check-in: 9f2c845583 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/rep_txt2sh from [3056188b71] to [6825c9a064].

11
12
13
14
15
16
17



18
19
20
21
22
23
24
# Copyright (c) P.J.Gawthrop, 1996.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## Revision 1.6  2002/04/28 18:55:03  geraint
## Fixed [ 549658 ] awk should be gawk.
## Replaced calls to awk with call to gawk.
##
## Revision 1.5  2000/11/27 10:13:25  peterg
## Now passes though options as second argument
##







>
>
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright (c) P.J.Gawthrop, 1996.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.7  2002/05/01 14:07:44  gawthrop
## Added -dr foo (reads files from foo) dir.
##
## Revision 1.6  2002/04/28 18:55:03  geraint
## Fixed [ 549658 ] awk should be gawk.
## Replaced calls to awk with call to gawk.
##
## Revision 1.5  2000/11/27 10:13:25  peterg
## Now passes though options as second argument
##
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
fi


# Execute the commands - quietly and untidily!
# But use switches
# | sed "s/mtt /mtt -q -u $mtt_switches /" #| tee -a JUNK  | sh

strip_comments< $1_rep.txt | awk '
{
  ## Add in the external switches
  sub("mtt", sprintf("mtt %s", mtt_switches));
      
  ## Count the switches (noting that -i -dr -dw and -de have an argument)
  ## and make up a string (switches) containing them
  Switches=0; switches = "";







|







64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
fi


# Execute the commands - quietly and untidily!
# But use switches
# | sed "s/mtt /mtt -q -u $mtt_switches /" #| tee -a JUNK  | sh

strip_comments< $1_rep.txt | gawk '
{
  ## Add in the external switches
  sub("mtt", sprintf("mtt %s", mtt_switches));
      
  ## Count the switches (noting that -i -dr -dw and -de have an argument)
  ## and make up a string (switches) containing them
  Switches=0; switches = "";


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