Overview
Comment:*** empty log message ***
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 73f4b5eedb6e0cad4cd268e2971509ceb63ac17577fbdca5b8b59a8571602abc
User & Date: gawthrop@users.sourceforge.net on 1998-07-25 18:26:33
Other Links: branch diff | manifest | tags
Context
1998-07-25
18:27:45
now uses the (extended with switch) sympars.txt file check-in: 7462cd90ac user: gawthrop@users.sourceforge.net tags: origin/master, trunk
18:26:33
*** empty log message *** check-in: 73f4b5eedb user: gawthrop@users.sourceforge.net tags: origin/master, trunk
18:18:23
Added switches check-in: 37d2b01af3 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/numpar_txt2m from [75ecd9e390] to [8a709831a5].

10
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
10
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
46







+
+
+









-
-
+
+



-
+




-
-
-
+
+
+
+




# Copyright (c) P.J.Gawthrop 1996

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
# Revision 1.2  1997/05/01  08:24:38  peterg
# Now uses # as the comment symbol in the .txt file
#
# Revision 1.1  1997/05/01  07:45:17  peterg
# Initial revision
#
###############################################################

# Inform user
echo Creating $1_numpar.m

#Create the numpar file complete with headers.
echo "%% Numerical parameter file ($1_numpar.m)" > $1_numpar.m
echo "%% Generated by MTT at `date`" >> $1_numpar.m
echo "## Numerical parameter file ($1_numpar.m)" > $1_numpar.m
echo "## Generated by MTT at `date`" >> $1_numpar.m

# Global variable list
echo  >>  $1_numpar.m
echo "% Global variable list" >>  $1_numpar.m
echo "# Global variable list" >>  $1_numpar.m
sympar2global_txt2m $1 >> $1_numpar.m

#Write out the variables in m format.
awk -F#  '{
  if (NF<2) print $1
  if (NF>1)  print $1 "% " $2
}' $1_numpar.txt  >> $1_numpar.m
  if (NF==1) print $1
  if (NF==2)  print $1 "# " $2
}' $1_numpar.txt |\
sed 's/double/global/' >> $1_numpar.m





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