1999-10-14 22:14:04 +00:00
|
|
|
@echo off
|
1999-10-12 21:50:30 +00:00
|
|
|
rem makedata.bat
|
|
|
|
rem batch file for Windows for creating the ICU data files
|
|
|
|
rem parameter:
|
|
|
|
rem %1 path where the icu folder resides
|
|
|
|
|
|
|
|
if "%1"=="" goto :error
|
|
|
|
|
2000-06-08 22:57:42 +00:00
|
|
|
if "%ICU_DATA%"=="" set ICU_DATA=%1\data\
|
1999-10-14 22:14:04 +00:00
|
|
|
|
|
|
|
rem toolversion: Debug or Release
|
|
|
|
set toolversion=Release
|
1999-10-27 18:40:52 +00:00
|
|
|
if not "%2"=="" set toolversion=%2
|
1999-10-12 21:50:30 +00:00
|
|
|
|
1999-12-14 16:30:54 +00:00
|
|
|
nmake /f makedata.mak icup=%1 cfg=%2 %3 %4
|
2000-01-11 20:32:25 +00:00
|
|
|
if not errorlevel 9009 goto :othererror
|
|
|
|
echo Build tools are not on path! Please make sure that MSVC++ is setup correctly!
|
|
|
|
goto :error
|
|
|
|
:othererror
|
|
|
|
if errorlevel 0 goto :end
|
|
|
|
echo Nmake has unsuccesfully finished with errorcode %errorlevel%!
|
1999-12-13 03:44:22 +00:00
|
|
|
goto :end
|
|
|
|
|
1999-10-12 21:50:30 +00:00
|
|
|
:error
|
|
|
|
echo call makedata with the absolute path to the icu directory
|
|
|
|
echo for example, if the full path is d:\mytools\icu then call
|
2000-07-19 20:58:13 +00:00
|
|
|
echo makedata d:\mytools\icu
|
1999-10-27 18:40:52 +00:00
|
|
|
echo a second, optional, parameter can be Debug or Release to specify the tools versions
|
1999-11-20 01:10:07 +00:00
|
|
|
echo.
|
|
|
|
echo the current directory must be the icu\source\tools directory with makedata.bat
|
|
|
|
echo also, the cl compiler and link linker must be on the PATH
|
1999-10-12 21:50:30 +00:00
|
|
|
|
|
|
|
:end
|