blob: ed76ec7dc02e9f47b38e45b105a9fb101f07dd4e (
plain)
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
|
@ECHO OFF
SETLOCAL
SET CUR_PATH=%CD%
SET XBMC_PATH=%CD%\..\..
SET TMP_PATH=%CD%\scripts\tmp
rem can't run rmdir and md back to back. access denied error otherwise.
IF EXIST lib rmdir lib /S /Q
IF EXIST include rmdir include /S /Q
IF EXIST %TMP_PATH% rmdir %TMP_PATH% /S /Q
IF $%1$ == $$ (
SET DL_PATH="%CD%\downloads"
) ELSE (
SET DL_PATH="%1"
)
SET WGET=%CUR_PATH%\bin\wget
SET ZIP=%CUR_PATH%\..\Win32BuildSetup\tools\7z\7za
IF NOT EXIST %DL_PATH% md %DL_PATH%
md lib
md include
md %TMP_PATH%
cd scripts
FOR /F "tokens=*" %%S IN ('dir /B "*_d.bat"') DO (
echo running %%S ...
CALL %%S
)
SET FORMED_OK_FLAG=%TMP_PATH%\got-all-formed-packages
REM Trick to preserve console title
start /b /wait cmd.exe /c get_formed.cmd
IF NOT EXIST %FORMED_OK_FLAG% (
ECHO ERROR: Not all formed packages are ready!
EXIT /B 101
)
cd %CUR_PATH%
rmdir %TMP_PATH% /S /Q
EXIT /B 0
|