scuffed-code/icu4c/source/tools/makedata.bat
Vladimir Weinstein 2fd77b0c75 ICU-360 win32 port - initial working commit
X-SVN-Rev: 1949
2000-07-19 20:58:13 +00:00

34 lines
1009 B
Batchfile
Executable File

@echo off
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
if "%ICU_DATA%"=="" set ICU_DATA=%1\data\
rem toolversion: Debug or Release
set toolversion=Release
if not "%2"=="" set toolversion=%2
nmake /f makedata.mak icup=%1 cfg=%2 %3 %4
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%!
goto :end
: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
echo makedata d:\mytools\icu
echo a second, optional, parameter can be Debug or Release to specify the tools versions
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
:end