1 | @echo off
|
---|
2 | rem $Id: Combined-3-RepackAdditions.cmd 83010 2020-02-06 17:25:49Z vboxsync $
|
---|
3 | rem rem @file
|
---|
4 | rem Windows NT batch script for repacking signed amd64 and x86 drivers.
|
---|
5 | rem
|
---|
6 |
|
---|
7 | rem
|
---|
8 | rem Copyright (C) 2018-2020 Oracle Corporation
|
---|
9 | rem
|
---|
10 | rem This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | rem available from http://www.virtualbox.org. This file is free software;
|
---|
12 | rem you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | rem General Public License (GPL) as published by the Free Software
|
---|
14 | rem Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | rem VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | rem hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | rem
|
---|
18 |
|
---|
19 |
|
---|
20 | setlocal ENABLEEXTENSIONS
|
---|
21 | setlocal
|
---|
22 |
|
---|
23 | rem
|
---|
24 | rem Globals and checks for required enviornment variables.
|
---|
25 | rem
|
---|
26 | if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & goto end_failed)
|
---|
27 | if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & goto end_failed)
|
---|
28 | set _MY_SCRIPT_DIR=%~dp0
|
---|
29 | set _MY_SAVED_CD=%CD%
|
---|
30 | set _MY_VER_REV=@VBOX_VERSION_STRING@r@VBOX_SVN_REV@
|
---|
31 |
|
---|
32 | rem
|
---|
33 | rem Parse arguments.
|
---|
34 | rem
|
---|
35 | set _MY_OPT_UNTAR_DIR=%_MY_SCRIPT_DIR%\..\..\..\
|
---|
36 | for %%i in (%_MY_OPT_UNTAR_DIR%) do set _MY_OPT_UNTAR_DIR=%%~fi
|
---|
37 | set _MY_OPT_BUILD_TYPE=@KBUILD_TYPE@
|
---|
38 | set _MY_OPT_OUTDIR=%_MY_OPT_UNTAR_DIR%\output
|
---|
39 | set _MY_OPT_SRC_DIR=%_MY_SCRIPT_DIR%\resources\
|
---|
40 |
|
---|
41 | :argument_loop
|
---|
42 | if ".%1" == "." goto no_more_arguments
|
---|
43 |
|
---|
44 | if ".%1" == ".-h" goto opt_h
|
---|
45 | if ".%1" == ".-?" goto opt_h
|
---|
46 | if ".%1" == "./h" goto opt_h
|
---|
47 | if ".%1" == "./H" goto opt_h
|
---|
48 | if ".%1" == "./?" goto opt_h
|
---|
49 | if ".%1" == ".-help" goto opt_h
|
---|
50 | if ".%1" == ".--help" goto opt_h
|
---|
51 |
|
---|
52 | if ".%1" == ".-o" goto opt_o
|
---|
53 | if ".%1" == ".--outdir" goto opt_o
|
---|
54 | if ".%1" == ".-s" goto opt_s
|
---|
55 | if ".%1" == ".--source" goto opt_s
|
---|
56 | if ".%1" == ".--signed-amd64" goto opt_signed_amd64
|
---|
57 | if ".%1" == ".--signed-x86" goto opt_signed_x86
|
---|
58 | if ".%1" == ".-t" goto opt_t
|
---|
59 | if ".%1" == ".--build-type" goto opt_t
|
---|
60 | if ".%1" == ".-u" goto opt_u
|
---|
61 | if ".%1" == ".--vboxall-untar-dir" goto opt_u
|
---|
62 | echo syntax error: Unknown option: %1
|
---|
63 | echo Try --help to list valid options.
|
---|
64 | goto end_failed
|
---|
65 |
|
---|
66 | :argument_loop_next_with_value
|
---|
67 | shift
|
---|
68 | shift
|
---|
69 | goto argument_loop
|
---|
70 |
|
---|
71 | :opt_h
|
---|
72 | echo Toplevel combined package: Repack the guest additions.
|
---|
73 | echo .
|
---|
74 | echo Usage: Combined-3-RepackAdditions.cmd [-o output-dir]
|
---|
75 | echo [-u/--vboxall-dir unpacked-vboxall-dir] [-t build-type]
|
---|
76 | echo [--signed-amd64 signed-amd64.zip]
|
---|
77 | echo [--signed-x86 signed-x86.zip]
|
---|
78 | echo
|
---|
79 | echo .
|
---|
80 | echo Default -u/--vboxall-untar-dir value: %_MY_OPT_UNTAR_DIR%
|
---|
81 | echo Default -o/--outdir value: %_MY_OPT_OUTDIR%
|
---|
82 | echo Default -t/--build-type value: %_MY_OPT_BUILD_TYPE%
|
---|
83 | echo .
|
---|
84 | goto end_failed
|
---|
85 |
|
---|
86 | :opt_o
|
---|
87 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
88 | set _MY_OPT_OUTDIR=%~f2
|
---|
89 | goto argument_loop_next_with_value
|
---|
90 |
|
---|
91 | :opt_s
|
---|
92 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
93 | set _MY_OPT_SRC_DIR=%~f2
|
---|
94 | goto argument_loop_next_with_value
|
---|
95 |
|
---|
96 | :opt_signed_amd64
|
---|
97 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
98 | set _MY_OPT_SIGNED_AMD64=%~f2
|
---|
99 | goto argument_loop_next_with_value
|
---|
100 |
|
---|
101 | :opt_signed_x86
|
---|
102 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
103 | set _MY_OPT_SIGNED_X86=%~f2
|
---|
104 | goto argument_loop_next_with_value
|
---|
105 |
|
---|
106 | :opt_t
|
---|
107 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
108 | set _MY_OPT_BUILD_TYPE=%~2
|
---|
109 | goto argument_loop_next_with_value
|
---|
110 |
|
---|
111 | :opt_u
|
---|
112 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
113 | set _MY_OPT_UNTAR_DIR=%~f2
|
---|
114 | goto argument_loop_next_with_value
|
---|
115 |
|
---|
116 | :syntax_error_missing_value
|
---|
117 | echo syntax error: missing or empty option value after %1
|
---|
118 | goto end_failed
|
---|
119 |
|
---|
120 | :error_vboxall_untar_dir_not_found
|
---|
121 | echo syntax error: The VBoxAll untar directory was not found: "%_MY_OPT_UNTAR_DIR%"
|
---|
122 | goto end_failed
|
---|
123 |
|
---|
124 | :error_amd64_bindir_not_found
|
---|
125 | echo syntax error: The AMD64 bin directory was not found: "%_MY_BINDIR_AMD64%"
|
---|
126 | goto end_failed
|
---|
127 |
|
---|
128 | :error_x86_bindir_not_found
|
---|
129 | echo syntax error: The X86 bin directory was not found: "%_MY_BINDIR_X86%"
|
---|
130 | goto end_failed
|
---|
131 |
|
---|
132 | :error_amd64_repack_dir_not_found
|
---|
133 | echo syntax error: The AMD64 repack directory was not found: "%_MY_REPACK_DIR_AMD64%"
|
---|
134 | goto end_failed
|
---|
135 |
|
---|
136 | :error_x86_repack_dir_not_found
|
---|
137 | echo syntax error: The X86 repack directory was not found: "%_MY_REPACK_DIR_X86%"
|
---|
138 | goto end_failed
|
---|
139 |
|
---|
140 | :error_extpack_not_found
|
---|
141 | echo syntax error: Specified extension pack not found: "%_MY_OPT_EXTPACK%"
|
---|
142 | goto end_failed
|
---|
143 |
|
---|
144 | :error_enterprise_extpack_not_found
|
---|
145 | echo syntax error: Specified enterprise extension pack not found: "%_MY_OPT_EXTPACK_ENTERPRISE%"
|
---|
146 | goto end_failed
|
---|
147 |
|
---|
148 | :error_signed_amd64_not_found
|
---|
149 | echo syntax error: Zip with signed AMD64 drivers not found: "%_MY_OPT_SIGNED_AMD64%"
|
---|
150 | goto end_failed
|
---|
151 |
|
---|
152 | :error_signed_x86_not_found
|
---|
153 | echo syntax error: Zip with signed X86 drivers not found: "%_MY_OPT_SIGNED_X86%"
|
---|
154 | goto end_failed
|
---|
155 |
|
---|
156 | :error_src_dir_not_found
|
---|
157 | echo syntax error: src directory not found: "%_MY_OPT_SRC_DIR%"
|
---|
158 | goto end_failed
|
---|
159 |
|
---|
160 |
|
---|
161 | :no_more_arguments
|
---|
162 | rem
|
---|
163 | rem Validate and adjust specified options.
|
---|
164 | rem
|
---|
165 |
|
---|
166 | if not exist "%_MY_OPT_UNTAR_DIR%" goto error_vboxall_untar_dir_not_found
|
---|
167 |
|
---|
168 | set _MY_BINDIR_AMD64=%_MY_OPT_UNTAR_DIR%\win.amd64\%_MY_OPT_BUILD_TYPE%\bin\additions
|
---|
169 | set _MY_BINDIR_X86=%_MY_OPT_UNTAR_DIR%\win.x86\%_MY_OPT_BUILD_TYPE%\bin\additions
|
---|
170 | if not exist "%_MY_BINDIR_AMD64%" goto error_amd64_bindir_not_found
|
---|
171 | if not exist "%_MY_BINDIR_X86%" goto error_x86_bindir_not_found
|
---|
172 |
|
---|
173 | set _MY_REPACK_DIR_AMD64=%_MY_OPT_UNTAR_DIR%\win.amd64\%_MY_OPT_BUILD_TYPE%\repackadd
|
---|
174 | set _MY_REPACK_DIR_X86=%_MY_OPT_UNTAR_DIR%\win.x86\%_MY_OPT_BUILD_TYPE%\repackadd
|
---|
175 | if not exist "%_MY_REPACK_DIR_AMD64%" goto error_amd64_repack_dir_not_found
|
---|
176 | if not exist "%_MY_REPACK_DIR_X86%" goto error_x86_repack_dir_not_found
|
---|
177 |
|
---|
178 | if not ".%_MY_OPT_SIGNED_AMD64%" == "." goto skip_set_default_amd64_signed
|
---|
179 | set _MY_OPT_SIGNED_AMD64="%_MY_OPT_OUTDIR%/VBoxDrivers-@VBOX_VERSION_STRING@r@[email protected]"
|
---|
180 | :skip_set_default_amd64_signed
|
---|
181 |
|
---|
182 | if not ".%_MY_OPT_SIGNED_X86%" == "." goto skip_set_default_x86_signed
|
---|
183 | set _MY_OPT_SIGNED_X86="%_MY_OPT_OUTDIR%/VBoxDrivers-@VBOX_VERSION_STRING@r@[email protected]"
|
---|
184 | :skip_set_default_x86_signed
|
---|
185 |
|
---|
186 | if not exist "%_MY_OPT_SIGNED_AMD64%" goto error_signed_amd64_not_found
|
---|
187 | if not exist "%_MY_OPT_SIGNED_X86%" goto error_signed_x86_not_found
|
---|
188 |
|
---|
189 | rem Make sure the output dir exists.
|
---|
190 | if not exist "%_MY_OPT_OUTDIR%" (mkdir "%_MY_OPT_OUTDIR%" || goto end_failed)
|
---|
191 |
|
---|
192 | if not exist "%_MY_OPT_SRC_DIR%" goto error_src_dir_not_found
|
---|
193 |
|
---|
194 | rem
|
---|
195 | rem Unpacking the two driver zips.
|
---|
196 | rem
|
---|
197 | echo **************************************************************************
|
---|
198 | echo * AMD64: Unpacking signed drivers...
|
---|
199 | echo **************************************************************************
|
---|
200 | cd /d "%_MY_REPACK_DIR_AMD64%" || goto end_failed
|
---|
201 | call "%_MY_REPACK_DIR_AMD64%\UnpackBlessedDrivers.cmd" -b "%_MY_BINDIR_AMD64%" -i "%_MY_OPT_SIGNED_AMD64%" -n -v || goto end_failed
|
---|
202 | echo .
|
---|
203 |
|
---|
204 | echo **************************************************************************
|
---|
205 | echo * X86: Unpacking signed drivers...
|
---|
206 | echo **************************************************************************
|
---|
207 | cd /d "%_MY_REPACK_DIR_X86%" || goto end_failed
|
---|
208 | call "%_MY_REPACK_DIR_X86%\UnpackBlessedDrivers.cmd" -b "%_MY_BINDIR_X86%" -i "%_MY_OPT_SIGNED_X86%" -n -v || goto end_failed
|
---|
209 | echo .
|
---|
210 |
|
---|
211 |
|
---|
212 | rem
|
---|
213 | rem Building amd64 installer
|
---|
214 | rem
|
---|
215 | echo **************************************************************************
|
---|
216 | echo * Building amd64 installer
|
---|
217 | echo **************************************************************************
|
---|
218 |
|
---|
219 | del %_MY_OPT_UNTAR_DIR%\win.amd64\release\bin\additions\VBoxWindowsAdditions-amd64.exe
|
---|
220 | cp %_MY_REPACK_DIR_AMD64%\..\obj\uninst.exe %_MY_REPACK_DIR_AMD64%
|
---|
221 |
|
---|
222 | rem TBD: that has to be converted to invoke auto-generated .cmd
|
---|
223 |
|
---|
224 | %KBUILD_BIN_PATH%\kmk_redirect.exe -C %_MY_OPT_SRC_DIR% ^
|
---|
225 | -E "PATH_OUT=%_MY_REPACK_DIR_AMD64%\.." ^
|
---|
226 | -E "PATH_TARGET=%_MY_REPACK_DIR_AMD64%" ^
|
---|
227 | -E "PATH_TARGET_X86=%_MY_REPACK_DIR_X86%\resources" ^
|
---|
228 | -E "VBOX_PATH_ADDITIONS_WIN_X86=%_MY_REPACK_DIR_AMD64%\..\bin\additions" ^
|
---|
229 | -E "VBOX_PATH_DIFX=%KBUILD_DEVTOOLS%\win.amd64\DIFx\v2.1-r3" ^
|
---|
230 | -E "VBOX_VENDOR=Oracle Corporation" -E "VBOX_VENDOR_SHORT=Oracle" -E "VBOX_PRODUCT=Oracle VM VirtualBox" ^
|
---|
231 | -E "VBOX_C_YEAR=@VBOX_C_YEAR@" -E "VBOX_VERSION_STRING=@VBOX_VERSION_STRING@" -E "VBOX_VERSION_STRING_RAW=@VBOX_VERSION_STRING_RAW@" ^
|
---|
232 | -E "VBOX_VERSION_MAJOR=@VBOX_VERSION_MAJOR@" -E "VBOX_VERSION_MINOR=@VBOX_VERSION_MINOR@" -E "VBOX_VERSION_BUILD=0" -E "VBOX_SVN_REV=@VBOX_SVN_REV@" ^
|
---|
233 | -E "VBOX_WINDOWS_ADDITIONS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-vista.ico" ^
|
---|
234 | -E "VBOX_NSIS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-nsis.ico" ^
|
---|
235 | -E "VBOX_WITH_GUEST_INSTALL_HELPER=1" -E "VBOX_WITH_GUEST_INSTALLER_UNICODE=1" -E "VBOX_WITH_LICENSE_INSTALL_RTF=1" ^
|
---|
236 | -E "VBOX_WITH_WDDM=1" -E "VBOX_WITH_MESA3D=1" -E "VBOX_BRAND_WIN_ADD_INST_DLGBMP=%_MY_OPT_SRC_DIR%\welcome.bmp" ^
|
---|
237 | -E "VBOX_BRAND_LICENSE_RTF=%_MY_OPT_SRC_DIR%\License-gpl-2.0.rtf" -E "BUILD_TYPE=release" -E "BUILD_TARGET_ARCH=amd64" ^
|
---|
238 | -- %KBUILD_DEVTOOLS%/win.x86/nsis/v3.04-log/makensis.exe /NOCD /V2 ^
|
---|
239 | "/DVBOX_SIGN_ADDITIONS=1" ^
|
---|
240 | "/DEXTERNAL_UNINSTALLER=1" ^
|
---|
241 | "%_MY_OPT_SRC_DIR%\VBoxGuestAdditions.nsi"
|
---|
242 |
|
---|
243 | rem
|
---|
244 | rem Building amd64 installer
|
---|
245 | rem
|
---|
246 | echo **************************************************************************
|
---|
247 | echo * Building x86 installer
|
---|
248 | echo **************************************************************************
|
---|
249 |
|
---|
250 | del %_MY_OPT_UNTAR_DIR%\win.x86\release\bin\additions\VBoxWindowsAdditions-x86.exe
|
---|
251 | cp %_MY_REPACK_DIR_X86%\..\obj\uninst.exe %_MY_REPACK_DIR_X86%\
|
---|
252 |
|
---|
253 | rem TBD: that has to be converted to invoke auto-generated .cmd
|
---|
254 |
|
---|
255 | %KBUILD_BIN_PATH%\kmk_redirect.exe -C %_MY_OPT_SRC_DIR% ^
|
---|
256 | -E "PATH_OUT=%_MY_REPACK_DIR_X86%\.." ^
|
---|
257 | -E "PATH_TARGET=%_MY_REPACK_DIR_X86%" ^
|
---|
258 | -E "PATH_TARGET_X86=%_MY_REPACK_DIR_X86%\resources" ^
|
---|
259 | -E "VBOX_PATH_ADDITIONS_WIN_X86=%_MY_REPACK_DIR_X86%\..\bin\additions" ^
|
---|
260 | -E "VBOX_PATH_DIFX=%KBUILD_DEVTOOLS%\win.x86\DIFx\v2.1-r3" ^
|
---|
261 | -E "VBOX_VENDOR=Oracle Corporation" -E "VBOX_VENDOR_SHORT=Oracle" -E "VBOX_PRODUCT=Oracle VM VirtualBox" ^
|
---|
262 | -E "VBOX_C_YEAR=@VBOX_C_YEAR@" -E "VBOX_VERSION_STRING=@VBOX_VERSION_STRING@" -E "VBOX_VERSION_STRING_RAW=@VBOX_VERSION_STRING_RAW@" ^
|
---|
263 | -E "VBOX_VERSION_MAJOR=@VBOX_VERSION_MAJOR@" -E "VBOX_VERSION_MINOR=@VBOX_VERSION_MINOR@" -E "VBOX_VERSION_BUILD=0" -E "VBOX_SVN_REV=@VBOX_SVN_REV@" ^
|
---|
264 | -E "VBOX_WINDOWS_ADDITIONS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-vista.ico" ^
|
---|
265 | -E "VBOX_NSIS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-nsis.ico" ^
|
---|
266 | -E "VBOX_WITH_GUEST_INSTALL_HELPER=1" -E "VBOX_WITH_GUEST_INSTALLER_UNICODE=1" -E "VBOX_WITH_LICENSE_INSTALL_RTF=1" ^
|
---|
267 | -E "VBOX_WITH_WDDM=1" -E "VBOX_WITH_MESA3D=1" -E "VBOX_BRAND_WIN_ADD_INST_DLGBMP=%_MY_OPT_SRC_DIR%\welcome.bmp" ^
|
---|
268 | -E "VBOX_BRAND_LICENSE_RTF=%_MY_OPT_SRC_DIR%\License-gpl-2.0.rtf" -E "BUILD_TYPE=release" -E "BUILD_TARGET_ARCH=x86" ^
|
---|
269 | -- %KBUILD_DEVTOOLS%/win.x86/nsis/v3.04-log/makensis.exe /NOCD /V2 ^
|
---|
270 | "/DVBOX_SIGN_ADDITIONS=1" ^
|
---|
271 | "/DEXTERNAL_UNINSTALLER=1" ^
|
---|
272 | "%_MY_OPT_SRC_DIR%\VBoxGuestAdditions.nsi"
|
---|
273 |
|
---|
274 | rem
|
---|
275 | rem Making .iso
|
---|
276 | rem
|
---|
277 | echo **************************************************************************
|
---|
278 | echo * Making VBoxGuestAdditions.iso
|
---|
279 | echo **************************************************************************
|
---|
280 |
|
---|
281 | del %_MY_OPT_OUTDIR%/VBoxGuestAdditions.iso
|
---|
282 |
|
---|
283 | rem TBD: that has to be converted to invoke auto-generated .cmd
|
---|
284 |
|
---|
285 | %_MY_SCRIPT_DIR%/../bin/bldRTIsoMaker.exe ^
|
---|
286 | --output %_MY_OPT_OUTDIR%/VBoxGuestAdditions.iso ^
|
---|
287 | --iso-level 3 ^
|
---|
288 | --rock-ridge ^
|
---|
289 | --joliet ^
|
---|
290 | --rational-attribs ^
|
---|
291 | --random-order-verification 2048 ^
|
---|
292 | /cert/vbox-sha1.cer=%_MY_SCRIPT_DIR%../bin/additions/vbox-sha1.cer ^
|
---|
293 | /cert/vbox-sha256.cer=%_MY_SCRIPT_DIR%../bin/additions/vbox-sha256.cer ^
|
---|
294 | /VBoxWindowsAdditions-x86.exe=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxWindowsAdditions-x86.exe ^
|
---|
295 | /VBoxWindowsAdditions.exe=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxWindowsAdditions.exe ^
|
---|
296 | /AUTORUN.INF=%_MY_OPT_SRC_DIR%/AUTORUN.INF ^
|
---|
297 | /cert/VBoxCertUtil.exe=%_MY_SCRIPT_DIR%../bin/additions/VBoxCertUtil.exe ^
|
---|
298 | /NT3x/Readme.txt=%_MY_OPT_SRC_DIR%/NT3xReadme.txt ^
|
---|
299 | /NT3x/VBoxGuest.sys=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxGuest.sys ^
|
---|
300 | /NT3x/VBoxGuest.cat=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxGuest.cat ^
|
---|
301 | /NT3x/VBoxGuest.inf=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxGuest.inf ^
|
---|
302 | /NT3x/VBoxMouseNT.sys=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxMouseNT.sys ^
|
---|
303 | /NT3x/VBoxMouse.inf=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxMouse.inf ^
|
---|
304 | /NT3x/VBoxMouse.cat=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxMouse.cat ^
|
---|
305 | /NT3x/VBoxMouse.sys=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxMouse.sys ^
|
---|
306 | /NT3x/VBoxControl.exe=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxControl.exe ^
|
---|
307 | /NT3x/VBoxService.exe=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxService.exe ^
|
---|
308 | /VBoxWindowsAdditions-amd64.exe=%_MY_OPT_UNTAR_DIR%/win.amd64/release/bin/additions/VBoxWindowsAdditions-amd64.exe ^
|
---|
309 | /VBoxSolarisAdditions.pkg=%_MY_OPT_UNTAR_DIR%/solaris.x86/release/bin/additions/VBoxSolarisAdditions.pkg ^
|
---|
310 | /OS2/VBoxGuest.sys=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/VBoxGuest.sys ^
|
---|
311 | /OS2/VBoxSF.ifs=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/VBoxSF.ifs ^
|
---|
312 | /OS2/VBoxService.exe=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/VBoxService.exe ^
|
---|
313 | /OS2/VBoxControl.exe=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/VBoxControl.exe ^
|
---|
314 | /OS2/VBoxReplaceDll.exe=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/VBoxReplaceDll.exe ^
|
---|
315 | /OS2/libc06.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc06.dll ^
|
---|
316 | /OS2/libc061.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc061.dll ^
|
---|
317 | /OS2/libc062.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc062.dll ^
|
---|
318 | /OS2/libc063.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc063.dll ^
|
---|
319 | /OS2/libc064.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc064.dll ^
|
---|
320 | /OS2/libc065.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc065.dll ^
|
---|
321 | /OS2/libc066.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc066.dll ^
|
---|
322 | /OS2/readme.txt=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/readme.txt ^
|
---|
323 | /OS2/gengradd.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/gengradd.dll ^
|
---|
324 | /OS2/vboxmouse.sys=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/vboxmouse.sys ^
|
---|
325 | /VBoxLinuxAdditions.run=%_MY_OPT_UNTAR_DIR%/linux.x86/release/bin/additions/VBoxLinuxAdditions.run ^
|
---|
326 | /runasroot.sh=%_MY_OPT_UNTAR_DIR%/linux.x86/release/bin/additions/runasroot.sh ^
|
---|
327 | /autorun.sh=%_MY_OPT_UNTAR_DIR%/linux.x86/release/bin/additions/autorun.sh ^
|
---|
328 | /VBoxDarwinAdditions.pkg=%_MY_OPT_UNTAR_DIR%/darwin.amd64/release/dist/additions/VBoxGuestAdditions.pkg ^
|
---|
329 | /VBoxDarwinAdditionsUninstall.tool=%_MY_OPT_UNTAR_DIR%/darwin.amd64/release/dist/additions/VBoxDarwinAdditionsUninstall.tool ^
|
---|
330 | --chmod a+x:/VBoxLinuxAdditions.run --chmod a+x:/runasroot.sh --chmod a+x:/autorun.sh --chmod a+x:/VBoxDarwinAdditionsUninstall.tool ^
|
---|
331 | --volume-id="VBOXADDITIONS_@VBOX_VERSION_STRING@_@VBOX_SVN_REV@" ^
|
---|
332 | --name-setup=joliet ^
|
---|
333 | --volume-id="VBox_GAs_@VBOX_VERSION_STRING@"
|
---|
334 |
|
---|
335 | if not exist %_MY_OPT_OUTDIR%/VBoxGuestAdditions.iso goto end_failed
|
---|
336 | call set _MY_OUT_FILES=%%VBoxGuestAdditions.iso
|
---|
337 |
|
---|
338 | rem
|
---|
339 | rem That's that.
|
---|
340 | rem
|
---|
341 | echo **************************************************************************
|
---|
342 | echo * The third and final step is done.
|
---|
343 | echo *
|
---|
344 | echo * Successfully created:
|
---|
345 | for %%i in (%_MY_OUT_FILES%) do echo * "%_MY_OPT_OUTDIR%\%%i"
|
---|
346 | goto end
|
---|
347 |
|
---|
348 |
|
---|
349 | :end_failed
|
---|
350 | @cd /d "%_MY_SAVED_CD%"
|
---|
351 | @endlocal
|
---|
352 | @endlocal
|
---|
353 | @echo * Failed!
|
---|
354 | @exit /b 1
|
---|
355 |
|
---|
356 | :end
|
---|
357 | @cd /d "%_MY_SAVED_CD%"
|
---|
358 | @endlocal
|
---|
359 | @endlocal
|
---|