diff options
Diffstat (limited to 'project/BuildDependencies/scripts/dlextract.bat')
-rw-r--r-- | project/BuildDependencies/scripts/dlextract.bat | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/project/BuildDependencies/scripts/dlextract.bat b/project/BuildDependencies/scripts/dlextract.bat new file mode 100644 index 0000000000..450225f01c --- /dev/null +++ b/project/BuildDependencies/scripts/dlextract.bat @@ -0,0 +1,26 @@ +@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
+)
|