-
Notifications
You must be signed in to change notification settings - Fork 298
/
index.mos
159 lines (158 loc) · 4.31 KB
/
index.mos
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
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
150
151
152
153
154
155
156
157
158
159
setEnvironmentVar("HOME", OpenModelica.Scripting.cd());
setEnvironmentVar("APPDATA", OpenModelica.Scripting.cd());
getEnvironmentVar("HOME");
getErrorString();
setModelicaPath(OpenModelica.Scripting.cd() + "/.openmodelica/libraries/");
getModelicaPath();
echo(false);
OpenModelica.Scripting.mkdir(".openmodelica");
if not OpenModelica.Scripting.mkdir(".openmodelica/libraries/") then
print("
mkdir failed
");
print(getErrorString());
exit(1);
end if;
if 0 <> system("cp index.json .openmodelica/libraries/") then
print("Failed to cp index.json");
exit(1);
end if;
if not installPackage(BioChem, "1.0.1+msl.3.2.1", exactMatch=true) then
print("BioChem 1.0.1+msl.3.2.1 failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(Complex, "3.2.3+maint.om", exactMatch=true) then
print("Complex 3.2.3+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(Complex, "3.2.2+maint.om", exactMatch=true) then
print("Complex 3.2.2+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(Complex, "3.2.1+maint.om", exactMatch=true) then
print("Complex 3.2.1+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(Modelica, "3.2.1+maint.om", exactMatch=true) then
print("Modelica 3.2.1+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(Modelica, "3.1.0+maint.om", exactMatch=true) then
print("Modelica 3.1.0+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(Modelica, "3.2.3+maint.om", exactMatch=true) then
print("Modelica 3.2.3+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(Modelica, "3.2.2+maint.om", exactMatch=true) then
print("Modelica 3.2.2+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(Modelica, "2.2.2+maint.om", exactMatch=true) then
print("Modelica 2.2.2+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(ModelicaServices, "3.2.3+maint.om", exactMatch=true) then
print("ModelicaServices 3.2.3+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(ModelicaServices, "3.2.1+maint.om", exactMatch=true) then
print("ModelicaServices 3.2.1+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(ModelicaServices, "3.2.2+maint.om", exactMatch=true) then
print("ModelicaServices 3.2.2+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(ModelicaServices, "1.0.0", exactMatch=true) then
print("ModelicaServices 1.0.0 failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(ModelicaTest, "3.2.3+maint.om", exactMatch=true) then
print("ModelicaTest 3.2.3+maint.om failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(ModelicaCompliance, "3.2.0-master", exactMatch=true) then
print("ModelicaCompliance 3.2.0-master failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(Modelica_DeviceDrivers, "1.8.2", exactMatch=true) then
print("Modelica_DeviceDrivers 1.8.2 failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(Modelica_Synchronous, "0.92.2", exactMatch=true) then
print("Modelica_Synchronous 0.92.2 failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(SiemensPower, "0.0.0-OMCtest", exactMatch=true) then
print("SiemensPower 0.0.0-OMCtest failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(SiemensPower, "2.1.0-beta", exactMatch=true) then
print("SiemensPower 2.1.0-beta failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(SiemensPower, "2.2.0", exactMatch=true) then
print("SiemensPower 2.2.0 failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(ThermoPower, "3.1.0-master", exactMatch=true) then
print("ThermoPower 3.1.0-master failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(ThermoSysPro, "3.2.0", exactMatch=true) then
print("ThermoSysPro 3.2.0 failed
");
print(getErrorString());
exit(1);
end if;
if not installPackage(WasteWater, "2.1.0", exactMatch=true) then
print("WasteWater 2.1.0 failed
");
print(getErrorString());
exit(1);
end if;
system("touch .openmodelica/libraries/20200610130629.stamp")