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.

29 lines
881 B

  1. @echo off
  2. setlocal
  3. set BLD_LANG=%1
  4. set COMCTL32_VERSION=%2
  5. REM echo pack.bat called with Arg1=%1, Arg2=%2, Arg3=%3
  6. if "%BLD_LANG%"=="UnUsed" goto DONE
  7. if "%BLD_LANG%"=="history" goto DONE
  8. if "%3"=="verbose" set BUILD_OPTIONS=/n
  9. if not "%3"=="verbose" set BUILD_OPTIONS=/n /q /m
  10. if "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto ALPHA_IEXPRESS
  11. set IEXPRESS_PATH=%_NTBINDIR%\idw\iexpress.exe
  12. goto START_BLD
  13. :ALPHA_IEXPRESS
  14. set IEXPRESS_PATH=iexpress.exe
  15. :START_BLD
  16. cd %BLD_LANG%
  17. echo Building language specific files. Language is %BLD_LANG%
  18. cat ..\template.sed strings.txt | perl ..\varreplace.pl BuildNum %COMCTL32_VERSION% > comctl32.sed
  19. cat ..\template.inf strings.txt > comctl32.inf
  20. echo Building IExpress Package. Language is %BLD_LANG%
  21. start /w %IEXPRESS_PATH% %BUILD_OPTIONS% comctl32.sed
  22. if not exist comctl32.exe echo ERROR: FAILED TO BUILD LANGUAGE %BLD_LANG%
  23. cd ..
  24. :DONE