blob: 68342092701edbc5151c1ea32356e6d748e34bcd (
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
|
@ECHO OFF
echo Downloading %1
echo --------------
cd %DL_PATH%
FOR /F "eol=; tokens=1,2" %%f IN (%2) DO (
echo %%f %%g
IF NOT EXIST %%f (
%WGET% "%%g/%%f"
) ELSE (
echo Already have %%f
)
copy /b "%%f" "%TMP_PATH%"
)
echo Extracting...
echo -------------
cd %TMP_PATH%
FOR /F "eol=; tokens=1,2" %%f IN (%2) DO (
%ZIP% x %%f
)
FOR /F "tokens=*" %%f IN ('dir /B "*.tar"') DO (
%ZIP% x -y %%f
)
|