-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile-tram.perl
43 lines (36 loc) · 1.3 KB
/
compile-tram.perl
1
2
3
4
5
6
7
8
9
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
$STAT = "stat.tmp";
system "rm -f $STAT";
system "rm -f output/Tram*";
$OPTS = "-s -eval -nocf -optimize=none_subs -path=Tram:Common:prelude:present";
$GF = "gf -s +RTS -M3000M -K100M -RTS";
foreach $lng (qw/Ita/) { #Sem Eng Swe Ger Ita Fre Spa Fin/) {
foreach $mod (qw/User System SystemMM/) {
system "rm -f Tram/*.gfc Tram/*.gfr Common/*.gfc Common/*.gfr";
$gram = "Tram$mod$lng";
print "-- $gram\n";
system "echo '-------------------------' >> $STAT";
system "echo '-- $gram.gfcm/cfgm' >> $STAT";
system "echo '' >> $STAT";
open GF, "| $GF >> $STAT";
print GF "i $OPTS Tram/$gram.gf \n";
print GF "s \n";
print GF "pm -printer=header | wf output/$gram.gfcm \n";
print GF "pm -printer=cfgm | wf output/Tram$mod$lng.cfgm \n";
close GF;
system "echo '' >> $STAT";
}
foreach $mod (qw/User/) {
system "rm -f Tram/*.gfc Tram/*.gfr Common/*.gfc Common/*.gfr";
$gram = "Tram$mod$lng";
print "-- $gram\n";
system "echo '-------------------------' >> $STAT";
system "echo '-- $gram.gsl' >> $STAT";
system "echo '' >> $STAT";
open GF, "| $GF >> $STAT";
print GF "i $OPTS -preproc=./mkUnimodal Tram/$gram.gf \n";
print GF "s \n";
print GF "pg -printer=gsl | wf output/$gram.gsl \n";
close GF;
system "echo '' >> $STAT";
}
}