Source code of Windows XP (NT5)
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.

67 lines
1.5 KiB

  1. @echo off
  2. setlocal
  3. if "%SDXROOT%"=="" goto NO_ENV
  4. if "%_NTTREE%"=="" goto NO_ENV
  5. if not "%_BuildArch%"=="x86" goto NOT_X86FRE
  6. if not "%_BuildType%"=="fre" goto NOT_X86FRE
  7. set ESE_SRCROOT=%SDXROOT%\ds\ese98
  8. set ESE_BIN=%_NTTREE%
  9. set LOC_ROOT=%ESE_BIN%\..\lang
  10. set LOC_EDB=%LOC_ROOT%\edb
  11. set LOC_BIN=%LOC_ROOT%\bin
  12. set LOCCMD="C:\Program Files\LocStudio\lscmd"
  13. set BINGENCMD=%ESE_SRCROOT%\lang\bingen
  14. if not exist %ESE_BIN%\esent.dll goto NO_BIN
  15. if not exist %ESE_BIN%\esentprf.ini goto NO_BIN
  16. if exist %LOC_ROOT%\nul rd /s/q %LOC_ROOT%
  17. md %LOC_ROOT%
  18. md %LOC_EDB%
  19. md %LOC_BIN%
  20. rem Copy the EDBs to the EDB subdirectory
  21. echo.
  22. echo ========================================
  23. echo Copying EDBs...
  24. copy %ESE_SRCROOT%\lang\edb\esent_*.edb %LOC_EDB%
  25. echo.
  26. echo ========================================
  27. echo Copying files to be localised...
  28. copy %ESE_BIN%\esent.dll* %LOC_BIN%
  29. copy %ESE_BIN%\esentprf.ini* %LOC_BIN%
  30. echo.
  31. echo ========================================
  32. echo Generating multi-lang binaries and tokens...
  33. for /F "tokens=2-4 delims=_" %%i in ('dir /on /b %LOC_EDB%\esent_*.edb') do call genloc_ %%i %%j %%k %LOC_BIN% %LOC_EDB% %LOCCMD% %BINGENCMD%
  34. echo.
  35. echo ========================================
  36. echo DONE!
  37. echo.
  38. goto END
  39. :NO_ENV
  40. echo.
  41. echo Your NT build environment has not been initialised.
  42. echo.
  43. goto End
  44. :NOT_X86FRE
  45. echo.
  46. echo You must use an x86fre build window.
  47. echo.
  48. goto End
  49. :NO_BIN
  50. echo.
  51. echo Missing x86fre build of ESENT.DLL and/or ESENTPRF.INI.
  52. echo.
  53. goto End
  54. :END