SQLITE_NOTICE(283): recovered 5 frames from WAL file /data/mtt.fossil-wal
Differences From Artifact [ff6925e683]:
- Executable file mttroot/mtt/bin/trans/ese_txt2make.pl — part of check-in [c0a0abfada] at 2004-09-07 20:36:32 on branch origin/master — Renamed ese_r2make.pl -> ese_txt2make.pl (user: geraint@users.sourceforge.net, size: 5963) [annotate] [blame] [check-ins using] [more...]
To Artifact [5c51d89569]:
- Executable file mtt/bin/trans/ese_txt2make.pl — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 6171) [annotate] [blame] [check-ins using] [more...]
- Executable file mttroot/mtt/bin/trans/ese_txt2make.pl — part of check-in [543de8091c] at 2009-11-02 16:51:54 on branch origin/master — Recognises MTTz, but mttdz is yet to be handled in output equations (user: geraint@users.sourceforge.net, size: 6171) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
sub write_make {
# create lists of rates, states and tmpvars so that
# separate rules can be created in the makefile
my @list_of_rates;
my @list_of_outputs;
my @list_of_unknown;
my @list_of_tmpvars;
for my $lvar (sort (keys %expressions)) {
if ($lvar =~ /^MTTdX\(/) {
@list_of_rates = (@list_of_rates, $lvar) ;
} elsif ($lvar =~ /^MTTy\(/) {
@list_of_outputs = (@list_of_outputs, $lvar);
} elsif ($lvar =~ /^MTTyz/) {
@list_of_unknown = (@list_of_unknown, $lvar);
} elsif ($lvar =~ /^${sys}_/) {
@list_of_tmpvars = (@list_of_tmpvars, $lvar);
} else {
die "MTT Error:\nese_txt2make, unclassified variable: $lvar\n";
}
}
| > > > | | | > | | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
sub write_make {
# create lists of rates, states and tmpvars so that
# separate rules can be created in the makefile
my @list_of_rates;
my @list_of_outputs;
my @list_of_unknown;
my @list_of_nonstates;
my @list_of_tmpvars;
for my $lvar (sort (keys %expressions)) {
if ($lvar =~ /^MTTdX\(/) {
@list_of_rates = (@list_of_rates, $lvar) ;
} elsif ($lvar =~ /^MTTy\(/) {
@list_of_outputs = (@list_of_outputs, $lvar);
} elsif ($lvar =~ /^MTTyz/) {
@list_of_unknown = (@list_of_unknown, $lvar);
} elsif ($lvar =~ /^MTTz/) {
@list_of_nonstates = (@list_of_nonstates, $lvar);
} elsif ($lvar =~ /^${sys}_/) {
@list_of_tmpvars = (@list_of_tmpvars, $lvar);
} else {
die "MTT Error:\nese_txt2make, unclassified variable: $lvar\n";
}
}
my @sorted_rates = sort (@list_of_rates);
my @sorted_outputs = sort (@list_of_outputs);
my @sorted_unknown = sort (@list_of_unknown);
my @sorted_nonstates = sort (@list_of_nonstates);
my @sorted_tmpvars = sort (@list_of_tmpvars);
# write the header
open (ESE, ">$outfile") or
die ("MTT Error:\nese_txt2make, cannot open $outfile\n");
my $date = localtime;
|
| ︙ | ︙ | |||
156 157 158 159 160 161 162 |
"# Created by MTT: $date\n\n";
# write the rules that external programs use
print ESE
"all: declare_tmpvars MTTdX MTTy\n\n" .
"MTTdX: @sorted_rates\n\n" .
"MTTy: @sorted_outputs\n\n" .
| | > | 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
"# Created by MTT: $date\n\n";
# write the rules that external programs use
print ESE
"all: declare_tmpvars MTTdX MTTy\n\n" .
"MTTdX: @sorted_rates\n\n" .
"MTTy: @sorted_outputs\n\n" .
"MTTyz: @sorted_unknown\n\n" .
"MTTz: @sorted_nonstates\n\n";
# set the default output format:
# double tmpvar;
# lvalue := expression;
print ESE
"# default output format\n" .
"ifeq (\"\$(assignment)\",\"\")\n" .
|
| ︙ | ︙ |