ICU-14 Windows: create a batch file to make the /icu/data files

X-SVN-Rev: 46
This commit is contained in:
Markus Scherer 1999-10-12 21:50:30 +00:00
parent 6e20698d77
commit c665e7078e
4 changed files with 182 additions and 152 deletions

View file

@ -1,153 +1,153 @@
%1\genrb \icu\data\default.txt
%1\genrb \icu\data\index.txt
%1\genrb \icu\data\ar.txt
%1\genrb \icu\data\ar_AE.txt
%1\genrb \icu\data\ar_BH.txt
%1\genrb \icu\data\ar_DZ.txt
%1\genrb \icu\data\ar_EG.txt
%1\genrb \icu\data\ar_IQ.txt
%1\genrb \icu\data\ar_JO.txt
%1\genrb \icu\data\ar_KW.txt
%1\genrb \icu\data\ar_LB.txt
%1\genrb \icu\data\ar_LY.txt
%1\genrb \icu\data\ar_MA.txt
%1\genrb \icu\data\ar_OM.txt
%1\genrb \icu\data\ar_QA.txt
%1\genrb \icu\data\ar_SA.txt
%1\genrb \icu\data\ar_SD.txt
%1\genrb \icu\data\ar_SY.txt
%1\genrb \icu\data\ar_TN.txt
%1\genrb \icu\data\ar_YE.txt
%1\genrb \icu\data\be.txt
%1\genrb \icu\data\be_BY.txt
%1\genrb \icu\data\bg.txt
%1\genrb \icu\data\bg_BG.txt
%1\genrb \icu\data\ca.txt
%1\genrb \icu\data\ca_ES.txt
%1\genrb \icu\data\ca_ES_EURO.txt
%1\genrb \icu\data\cs.txt
%1\genrb \icu\data\cs_CZ.txt
%1\genrb \icu\data\da.txt
%1\genrb \icu\data\da_DK.txt
%1\genrb \icu\data\de.txt
%1\genrb \icu\data\de_AT.txt
%1\genrb \icu\data\de_AT_EURO.txt
%1\genrb \icu\data\de_CH.txt
%1\genrb \icu\data\de_DE.txt
%1\genrb \icu\data\de_DE_EURO.txt
%1\genrb \icu\data\de_LU.txt
%1\genrb \icu\data\de_LU_EURO.txt
%1\genrb \icu\data\el.txt
%1\genrb \icu\data\el_GR.txt
%1\genrb \icu\data\en.txt
%1\genrb \icu\data\en_AU.txt
%1\genrb \icu\data\en_CA.txt
%1\genrb \icu\data\en_GB.txt
%1\genrb \icu\data\en_IE.txt
%1\genrb \icu\data\en_IE_EURO.txt
%1\genrb \icu\data\en_NZ.txt
%1\genrb \icu\data\en_US.txt
%1\genrb \icu\data\en_ZA.txt
%1\genrb \icu\data\es.txt
%1\genrb \icu\data\es_AR.txt
%1\genrb \icu\data\es_BO.txt
%1\genrb \icu\data\es_CL.txt
%1\genrb \icu\data\es_CO.txt
%1\genrb \icu\data\es_CR.txt
%1\genrb \icu\data\es_DO.txt
%1\genrb \icu\data\es_EC.txt
%1\genrb \icu\data\es_ES.txt
%1\genrb \icu\data\es_ES_EURO.txt
%1\genrb \icu\data\es_GT.txt
%1\genrb \icu\data\es_HN.txt
%1\genrb \icu\data\es_MX.txt
%1\genrb \icu\data\es_NI.txt
%1\genrb \icu\data\es_PA.txt
%1\genrb \icu\data\es_PE.txt
%1\genrb \icu\data\es_PR.txt
%1\genrb \icu\data\es_PY.txt
%1\genrb \icu\data\es_SV.txt
%1\genrb \icu\data\es_UY.txt
%1\genrb \icu\data\es_VE.txt
%1\genrb \icu\data\et.txt
%1\genrb \icu\data\et_EE.txt
%1\genrb \icu\data\fi.txt
%1\genrb \icu\data\fi_FI.txt
%1\genrb \icu\data\fi_FI_EURO.txt
%1\genrb \icu\data\fr.txt
%1\genrb \icu\data\fr_BE.txt
%1\genrb \icu\data\fr_BE_EURO.txt
%1\genrb \icu\data\fr_CA.txt
%1\genrb \icu\data\fr_CH.txt
%1\genrb \icu\data\fr_FR.txt
%1\genrb \icu\data\fr_FR_EURO.txt
%1\genrb \icu\data\fr_LU.txt
%1\genrb \icu\data\fr_LU_EURO.txt
%1\genrb \icu\data\hr.txt
%1\genrb \icu\data\hr_HR.txt
%1\genrb \icu\data\hu.txt
%1\genrb \icu\data\hu_HU.txt
%1\genrb \icu\data\is.txt
%1\genrb \icu\data\is_IS.txt
%1\genrb \icu\data\it.txt
%1\genrb \icu\data\it_CH.txt
%1\genrb \icu\data\it_IT.txt
%1\genrb \icu\data\it_IT_EURO.txt
%1\genrb \icu\data\iw.txt
%1\genrb \icu\data\iw_IL.txt
%1\genrb \icu\data\ja.txt
%1\genrb \icu\data\ja_JP.txt
%1\genrb \icu\data\ko.txt
%1\genrb \icu\data\ko_KR.txt
%1\genrb \icu\data\lt.txt
%1\genrb \icu\data\lt_LT.txt
%1\genrb \icu\data\lv.txt
%1\genrb \icu\data\lv_LV.txt
%1\genrb \icu\data\mk.txt
%1\genrb \icu\data\mk_MK.txt
%1\genrb \icu\data\nl.txt
%1\genrb \icu\data\nl_BE.txt
%1\genrb \icu\data\nl_BE_EURO.txt
%1\genrb \icu\data\nl_NL.txt
%1\genrb \icu\data\nl_NL_EURO.txt
%1\genrb \icu\data\no.txt
%1\genrb \icu\data\no_NO.txt
%1\genrb \icu\data\no_NO_NY.txt
%1\genrb \icu\data\pl.txt
%1\genrb \icu\data\pl_PL.txt
%1\genrb \icu\data\pt.txt
%1\genrb \icu\data\pt_BR.txt
%1\genrb \icu\data\pt_PT.txt
%1\genrb \icu\data\pt_PT_EURO.txt
%1\genrb \icu\data\ro.txt
%1\genrb \icu\data\ro_RO.txt
%1\genrb \icu\data\ru.txt
%1\genrb \icu\data\ru_RU.txt
%1\genrb \icu\data\sh.txt
%1\genrb \icu\data\sh_YU.txt
%1\genrb \icu\data\sk.txt
%1\genrb \icu\data\sk_SK.txt
%1\genrb \icu\data\sl.txt
%1\genrb \icu\data\sl_SI.txt
%1\genrb \icu\data\sq.txt
%1\genrb \icu\data\sq_AL.txt
%1\genrb \icu\data\sr.txt
%1\genrb \icu\data\sr_YU.txt
%1\genrb \icu\data\sv.txt
%1\genrb \icu\data\sv_SE.txt
%1\genrb \icu\data\th.txt
%1\genrb \icu\data\th_TH.txt
%1\genrb \icu\data\tr.txt
%1\genrb \icu\data\tr_TR.txt
%1\genrb \icu\data\uk.txt
%1\genrb \icu\data\uk_UA.txt
%1\genrb \icu\data\zh.txt
%1\genrb \icu\data\zh_CN.txt
%1\genrb \icu\data\zh_HK.txt
%1\genrb \icu\data\zh_TW.txt
%1\genrb %2\icu\data\default.txt
%1\genrb %2\icu\data\index.txt
%1\genrb %2\icu\data\ar.txt
%1\genrb %2\icu\data\ar_AE.txt
%1\genrb %2\icu\data\ar_BH.txt
%1\genrb %2\icu\data\ar_DZ.txt
%1\genrb %2\icu\data\ar_EG.txt
%1\genrb %2\icu\data\ar_IQ.txt
%1\genrb %2\icu\data\ar_JO.txt
%1\genrb %2\icu\data\ar_KW.txt
%1\genrb %2\icu\data\ar_LB.txt
%1\genrb %2\icu\data\ar_LY.txt
%1\genrb %2\icu\data\ar_MA.txt
%1\genrb %2\icu\data\ar_OM.txt
%1\genrb %2\icu\data\ar_QA.txt
%1\genrb %2\icu\data\ar_SA.txt
%1\genrb %2\icu\data\ar_SD.txt
%1\genrb %2\icu\data\ar_SY.txt
%1\genrb %2\icu\data\ar_TN.txt
%1\genrb %2\icu\data\ar_YE.txt
%1\genrb %2\icu\data\be.txt
%1\genrb %2\icu\data\be_BY.txt
%1\genrb %2\icu\data\bg.txt
%1\genrb %2\icu\data\bg_BG.txt
%1\genrb %2\icu\data\ca.txt
%1\genrb %2\icu\data\ca_ES.txt
%1\genrb %2\icu\data\ca_ES_EURO.txt
%1\genrb %2\icu\data\cs.txt
%1\genrb %2\icu\data\cs_CZ.txt
%1\genrb %2\icu\data\da.txt
%1\genrb %2\icu\data\da_DK.txt
%1\genrb %2\icu\data\de.txt
%1\genrb %2\icu\data\de_AT.txt
%1\genrb %2\icu\data\de_AT_EURO.txt
%1\genrb %2\icu\data\de_CH.txt
%1\genrb %2\icu\data\de_DE.txt
%1\genrb %2\icu\data\de_DE_EURO.txt
%1\genrb %2\icu\data\de_LU.txt
%1\genrb %2\icu\data\de_LU_EURO.txt
%1\genrb %2\icu\data\el.txt
%1\genrb %2\icu\data\el_GR.txt
%1\genrb %2\icu\data\en.txt
%1\genrb %2\icu\data\en_AU.txt
%1\genrb %2\icu\data\en_CA.txt
%1\genrb %2\icu\data\en_GB.txt
%1\genrb %2\icu\data\en_IE.txt
%1\genrb %2\icu\data\en_IE_EURO.txt
%1\genrb %2\icu\data\en_NZ.txt
%1\genrb %2\icu\data\en_US.txt
%1\genrb %2\icu\data\en_ZA.txt
%1\genrb %2\icu\data\es.txt
%1\genrb %2\icu\data\es_AR.txt
%1\genrb %2\icu\data\es_BO.txt
%1\genrb %2\icu\data\es_CL.txt
%1\genrb %2\icu\data\es_CO.txt
%1\genrb %2\icu\data\es_CR.txt
%1\genrb %2\icu\data\es_DO.txt
%1\genrb %2\icu\data\es_EC.txt
%1\genrb %2\icu\data\es_ES.txt
%1\genrb %2\icu\data\es_ES_EURO.txt
%1\genrb %2\icu\data\es_GT.txt
%1\genrb %2\icu\data\es_HN.txt
%1\genrb %2\icu\data\es_MX.txt
%1\genrb %2\icu\data\es_NI.txt
%1\genrb %2\icu\data\es_PA.txt
%1\genrb %2\icu\data\es_PE.txt
%1\genrb %2\icu\data\es_PR.txt
%1\genrb %2\icu\data\es_PY.txt
%1\genrb %2\icu\data\es_SV.txt
%1\genrb %2\icu\data\es_UY.txt
%1\genrb %2\icu\data\es_VE.txt
%1\genrb %2\icu\data\et.txt
%1\genrb %2\icu\data\et_EE.txt
%1\genrb %2\icu\data\fi.txt
%1\genrb %2\icu\data\fi_FI.txt
%1\genrb %2\icu\data\fi_FI_EURO.txt
%1\genrb %2\icu\data\fr.txt
%1\genrb %2\icu\data\fr_BE.txt
%1\genrb %2\icu\data\fr_BE_EURO.txt
%1\genrb %2\icu\data\fr_CA.txt
%1\genrb %2\icu\data\fr_CH.txt
%1\genrb %2\icu\data\fr_FR.txt
%1\genrb %2\icu\data\fr_FR_EURO.txt
%1\genrb %2\icu\data\fr_LU.txt
%1\genrb %2\icu\data\fr_LU_EURO.txt
%1\genrb %2\icu\data\hr.txt
%1\genrb %2\icu\data\hr_HR.txt
%1\genrb %2\icu\data\hu.txt
%1\genrb %2\icu\data\hu_HU.txt
%1\genrb %2\icu\data\is.txt
%1\genrb %2\icu\data\is_IS.txt
%1\genrb %2\icu\data\it.txt
%1\genrb %2\icu\data\it_CH.txt
%1\genrb %2\icu\data\it_IT.txt
%1\genrb %2\icu\data\it_IT_EURO.txt
%1\genrb %2\icu\data\iw.txt
%1\genrb %2\icu\data\iw_IL.txt
%1\genrb %2\icu\data\ja.txt
%1\genrb %2\icu\data\ja_JP.txt
%1\genrb %2\icu\data\ko.txt
%1\genrb %2\icu\data\ko_KR.txt
%1\genrb %2\icu\data\lt.txt
%1\genrb %2\icu\data\lt_LT.txt
%1\genrb %2\icu\data\lv.txt
%1\genrb %2\icu\data\lv_LV.txt
%1\genrb %2\icu\data\mk.txt
%1\genrb %2\icu\data\mk_MK.txt
%1\genrb %2\icu\data\nl.txt
%1\genrb %2\icu\data\nl_BE.txt
%1\genrb %2\icu\data\nl_BE_EURO.txt
%1\genrb %2\icu\data\nl_NL.txt
%1\genrb %2\icu\data\nl_NL_EURO.txt
%1\genrb %2\icu\data\no.txt
%1\genrb %2\icu\data\no_NO.txt
%1\genrb %2\icu\data\no_NO_NY.txt
%1\genrb %2\icu\data\pl.txt
%1\genrb %2\icu\data\pl_PL.txt
%1\genrb %2\icu\data\pt.txt
%1\genrb %2\icu\data\pt_BR.txt
%1\genrb %2\icu\data\pt_PT.txt
%1\genrb %2\icu\data\pt_PT_EURO.txt
%1\genrb %2\icu\data\ro.txt
%1\genrb %2\icu\data\ro_RO.txt
%1\genrb %2\icu\data\ru.txt
%1\genrb %2\icu\data\ru_RU.txt
%1\genrb %2\icu\data\sh.txt
%1\genrb %2\icu\data\sh_YU.txt
%1\genrb %2\icu\data\sk.txt
%1\genrb %2\icu\data\sk_SK.txt
%1\genrb %2\icu\data\sl.txt
%1\genrb %2\icu\data\sl_SI.txt
%1\genrb %2\icu\data\sq.txt
%1\genrb %2\icu\data\sq_AL.txt
%1\genrb %2\icu\data\sr.txt
%1\genrb %2\icu\data\sr_YU.txt
%1\genrb %2\icu\data\sv.txt
%1\genrb %2\icu\data\sv_SE.txt
%1\genrb %2\icu\data\th.txt
%1\genrb %2\icu\data\th_TH.txt
%1\genrb %2\icu\data\tr.txt
%1\genrb %2\icu\data\tr_TR.txt
%1\genrb %2\icu\data\uk.txt
%1\genrb %2\icu\data\uk_UA.txt
%1\genrb %2\icu\data\zh.txt
%1\genrb %2\icu\data\zh_CN.txt
%1\genrb %2\icu\data\zh_HK.txt
%1\genrb %2\icu\data\zh_TW.txt
rem Do the conversion for the test locales
%1\genrb \icu\source\test\testdata\default.txt
%1\genrb \icu\source\test\testdata\te.txt
%1\genrb \icu\source\test\testdata\te_IN.txt
%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

View file

@ -143,7 +143,6 @@ write_taglist(FileStream *rb,
/* Write out each key/value pair */
for(i = 0; i < list->fCount; ++i) {
printf(" ");
write_ustring(rb, list->fData[i].fKey);
write_ustring(rb, list->fData[i].fValue);
}

View file

@ -5,4 +5,4 @@ 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
for %%i in (\icu\data\*.ucm) do \icu\source\tools\makeconv\%1\makeconv %%i
for %%i in (%2\icu\data\*.ucm) do %2\icu\source\tools\makeconv\%1\makeconv %%i

31
icu4c/source/tools/makedata.bat Executable file
View file

@ -0,0 +1,31 @@
rem @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\icu\data\
set toolversion=Debug
cd %1\icu\data
rem create conversion tables
call %1\icu\source\tools\makeconv\mkcnvfle %toolversion% %1
rem create locale resource bundles
call %1\icu\source\tools\genrb\genrb %1\icu\source\tools\genrb\%toolversion% %1
rem create binary collation tables
%1\icu\source\tools\gencol\%toolversion%\gencol
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
echo the current directory will be changed to d:\mytools\icu\data
:end