-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.bat
212 lines (145 loc) · 12.4 KB
/
build.bat
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
@echo off
set gac=C:\Windows\Microsoft.NET\assembly\GAC_MSIL
set csc=@c:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
set acm=Altiris.Common
set acc=Altiris.AssetContractCommon
set ans=Altiris.NS
set ars=Altiris.Resource
set adb=Altiris.Database
set asi=Altiris.NS.StandardItems
set ats=Altiris.TaskManagement
set atc=Altiris.TaskManagement.Common
set apm=Altiris.PatchManagementCore
set apw=Altiris.PatchManagementCore.Web
set adn=Altiris.DotNetLib
set airm=Altiris.InventoryRuleManagement
set asm=Altiris.SoftwareManagement
set arh=Altiris.NS.Replication.Hierarchy
set no_obs=find /v /i "is obsolete"
set no_pol=find /v /i "need to supply runtime policy"
set no_prv=find /v /i "related to previous warning"
if "%1"=="7.1" goto build-7.1
if "%1"=="7.5" goto build-7.5
if "%1"=="7.6" goto build-7.6
if "%1"=="8.0" goto build-8.0
if "%1"=="8.1" goto build-8.1
if "%1"=="8.5" goto build-8.5
if "%1"=="8.5.3" goto build-8.5-RU3
:build-8.5-RU3
set ver1=v4.0_8.5.5032.0__d516cb311cfb6e4f
set atrscm=%acm%\%ver1%\%acm%
set atrsns=%ans%\%ver1%\%ans%
set atrsrx=%ars%\%ver1%\%ars%
set atrssi=%asi%\%ver1%\%asi%
set atrsrh=%arh%\%ver1%\%arh%
set ver2=v4.0_8.5.5030.0__99b1e4cc0d03f223
set atrstm=%ats%\%ver2%\%ats%
set atrstc=%atc%\%ver2%\%atc%
set atrsdn=%adn%\%ver2%\%adn%
set ver3=v4.0_8.5.5009.0__d516cb311cfb6e4f
set atrspm=%apm%\%ver3%\%apm%
set ver4=v4.0_8.5.3008.0__d516cb311cfb6e4f
set invrm=%airm%\%ver4%\%airm%
set ver5=v4.0_8.5.5008.0__d516cb311cfb6e4f
set softm=%asm%\%ver5%\%asm%
set fullref=/reference:%gac%\%softm%.dll /reference:%gac%\%invrm%.dll /reference:%gac%\%atrscm%.dll /reference:%gac%\%atrsns%.dll /reference:%gac%\%atrsrx%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%atrssi%.dll /reference:%gac%\%atrstm%.dll /reference:%gac%\%atrspm%.dll /reference:%gac%\%atrstc%.dll /reference:%gac%\%atrsdn%.dll /reference:%gac%\%atrsrh%.dll
set id=8.5-RU3
cmd /c %csc% %fullref% /out:ZeroDayPatch-%id%.exe /win32icon:band_aid_Protirus.ico ZeroDayPatch.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs AssemblyInfo.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% %fullref% /out:PatchAutomation-%id%.exe /win32icon:band_aid_Protirus.ico PatchAutomation.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs AssemblyInfo.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% %fullref% /out:PatchExclusion-%id%.exe /win32icon:band_aid_Protirus.ico patchexclusion.cs APIWrapper.cs Constant.cs AssemblyInfo.cs | %no_obs% | %no_pol% | %no_prv%
goto end
:build-8.5
set ver1=v4.0_8.5.3073.0__d516cb311cfb6e4f
set atrscm=%acm%\%ver1%\%acm%
set atrsns=%ans%\%ver1%\%ans%
set atrsrx=%ars%\%ver1%\%ars%
set atrssi=%asi%\%ver1%\%asi%
set ver2=v4.0_8.5.3035.0__99b1e4cc0d03f223
set atrstm=%ats%\%ver2%\%ats%
set atrstc=%atc%\%ver2%\%atc%
set atrsdn=%adn%\%ver2%\%adn%
set ver3=v4.0_8.5.3049.0__d516cb311cfb6e4f
set atrspm=%apm%\%ver3%\%apm%
set ver4=v4.0_8.5.3008.0__d516cb311cfb6e4f
set invrm=%airm%\%ver4%\%airm%
set ver5=v4.0_8.5.3018.0__d516cb311cfb6e4f
set softm=%asm%\%ver5%\%asm%
set fullref=/reference:%gac%\%softm%.dll /reference:%gac%\%invrm%.dll /reference:%gac%\%atrscm%.dll /reference:%gac%\%atrsns%.dll /reference:%gac%\%atrsrx%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%atrssi%.dll /reference:%gac%\%atrstm%.dll /reference:%gac%\%atrspm%.dll /reference:%gac%\%atrstc%.dll /reference:%gac%\%atrsdn%.dll
set id=8.5
cmd /c %csc% %fullref% /out:ZeroDayPatch-%id%.exe /win32icon:band_aid_Protirus.ico ZeroDayPatch.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs AssemblyInfo.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% %fullref% /out:PatchAutomation-%id%.exe /win32icon:band_aid_Protirus.ico PatchAutomation.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs AssemblyInfo.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% %fullref% /out:PatchExclusion-%id%.exe /win32icon:band_aid_Protirus.ico patchexclusion.cs APIWrapper.cs Constant.cs AssemblyInfo.cs | %no_obs% | %no_pol% | %no_prv%
goto end
:build-8.1
set ver1=v4.0_8.1.4528.0__d516cb311cfb6e4f
set atrscm=%acm%\%ver1%\%acm%
set atrsns=%ans%\%ver1%\%ans%
set atrsrx=%ars%\%ver1%\%ars%
set atrssi=%asi%\%ver1%\%asi%
set ver2=v4.0_8.1.4511.0__99b1e4cc0d03f223
set atrstm=%ats%\%ver2%\%ats%
set atrstc=%atc%\%ver2%\%atc%
set atrsdn=%adn%\%ver2%\%adn%
set ver3=v4.0_8.1.4538.0__d516cb311cfb6e4f
set atrspm=%apm%\%ver3%\%apm%
set ver4=v4.0_8.1.4502.0__d516cb311cfb6e4f
set invrm=%airm%\%ver4%\%airm%
set ver5=v4.0_8.1.4508.0__d516cb311cfb6e4f
set softm=%asm%\%ver5%\%asm%
set fullref=/reference:%gac%\%softm%.dll /reference:%gac%\%invrm%.dll /reference:%gac%\%atrscm%.dll /reference:%gac%\%atrsns%.dll /reference:%gac%\%atrsrx%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%atrssi%.dll /reference:%gac%\%atrstm%.dll /reference:%gac%\%atrspm%.dll /reference:%gac%\%atrstc%.dll /reference:%gac%\%atrsdn%.dll
set id=8.1
cmd /c %csc% %fullref% /out:ZeroDayPatch-%id%.exe ZeroDayPatch.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% %fullref% /out:PatchAutomation-%id%.exe PatchAutomation.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% %fullref% /out:PatchExclusion-%id%.exe patchexclusion.cs APIWrapper.cs Constant.cs | %no_obs% | %no_pol% | %no_prv%
goto end
:build-8.0
set ver1=v4.0_8.0.2240.0__d516cb311cfb6e4f
set ver2=v4.0_8.0.2221.0__99b1e4cc0d03f223
set ver3=v4.0_8.0.2217.0__d516cb311cfb6e4f
set ver4=v4.0_8.0.2202.0__d516cb311cfb6e4f
set ver5=v4.0_8.0.2215.0__d516cb311cfb6e4f
set invrm=%airm%\%ver4%\%airm%
set softm=%asm%\%ver5%\%asm%
set atrscm=%acm%\%ver1%\%acm%
set atrsns=%ans%\%ver1%\%ans%
set atrsrx=%ars%\%ver1%\%ars%
set atrstm=%ats%\%ver2%\%ats%
set atrstc=%atc%\%ver2%\%atc%
set atrsdn=%adn%\%ver2%\%adn%
set atrspm=%apm%\%ver3%\%apm%
set fullref=/reference:%gac%\%softm%.dll /reference:%gac%\%invrm%.dll /reference:%gac%\%atrscm%.dll /reference:%gac%\%atrsns%.dll /reference:%gac%\%atrsrx%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%asi%\%ver1%\%asi%.dll /reference:%gac%\%atrstm%.dll /reference:%gac%\%atrspm%.dll /reference:%gac%\%atrstc%.dll /reference:%gac%\%atrsdn%.dll
set id=8.0
cmd /c %csc% %fullref% /out:ZeroDayPatch-%id%.exe ZeroDayPatch.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% %fullref% /out:PatchAutomation-%id%.exe PatchAutomation.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% %fullref% /out:PatchExclusion-%id%.exe patchexclusion.cs APIWrapper.cs Constant.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% %fullref% /out:EnableBulletinByName-%id%.exe EnableBulletinByName.cs APIWrapper.cs
cmd /c %csc% %fullref% /out:GetDisabledBulletins-%id%.exe GetDisabledBulletins.cs
goto end
:build-7.6
set ver1=v4.0_7.6.1383.0__d516cb311cfb6e4f
set ver2=v4.0_7.6.1395.0__d516cb311cfb6e4f
set ver3=v4.0_7.6.1383.0__99b1e4cc0d03f223
cmd /c %csc% /reference:%gac%\%asm%\%ver1%\%asm%.dll /reference:%gac%\%airm%\%ver1%\%airm%.dll /reference:%gac%\%acm%\%ver1%\%acm%.dll /reference:%gac%\%acc%\%ver2%\%acc%.dll /reference:%gac%\%ans%\%ver1%\%ans%.dll /reference:%gac%\%ars%\%ver1%\%ars%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%asi%\%ver1%\%asi%.dll /reference:%gac%\%ats%\%ver3%\%ats%.dll /reference:%gac%\%apm%\%ver2%\%apm%.dll /reference:%gac%\%atc%\%ver3%\%atc%.dll /reference:%gac%\%adn%\%ver3%\%adn%.dll /out:ZeroDayPatch-7.6.exe ZeroDayPatch.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% /reference:%gac%\%asm%\%ver1%\%asm%.dll /reference:%gac%\%airm%\%ver1%\%airm%.dll /reference:%gac%\%acm%\%ver1%\%acm%.dll /reference:%gac%\%acc%\%ver2%\%acc%.dll /reference:%gac%\%ans%\%ver1%\%ans%.dll /reference:%gac%\%ars%\%ver1%\%ars%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%asi%\%ver1%\%asi%.dll /reference:%gac%\%ats%\%ver3%\%ats%.dll /reference:%gac%\%apm%\%ver2%\%apm%.dll /reference:%gac%\%atc%\%ver3%\%atc%.dll /reference:%gac%\%adn%\%ver3%\%adn%.dll /out:PatchAutomation-7.6.exe PatchAutomation.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% /reference:%gac%\%asm%\%ver1%\%asm%.dll /reference:%gac%\%airm%\%ver1%\%airm%.dll /reference:%gac%\%acm%\%ver1%\%acm%.dll /reference:%gac%\%acc%\%ver2%\%acc%.dll /reference:%gac%\%ans%\%ver1%\%ans%.dll /reference:%gac%\%ars%\%ver1%\%ars%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%asi%\%ver1%\%asi%.dll /reference:%gac%\%ats%\%ver3%\%ats%.dll /reference:%gac%\%apm%\%ver2%\%apm%.dll /reference:%gac%\%atc%\%ver3%\%atc%.dll /reference:%gac%\%adn%\%ver3%\%adn%.dll /out:PatchExclusion-7.6.exe patchexclusion.cs APIWrapper.cs Constant.cs | %no_obs% | %no_pol% | %no_prv%
goto end
:build-7.5
set ver1=7.5.3153.0__d516cb311cfb6e4f
set ver2=7.5.3219.0__d516cb311cfb6e4f
set ver3=7.5.3153.0__99b1e4cc0d03f223
set gac=C:\Windows\Assembly\GAC_MSIL
cmd /c %csc% /reference:%gac%\%asm%\%ver1%\%asm%.dll /reference:%gac%\%airm%\%ver1%\%airm%.dll /reference:%gac%\%acm%\%ver1%\%acm%.dll /reference:%gac%\%acc%\%ver2%\%acc%.dll /reference:%gac%\%ans%\%ver1%\%ans%.dll /reference:%gac%\%ars%\%ver1%\%ars%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%asi%\%ver1%\%asi%.dll /reference:%gac%\%ats%\%ver3%\%ats%.dll /reference:%gac%\%apm%\%ver2%\%apm%.dll /reference:%gac%\%atc%\%ver3%\%atc%.dll /reference:%gac%\%adn%\%ver3%\%adn%.dll /out:ZeroDayPatch-7.5.exe ZeroDayPatch.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% /reference:%gac%\%asm%\%ver1%\%asm%.dll /reference:%gac%\%airm%\%ver1%\%airm%.dll /reference:%gac%\%acm%\%ver1%\%acm%.dll /reference:%gac%\%acc%\%ver2%\%acc%.dll /reference:%gac%\%ans%\%ver1%\%ans%.dll /reference:%gac%\%ars%\%ver1%\%ars%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%asi%\%ver1%\%asi%.dll /reference:%gac%\%ats%\%ver3%\%ats%.dll /reference:%gac%\%apm%\%ver2%\%apm%.dll /reference:%gac%\%atc%\%ver3%\%atc%.dll /reference:%gac%\%adn%\%ver3%\%adn%.dll /out:PatchAutomation-7.5.exe PatchAutomation.cs Constant.cs APIWrapper.cs CLIConfig.cs CLIInit.cs | %no_obs% | %no_pol% | %no_prv%
cmd /c %csc% /reference:%gac%\%asm%\%ver1%\%asm%.dll /reference:%gac%\%airm%\%ver1%\%airm%.dll /reference:%gac%\%acm%\%ver1%\%acm%.dll /reference:%gac%\%acc%\%ver2%\%acc%.dll /reference:%gac%\%ans%\%ver1%\%ans%.dll /reference:%gac%\%ars%\%ver1%\%ars%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%asi%\%ver1%\%asi%.dll /reference:%gac%\%ats%\%ver3%\%ats%.dll /reference:%gac%\%apm%\%ver2%\%apm%.dll /reference:%gac%\%atc%\%ver3%\%atc%.dll /reference:%gac%\%adn%\%ver3%\%adn%.dll /out:PatchExclusion-7.5.exe patchexclusion.cs APIWrapper.cs Constant.cs | %no_obs% | %no_pol% | %no_prv%
goto end
:build-7.1
set ver1=7.1.8400.0__d516cb311cfb6e4f
set ver2=7.1.7858.0__d516cb311cfb6e4f
set ver3=7.1.8400.0__99b1e4cc0d03f223
set gac=C:\Windows\Assembly\GAC_MSIL
set csc=@c:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe
cmd /c %csc% /reference:%gac%\%asm%\%ver1%\%asm%.dll /reference:%gac%\%airm%\%ver1%\%airm%.dll /reference:%gac%\%acm%\%ver1%\%acm%.dll /reference:%gac%\%ans%\%ver1%\%ans%.dll /reference:%gac%\%ars%\%ver1%\%ars%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%asi%\%ver1%\%asi%.dll /reference:%gac%\%ats%\%ver3%\%ats%.dll /reference:%gac%\%apm%\%ver2%\%apm%.dll /reference:%gac%\%atc%\%ver3%\%atc%.dll /reference:%gac%\%adn%\%ver3%\%adn%.dll /out:ZeroDayPatch-7.1.exe ZeroDayPatch.cs Constant.cs APIWrapper-7.1.cs CLIConfig.cs CLIInit.cs
cmd /c %csc% /reference:%gac%\%asm%\%ver1%\%asm%.dll /reference:%gac%\%airm%\%ver1%\%airm%.dll /reference:%gac%\%acm%\%ver1%\%acm%.dll /reference:%gac%\%ans%\%ver1%\%ans%.dll /reference:%gac%\%ars%\%ver1%\%ars%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%asi%\%ver1%\%asi%.dll /reference:%gac%\%ats%\%ver3%\%ats%.dll /reference:%gac%\%apm%\%ver2%\%apm%.dll /reference:%gac%\%atc%\%ver3%\%atc%.dll /reference:%gac%\%adn%\%ver3%\%adn%.dll /out:PatchAutomation-7.1.exe PatchAutomation.cs Constant.cs APIWrapper-7.1.cs CLIConfig.cs CLIInit.cs
cmd /c %csc% /reference:%gac%\%asm%\%ver1%\%asm%.dll /reference:%gac%\%airm%\%ver1%\%airm%.dll /reference:%gac%\%acm%\%ver1%\%acm%.dll /reference:%gac%\%ans%\%ver1%\%ans%.dll /reference:%gac%\%ars%\%ver1%\%ars%.dll /reference:%gac%\%adb%\%ver1%\%adb%.dll /reference:%gac%\%asi%\%ver1%\%asi%.dll /reference:%gac%\%ats%\%ver3%\%ats%.dll /reference:%gac%\%apm%\%ver2%\%apm%.dll /reference:%gac%\%atc%\%ver3%\%atc%.dll /reference:%gac%\%adn%\%ver3%\%adn%.dll /out:PatchExclusion-7.1.exe patchexclusion.cs APIWrapper-7.1.cs Constant.cs
goto end
:end