-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathinstallLibraries.mos
98 lines (93 loc) · 3.62 KB
/
installLibraries.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
// adrpo: DO NOT REMOVE ANY LIBS FROM HERE BEFORE REMOVING THEM FROM configs/conf*
// usually the newest version will be loaded instead if you remove them!
// SO: first remove them from configs/conf* then remove them from here.
updatePackageIndex();
if not installPackage(Modelica, "3.1.0", exactMatch=true) then
print("Modelica 3.1.0 " + getErrorString() + "\n");
exit(1);
end if;
if not installPackage(Modelica, "4.1.0-beta.om", exactMatch=true) then
print("Modelica 4.1.0-beta.om" + getErrorString() + "\n");
exit(1);
end if;
if not installPackage(ModelicaServices, "4.1.0-beta.om", exactMatch=true) then
print("ModelicaServices 4.1.0-beta.om" + getErrorString() + "\n");
exit(1);
end if;
for v in {"3.2.1","3.2.2","3.2.3","4.0.0","4.1.0-beta.om","trunk"} loop
if not installPackage(ModelicaTest, v, exactMatch=true) then
print("ModelicaTest " + v + " " + getErrorString() + "\n");
exit(1);
end if;
end for;
for v in {"1.6", "3.0.0", "maint.7.0.x", "maint.8.1.x", "maint.9.1.x", "maint.10.0.x", "maint.11.x", "maint.12.x", "master"} loop
if not installPackage(Buildings, v) then
print("Buildings " + v + " " + getErrorString() + "\n");
exit(1);
end if;
end for;
for lib in {"AdvancedNoise", "BioChem", "BuildingSystems", "BuildSysPro", "Chemical", "ConPNlib", "ElectricalEnergyStorage", "ExternData", "ExternalMemoryLib", "FastBuildings", "FCSys", "Greenhouses", "HanserModelica", "HelmholtzMedia", "IBPSA", "IdealizedContact", "IndustrialControlSystems", "KeyWordIO", "LargeTestSuite", "LibRAS", "MEV", "MessagePack", "ModelicaByExample", "ModelicaTestOverdetermined", "Modelica_Synchronous", "Modelica_DeviceDrivers", "Modelica_LinearSystems2", "Modelica_Noise", "ObjectStab", "OpenHydraulics", "OpenIPSL", "PNlib", "Physiolibrary", "PlanarMechanics", "PowerSysPro", "ScalableTestGrids", "ScalableTestSuite", "SolarTherm", "Spot", "SystemDynamics", "TAeZoSysPro", "TAeZoSysPro_testsuite", "ThermalSeparation", "ThermoPower", "ThermoSysPro", "TransiEnt", "VehicleInterfaces"} loop
if not installPackage(stringTypeName(lib), "master") then
print(lib + " " + getErrorString() + "\n");
exit(1);
end if;
end for;
for l in {
{"AES", "main"},
{"AixLib", "main"},
{"Annex60", ""},
{"BidiDCDC", ""},
{"BLDC", ""},
{"BoundaryInitBlocks", "master"},
{"BusinessSimulation", ""},
{"BusinessSimulation", "main"},
{"Credibility", ""},
{"DeltaRobot", ""},
{"DroneLibrary", ""},
{"Dynawo", ""},
{"Dynawo", "master"},
{"EHPTexamples", ""},
{"EHPTexamples", "main"},
{"EHPTlib", ""},
{"EHPTlib", "main"},
{"ExtendedPetriNets", ""},
{"ExternalMedia",""},
{"FluxTubesExtension","main"},
{"IDEAS", ""},
{"IDEAS", "master"},
{"iPSL", ""},
{"MagLev", ""},
{"OpenIMDML", "main"},
{"OpenIPSL", "2.0.0"},
{"OpenIPSL", ""},
{"OpenIPSL", "master"},
{"PhotoVoltaics", ""},
{"PhotoVoltaics_TGM", ""},
{"PowerSystems","master"},
{"PowerSystems",""},
{"PowerGrids",""},
{"PowerGrids","develop"},
{"SiemensPower",""},
{"SiemensPower","OMCtest"},
{"StewartPlatform",""},
{"SOFCPoliMi","master"},
{"Modelica_LinearSystems2", "dev"},
{"Modelica_StateGraph2", ""},
{"Physiomodel", ""},
{"ThermofluidStream", ""},
{"ThermofluidStream", "main"},
{"TILMedia", "main"},
{"ClaRa", ""},
{"ClaRa", "main"}
} loop
if not installPackage(stringTypeName(l[1]), l[2]) then
print(l[1] + " " + l[2] + getErrorString() + "\n");
exit(1);
end if;
end for;
print("Did install:" + getErrorString() + "\n");
if not upgradeInstalledPackages() then
print("Failed upgrade:\n" + getErrorString() + "\n");
exit(1);
end if;
print("Did upgrade:\n" + getErrorString() + "\n");