1941-docker-image-to-testdevel
| Line | |
|---|
| 1 | @echo off
|
|---|
| 2 |
|
|---|
| 3 | set platform=Win64GNU
|
|---|
| 4 | echo.Download default packages for %platform%
|
|---|
| 5 | echo.
|
|---|
| 6 |
|
|---|
| 7 | set tolp_root=%CD%\..\..\..
|
|---|
| 8 | if not exist "%tolp_root%\trunk" (
|
|---|
| 9 | echo./!\ Cannot find 'trunk' at %tolp_root%
|
|---|
| 10 | exit /b
|
|---|
| 11 | )
|
|---|
| 12 |
|
|---|
| 13 | set dest=%tolp_root%\trunk\tol\CodeLite64\Release\Runtime_Base\bin\stdlib\DefaultPackages
|
|---|
| 14 | if not exist "%dest%" (
|
|---|
| 15 | echo./!\ Cannot find '%dest%'
|
|---|
| 16 | exit /b
|
|---|
| 17 | )
|
|---|
| 18 |
|
|---|
| 19 | rem Deletes previous packages if they exist.
|
|---|
| 20 | del "%dest%\*.zip*"
|
|---|
| 21 |
|
|---|
| 22 | rem == WGET ===============================
|
|---|
| 23 | set init_dir=%CD%
|
|---|
| 24 | cd %dest%
|
|---|
| 25 |
|
|---|
| 26 | rem Adds wget path to variable path.
|
|---|
| 27 | rem wget version should have option --content-disposition.
|
|---|
| 28 | set path=C:\Program Files (x86)\GnuWin32\bin;%path%
|
|---|
| 29 |
|
|---|
| 30 | echo.### Downloading StdLib ###
|
|---|
| 31 | wget --content-disposition "http://packages.tol-project.org/OfficialTolArchiveNetwork/repository.php?action=download&format=attachment&tol_package_version=4&package=StdLib"
|
|---|
| 32 |
|
|---|
| 33 | echo.### Downloading TclCore ###
|
|---|
| 34 | wget --content-disposition "http://packages.tol-project.org/OfficialTolArchiveNetwork/repository.php?action=download&format=attachment&tol_package_version=4&package=TclCore%%23%platform%"
|
|---|
| 35 |
|
|---|
| 36 | cd %init_dir%
|
|---|
| 37 | rem =======================================
|
|---|
| 38 |
|
|---|
| 39 | set ok=1
|
|---|
| 40 |
|
|---|
| 41 | if not exist "%dest%\Stdlib.*.*.zip" (
|
|---|
| 42 | set ok=0
|
|---|
| 43 | echo./!\ Package StdLib cannot be downloaded.
|
|---|
| 44 | )
|
|---|
| 45 | if not exist "%dest%\TclCore#%platform%.*.*.zip" (
|
|---|
| 46 | set ok=0
|
|---|
| 47 | echo./!\ Package TclCore cannot be downloaded for '%platform%'.
|
|---|
| 48 | )
|
|---|
| 49 |
|
|---|
| 50 | if "%ok%"=="1" (
|
|---|
| 51 | echo.Default packages correctly downloaded.
|
|---|
| 52 | )
|
|---|
| 53 |
|
|---|
| 54 | exit /b
|
|---|
Note: See
TracBrowser
for help on using the repository browser.