@@ -54,82 +54,82 @@ REM //
54
54
echo .
55
55
echo == Building local tools ... ==
56
56
57
- call : Build mkmsg sdktools\mkmsg bldtools\mkmsg.exe idw\mkmsg.exe
57
+ call buildlocaltool.cmd mkmsg sdktools\mkmsg bldtools\mkmsg.exe idw\mkmsg.exe
58
58
if errorlevel 1 goto Error
59
59
60
- call : Build nmake sdktools\nmake bldtools\nmake.exe mstools\nmake.exe
60
+ call buildlocaltool.cmd nmake sdktools\nmake bldtools\nmake.exe mstools\nmake.exe
61
61
if errorlevel 1 goto Error
62
62
63
- call : Build build sdktools\build idw\build.exe idw\build.exe
63
+ call buildlocaltool.cmd build sdktools\build idw\build.exe idw\build.exe
64
64
if errorlevel 1 goto Error
65
65
66
- call : Build debuggers#dbg-common sdktools\debuggers\dbg-common
66
+ call buildlocaltool.cmd debuggers#dbg-common sdktools\debuggers\dbg-common
67
67
if errorlevel 1 goto Error
68
68
69
- call : Build debuggers#minidump sdktools\debuggers\minidump
69
+ call buildlocaltool.cmd debuggers#minidump sdktools\debuggers\minidump
70
70
if errorlevel 1 goto Error
71
71
72
- call : Build debuggers#imagehlp#tools sdktools\debuggers\imagehlp\tools
72
+ call buildlocaltool.cmd debuggers#imagehlp#tools sdktools\debuggers\imagehlp\tools
73
73
if errorlevel 1 goto Error
74
74
75
- call : Build debuggers#imagehlp#dbghelp sdktools\debuggers\imagehlp\dbghelp
75
+ call buildlocaltool.cmd debuggers#imagehlp#dbghelp sdktools\debuggers\imagehlp\dbghelp
76
76
if errorlevel 1 goto Error
77
77
78
- call : Build debuggers#imagehlp#imagehlp sdktools\debuggers\imagehlp\imagehlp
78
+ call buildlocaltool.cmd debuggers#imagehlp#imagehlp sdktools\debuggers\imagehlp\imagehlp
79
79
if errorlevel 1 goto Error
80
80
81
- call : Build debuggers#imagehlp#binplace sdktools\debuggers\imagehlp\binplace idw\binplace.exe idw\binplace.exe
81
+ call buildlocaltool.cmd debuggers#imagehlp#binplace sdktools\debuggers\imagehlp\binplace idw\binplace.exe idw\binplace.exe
82
82
if errorlevel 1 goto Error
83
83
84
- call : Build debuggers#symchk#symcommon sdktools\debuggers\symchk\symcommon
84
+ call buildlocaltool.cmd debuggers#symchk#symcommon sdktools\debuggers\symchk\symcommon
85
85
if errorlevel 1 goto Error
86
86
87
- call : Build debuggers#symchk#symchk#dll sdktools\debuggers\symchk\symchk\dll dbg\files\bin\symbolcheck.dll idw\symbolcheck.dll
87
+ call buildlocaltool.cmd debuggers#symchk#symchk#dll sdktools\debuggers\symchk\symchk\dll dbg\files\bin\symbolcheck.dll idw\symbolcheck.dll
88
88
if errorlevel 1 goto Error
89
89
90
- call : Build debuggers#symchk#symchk#exe sdktools\debuggers\symchk\symchk\exe dbg\files\bin\symchk.exe idw\symchk.exe
90
+ call buildlocaltool.cmd debuggers#symchk#symchk#exe sdktools\debuggers\symchk\symchk\exe dbg\files\bin\symchk.exe idw\symchk.exe
91
91
if errorlevel 1 goto Error
92
92
93
- call : Build ztools sdktools\ztools
93
+ call buildlocaltool.cmd ztools sdktools\ztools
94
94
if errorlevel 1 goto Error
95
95
96
- call : Build alias sdktools\alias bldtools\alias.exe idw\alias.exe
96
+ call buildlocaltool.cmd alias sdktools\alias bldtools\alias.exe idw\alias.exe
97
97
if errorlevel 1 goto Error
98
98
99
- call : Build pcopy sdktools\pcopy bldtools\pcopy.exe idw\pcopy.exe
99
+ call buildlocaltool.cmd pcopy sdktools\pcopy bldtools\pcopy.exe idw\pcopy.exe
100
100
if errorlevel 1 goto Error
101
101
102
- call : Build rcdll sdktools\rcdll bldtools\rcdll.dll mstools\rcdll.dll
102
+ call buildlocaltool.cmd rcdll sdktools\rcdll bldtools\rcdll.dll mstools\rcdll.dll
103
103
if errorlevel 1 goto Error
104
104
105
- call : Build rc sdktools\rc bldtools\rc.exe mstools\rc.exe
105
+ call buildlocaltool.cmd rc sdktools\rc bldtools\rc.exe mstools\rc.exe
106
106
if errorlevel 1 goto Error
107
107
108
- call : Build mc sdktools\mc bldtools\mc.exe mstools\mc.exe
108
+ call buildlocaltool.cmd mc sdktools\mc bldtools\mc.exe mstools\mc.exe
109
109
if errorlevel 1 goto Error
110
110
111
- call : Build touch sdktools\touch bldtools\touch.exe idw\touch.exe
111
+ call buildlocaltool.cmd touch sdktools\touch bldtools\touch.exe idw\touch.exe
112
112
if errorlevel 1 goto Error
113
113
114
- call : Build m4 sdktools\m4 bldtools\m4.exe idw\m4.exe
114
+ call buildlocaltool.cmd m4 sdktools\m4 bldtools\m4.exe idw\m4.exe
115
115
if errorlevel 1 goto Error
116
116
117
- call : Build tracewpp sdktools\trace\tracewpp bldtools\tracewpp.exe idw\tracewpp.exe
117
+ call buildlocaltool.cmd tracewpp sdktools\trace\tracewpp bldtools\tracewpp.exe idw\tracewpp.exe
118
118
if errorlevel 1 goto Error
119
119
120
- call : Build hextract sdktools\hextract idw\hextract.exe idw\hextract.exe
120
+ call buildlocaltool.cmd hextract sdktools\hextract idw\hextract.exe idw\hextract.exe
121
121
if errorlevel 1 goto Error
122
122
123
- call : Build hsplit sdktools\hsplit idw\hsplit.exe idw\hsplit.exe
123
+ call buildlocaltool.cmd hsplit sdktools\hsplit idw\hsplit.exe idw\hsplit.exe
124
124
if errorlevel 1 goto Error
125
125
126
- call : Build wcshdr sdktools\wcshdr idw\wcshdr.exe idw\wcshdr.exe
126
+ call buildlocaltool.cmd wcshdr sdktools\wcshdr idw\wcshdr.exe idw\wcshdr.exe
127
127
if errorlevel 1 goto Error
128
128
129
- call : Build reloc sdktools\reloc bldtools\reloc.exe tools16\reloc.exe
129
+ call buildlocaltool.cmd reloc sdktools\reloc bldtools\reloc.exe tools16\reloc.exe
130
130
if errorlevel 1 goto Error
131
131
132
- call : Build nosrvbld sdktools\nosrvbld bldtools\nosrvbld.exe tools16\nosrvbld.exe
132
+ call buildlocaltool.cmd nosrvbld sdktools\nosrvbld bldtools\nosrvbld.exe tools16\nosrvbld.exe
133
133
if errorlevel 1 goto Error
134
134
135
135
REM //
@@ -168,51 +168,3 @@ endlocal
168
168
popd
169
169
170
170
exit /b 0
171
-
172
- REM //
173
- REM // ** Build Function **
174
- REM //
175
- REM // %~1 = Tool name
176
- REM // %~2 = Relative source directory path under %NTROOT%
177
- REM // %~3 = Relative binary path under %NTTREE%
178
- REM // %~4 = Relative binary path under %BETOOLS%
179
- REM //
180
-
181
- :Build
182
- echo .
183
- echo [%~1 ]
184
-
185
- REM //
186
- REM // Verify that the source directory for the specified tool exists.
187
- REM //
188
-
189
- if not exist " %NTROOT% \%~2 " (
190
- echo %~1 does not exist in the local source tree. Skipping %~1 build.
191
- exit /b
192
- )
193
-
194
- cd " %NTROOT% \%~2 "
195
-
196
- REM //
197
- REM // Perform build.
198
- REM //
199
-
200
- build -c
201
- if errorlevel 1 (
202
- echo Build command failed for %~1 .
203
- exit /b 1
204
- )
205
-
206
- REM //
207
- REM // Copy the built tool to the tools directory.
208
- REM //
209
-
210
- if not [%~3 ] equ [] (
211
- copy /y " %NTTREE% \%~3 " " %BETOOLS% \%~4 "
212
- if errorlevel 1 (
213
- echo Failed to copy %~1 to tools directory.
214
- exit /b 2
215
- )
216
- )
217
-
218
- exit /b 0
0 commit comments