Added argument checking and usage message

X-Trac-URL: https://ssl.icu-project.org/trac/ticket/14



git-svn-id: http://source.icu-project.org/repos/icu/icu/trunk@133 0a8b766c-62c9-45f9-954d-7f2943c9ead0
This commit is contained in:
Helena Chapman 1999-10-27 19:54:07 +00:00
parent ced5efe97a
commit dbc861a8f5
2 changed files with 44 additions and 1 deletions
source/tools

View file

@ -1,3 +1,12 @@
@echo off
rem Added argument checking, Vladimir Weinsten - IBM Corp., 10/25/99
if "%1"=="" goto :error
if "%2"=="" goto :error
if "%ICU_DATA%"=="" set ICU_DATA=%2\icu\data\
%1\genrb %2\icu\data\default.txt
%1\genrb %2\icu\data\index.txt
%1\genrb %2\icu\data\ar.txt
@ -149,5 +158,15 @@ rem Do the conversion for the test locales
%1\genrb %2\icu\source\test\testdata\default.txt
%1\genrb %2\icu\source\test\testdata\te.txt
%1\genrb %2\icu\source\test\testdata\te_IN.txt
goto :end
:error
echo call genrb with "Debug" or "Release" as the first argument
echo and the absolute path to the icu directory as the second.
echo for example, if you built the Debug version on icu,
echo and the full path of icu is d:\mytools\icu then call
echo genrb Debug d:\mytools
echo the current directory must be the icu\source\tools\genrb directory with genrb.bat
:end

View file

@ -1,8 +1,32 @@
echo off
@echo off
rem Bertrand A. DAMIBA - IBM Corp.
rem This is a batch file that should be included in the MSVC build process
rem it's purpose is to build all the converter binary files (".cnv") from the
rem existing *".ucm" files on the system
rem this batch file should be passed a string either "Release" or "Debug"
rem so the script will know where "makeconv.exe" is
rem Added argument checking, Vladimir Weinsten - IBM Corp., 10/25/99
if "%1"=="" goto :error
if "%2"=="" goto :error
if "%ICU_DATA%"=="" set ICU_DATA=%2\icu\data\
REM for %%i in (%2\icu\data\*.ucm) do %2\icu\source\tools\makeconv\%1\makeconv %%i
for %%i in (%2\icu\data\*.ucm %2\icu\data\ibm-16684.ucm %2\icu\data\ibm-16804.ucm %2\icu\data\ibm-17248.ucm %2\icu\data\ibm-21427.ucm %2\icu\data\ibm-12712.ucm) do %2\icu\source\tools\makeconv\%1\makeconv %%i
goto :end
:error
echo call mkcnvfle with "Debug" or "Release" as the first argument
echo and the absolute path to the icu directory as the second.
echo for example, if you built the Debug version on icu,
echo and the full path of icu is d:\mytools\icu then call
echo mkcnvfle Debug d:\mytools
echo the current directory must be the icu\source\tools\makeconv directory with genrb.bat
:end