2005-05-28 00:45:31 +02:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
|
2005-06-27 15:54:02 +02:00
|
|
|
:: Set env vars
|
2022-08-08 13:32:53 +02:00
|
|
|
@call setenvvar.bat %*
|
2005-06-27 15:54:02 +02:00
|
|
|
|
|
|
|
::==========
|
|
|
|
:: MAIN
|
|
|
|
|
2023-07-16 16:32:13 +02:00
|
|
|
@echo Extracting pre-built ICU and tzdata
|
|
|
|
mkdir %FB_ROOT_PATH%\extern\icu\tzdata-extract 2> nul
|
|
|
|
|
|
|
|
:: FB_UNZIP could be set by caller, else try to find unzip in PATH or at the GIT folder
|
|
|
|
|
|
|
|
if not defined FB_UNZIP (
|
|
|
|
@for /f "tokens=*" %%a in ('where unzip.exe 2^> nul') do (@SET FB_UNZIP=%%a)
|
|
|
|
)
|
|
|
|
|
|
|
|
if not defined FB_UNZIP (
|
|
|
|
@for /f "tokens=*" %%a in ('where git 2^> nul') do (@SET FB_UNZIP=%%~dpa..\usr\bin\unzip.exe)
|
|
|
|
)
|
|
|
|
|
|
|
|
if not exist "%FB_UNZIP%" set FB_UNZIP=
|
|
|
|
|
|
|
|
if not defined FB_UNZIP (
|
|
|
|
cscript /nologo unzip.vbs %FB_ROOT_PATH%\extern\icu\icu_windows.zip %FB_ROOT_PATH%\extern\icu
|
|
|
|
cscript /nologo unzip.vbs %FB_ROOT_PATH%\extern\icu\icudt.zip %FB_ROOT_PATH%\extern\icu
|
|
|
|
cscript /nologo unzip.vbs %FB_ROOT_PATH%\extern\icu\tzdata\le.zip %FB_ROOT_PATH%\extern\icu\tzdata-extract
|
|
|
|
) else (
|
|
|
|
"%FB_UNZIP%" -o %FB_ROOT_PATH%\extern\icu\icu_windows.zip -d %FB_ROOT_PATH%\extern\icu
|
|
|
|
"%FB_UNZIP%" -o %FB_ROOT_PATH%\extern\icu\icudt.zip -d %FB_ROOT_PATH%\extern\icu
|
|
|
|
"%FB_UNZIP%" -o %FB_ROOT_PATH%\extern\icu\tzdata\le.zip -d %FB_ROOT_PATH%\extern\icu\tzdata-extract
|
|
|
|
)
|
2007-02-26 16:18:41 +01:00
|
|
|
if errorlevel 1 call :ERROR build failed - see make_icu_%FB_TARGET_PLATFORM%.log for details
|
2005-06-27 15:54:02 +02:00
|
|
|
|
2020-01-14 16:40:25 +01:00
|
|
|
@goto :EOF
|
2005-06-27 15:54:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
:ERROR
|
|
|
|
::====
|
|
|
|
@echo.
|
|
|
|
@echo An error occurred while running make_icu.bat -
|
|
|
|
@echo %*
|
|
|
|
@echo.
|
|
|
|
set ERRLEV=1
|
|
|
|
cancel_script > nul 2>&1
|
|
|
|
::End of ERROR
|
|
|
|
::------------
|
|
|
|
@goto :EOF
|