Overview
Comment:Now strips comment lines first
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 5627a17b7c99d763f416cc0596c5d9ef09b99077acce12d13ab6724cccc3f66d
User & Date: gawthrop@users.sourceforge.net on 1998-07-26 10:44:08
Other Links: branch diff | manifest | tags
Context
1998-07-26
10:48:18
Now strips comments check-in: 48ad75d024 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:44:08
Now strips comment lines first check-in: 5627a17b7c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:30:32
Now uses the header # ... line to trigger initial code. check-in: 54e30bcfda user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/sympar2global_txt2m from [e9d0bd4b0f] to [7c631f718b].

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
# Copyright (c) P.J.Gawthrop, 1997.

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



## Revision 1.2  1998/03/22 11:13:27  peterg
## Back under RCS
##
# Revision 1.1  1997/04/16  11:37:22  peterg
# Initial revision
#
###############################################################


#Write out the variables in matlab global format

awk '
BEGIN{
  var = "foobar";
  print "global ..."
}
{i++; print tolower($1), "..."; var = $1}
END{
  print var ";" # Repeat the last variable to avoid the trailing ...
}' $1_sympars.txt

# Now invoke the standard error handling.
# mtt_error mtt_error.txt









>
>
>










>








|





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
# Copyright (c) P.J.Gawthrop, 1997.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.3  1998/07/25 18:27:45  peterg
## now uses the (extended with switch) sympars.txt file
##
## Revision 1.2  1998/03/22 11:13:27  peterg
## Back under RCS
##
# Revision 1.1  1997/04/16  11:37:22  peterg
# Initial revision
#
###############################################################


#Write out the variables in matlab global format
strip_comments <$1_sympars.txt  |\
awk '
BEGIN{
  var = "foobar";
  print "global ..."
}
{i++; print tolower($1), "..."; var = $1}
END{
  print var ";" # Repeat the last variable to avoid the trailing ...
}' 

# Now invoke the standard error handling.
# mtt_error mtt_error.txt



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