Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

208 lines
4.9 KiB

  1. @echo off
  2. if "%1"=="" goto usage
  3. if "%2"=="" goto usage
  4. if "%3"=="" goto usage
  5. if "%4"=="" goto usage
  6. if "%5"=="" goto usage
  7. rem *********** read input variables ************
  8. rem %1 is logfile
  9. set LogFile=%1
  10. rem %2 is location of BIN structure
  11. set BinPath=%2
  12. rem %3 is location of PLOC structure (nt\plocbranch\ploc)
  13. set PlocPath=%3
  14. rem %4 is filelist (whistler1.bat, whistler2.bat, etc)
  15. set FileList=%4
  16. rem %5 is ploc mode
  17. set PlocMode=%5
  18. set PrivateLC=No
  19. set lcfolder=lcs
  20. set timelog=%6
  21. rem ****************************************************
  22. rem ****************** set variables *******************
  23. rem This section sets correct variables for the different
  24. rem target languages and calls the plocscript with them
  25. if %PlocMode%==1250 goto 1250env
  26. if %PlocMode%==1251 goto 1251env
  27. if %PlocMode%==1252 goto 1252env
  28. if %PlocMode%==mirror goto mirrorenv
  29. if %PlocMode%==932 goto jpnenv
  30. echo Incorrect PlocMode
  31. goto end
  32. rem ================ 1250 =================
  33. :1250env
  34. set PLPFile=%PlocPath%\1252.xml
  35. set MappingTable=%PlocPath%\1250map.txt
  36. set PLPConfigFile=
  37. set InputLanguage=0x0409
  38. set OutputLanguage=0x0418
  39. set OutputLanguageNeutral=0x0018
  40. set BingenLang1=24
  41. set BingenLang2=1
  42. set UniReplacementTable=unicode
  43. set UniReplacementMethod=matching
  44. set UniLimitedTable=unicode2
  45. set UniLimitedMethod=matching
  46. set PartialReplacementTable=1250
  47. set PartialReplacementMethod=matching
  48. set LimitedReplacementTable=852
  49. set LimitedReplacementMethod=matching
  50. set MacReplacementTable=10029
  51. set MacReplacementMethod=matching
  52. set MakePloc=no
  53. call %PlocPath%\%FileList% PLOC %PlocPath%\ploc.bat %timelog%
  54. goto end
  55. rem ================ 1251 =================
  56. :1251env
  57. set PLPFile=%PlocPath%\1252.xml
  58. set MappingTable=%PlocPath%\1251map.txt
  59. set PLPConfigFile=
  60. set InputLanguage=0x0409
  61. set OutputLanguage=0x0402
  62. set OutputLanguageNeutral=0x0002
  63. set BingenLang1=2
  64. set BingenLang2=1
  65. set UniReplacementTable=unicode
  66. set UniReplacementMethod=matching
  67. set UniLimitedTable=unicode2
  68. set UniLimitedMethod=matching
  69. set PartialReplacementTable=1251
  70. set PartialReplacementMethod=matching
  71. set LimitedReplacementTable=866
  72. set LimitedReplacementMethod=matching
  73. set MacReplacementTable=10007
  74. set MacReplacementMethod=matching
  75. set MakePloc=no
  76. call %PlocPath%\%FileList% PLOC %PlocPath%\ploc.bat %timelog%
  77. goto end
  78. rem ================ 1252 =================
  79. :1252env
  80. set PLPFile=%PlocPath%\1252.xml
  81. set MappingTable=%PlocPath%\1252map.txt
  82. set PLPConfigFile=
  83. set InputLanguage=0x0409
  84. set OutputLanguage=0x0407
  85. set OutputLanguageNeutral=0x0007
  86. set BingenLang1=7
  87. set BingenLang2=1
  88. set UniReplacementTable=unicode
  89. set UniReplacementMethod=Matching
  90. set UniLimitedTable=unicode2
  91. set UniLimitedMethod=Matching
  92. set PartialReplacementTable=1252
  93. set PartialReplacementMethod=Matching
  94. set LimitedReplacementTable=850
  95. set LimitedReplacementMethod=Matching
  96. set MacReplacementTable=10000
  97. set MacReplacementMethod=Matching
  98. set MakePloc=no
  99. call %PlocPath%\%FileList% PLOC %PlocPath%\ploc.bat %timelog%
  100. goto end
  101. rem ================ mirror =================
  102. :mirrorenv
  103. set PLPFile=%PlocPath%\1252.xml
  104. set MappingTable=%PlocPath%\mirmap.txt
  105. set PLPConfigFile=%PlocPath%\1252.xml
  106. set InputLanguage=0x0409
  107. set OutputLanguage=0x0401
  108. set OutputLanguageNeutral=0x0001
  109. set BingenLang1=1
  110. set BingenLang2=1
  111. set UniReplacementTable=1256
  112. set UniReplacementMethod=none
  113. set UniLimitedTable=1256
  114. set UniLimitedMethod=none
  115. set PartialReplacementTable=1256
  116. set PartialReplacementMethod=none
  117. set LimitedReplacementTable=1256
  118. set LimitedReplacementMethod=none
  119. set MacReplacementTable=1256
  120. set MacReplacementMethod=none
  121. set MakePloc=no
  122. call %PlocPath%\%FileList% PLOC %PlocPath%\ploc.bat %timelog%
  123. goto end
  124. rem ================ jpn=================
  125. :jpnenv
  126. set PLPFile=%PlocPath%\1252.xml
  127. set MappingTable=%PlocPath%\jpnmap.txt
  128. set PLPConfigFile=%PlocPath%\jpnconfig.xml
  129. set InputLanguage=0x0409
  130. set OutputLanguage=0x0411
  131. set OutputLanguageNeutral=0x0011
  132. set BingenLang1=17
  133. set BingenLang2=1
  134. set UniReplacementTable=932
  135. set UniReplacementMethod=Combo
  136. set UniLimitedTable=932
  137. set UniLimitedMethod=Combo
  138. set PartialReplacementTable=932
  139. set PartialReplacementMethod=Combo
  140. set LimitedReplacementTable=932
  141. set LimitedReplacementMethod=Combo
  142. set MacReplacementTable=932
  143. set MacReplacementMethod=Combo
  144. set MakePloc=no
  145. call %PlocPath%\%FileList% PLOC %PlocPath%\ploc.bat %timelog%
  146. goto end
  147. rem ****************** usage ********************
  148. :usage
  149. echo.
  150. echo PLOCWRAP LogFile BinStructure PlocTree FileScript PlocMode
  151. echo LogFile: full path to logfile to create
  152. echo BinStructure: full path to structure to ploc
  153. echo PlocTree: full path to SourceDepot tree (nt\plocbranch\ploc)
  154. echo FileScript: File list script to run (whistler.bat, whistler1.bat, etc)
  155. echo PlocMode: Mode of ploc (supported 1252, 1251, mirror, 932)
  156. echo.
  157. goto eof
  158. :end
  159. :eof