Overview
Comment:Put switches into the input file.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 6128db788b08355fe256fd4776cd5cacba7fae456d0ab0e120bf9c0e478965b2
User & Date: gawthrop@users.sourceforge.net on 1997-05-15 09:44:12.000
Other Links: branch diff | manifest | tags
Context
1997-05-16
07:33:45
Now checks to see if sub system is a simple component before
recursion.
0 --> zero
1 --> one
check-in: f0fed5ab50 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1997-05-15
09:44:12
Put switches into the input file. check-in: 6128db788b user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:43:46
New version of _input.txt for -s option check-in: 013ae23625 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes
10
11
12
13
14
15
16



17














18
19
20
21
22
23
24
25
26
27


28
29







30
31
32
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
47
48
49
50
51
52
53
54
55
56
57







+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+
+









-
+
+


+
+
+
+
+
+
+



# Copyright (c) P.J.Gawthrop 1997

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
# Revision 1.1  1997/05/03  14:55:17  peterg
# Initial revision
#
###############################################################

#Look for a command line argument
# By default, don't look for BG switches

switches=no
while [ -n "`echo $1 | grep '-'`" ]; do
  case $1 in
	-s )
		switches=yes ;;
	*)
		echo "$1 is an invalid argument - ignoring" ;;
  esac
  shift
done

# Inform user
echo Creating $1_input.txt

#Create the input file complete with headers.
echo "# Numerical parameter file ($1_input.txt)" > $1_input.txt
echo "# Generated by MTT at `date`" >> $1_input.txt
cat $MTTPATH/trans/rcs_header.txt  >> $1_input.txt

#Write out the defaults.
#Write out the defaults -- inputs
  echo "# Set the inputs"  >> $1_input.txt
awk '{i++; if($1=="input") print  "u(" i ") =\t1.0; \# " $3 " (Default value)"}' $1_struc.txt >> $1_input.txt


#Set some switches
if [ "$switches" = "yes" ]; then
  echo  >> $1_input.txt
  echo "# Set the switches"  >> $1_input.txt
  awk '{print  tolower($1) "= (t>=0);"}'< $1_switch.txt   >> $1_input.txt
fi




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