blob: 802a65c6995cdee3e1c106a71f179c00aaa548bc (
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
|
@ECHO OFF
SETLOCAL
SET CUR_PATH=%WORKSPACE%\project\BuildDependencies
SET TMP_PATH=%WORKSPACE%\project\BuildDependencies\scripts\tmp
SET APP_PATH=%WORKSPACE%
cd %CUR_PATH%
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
)
cd %CUR_PATH%
rmdir %TMP_PATH% /S /Q
|