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.

31 lines
1.1 KiB

  1. @setlocal
  2. @if "%6"=="win9x" (@set targetdir=binaries.x86\win9x\localized\%2) else (@set targetdir=binaries.x86\localized\%2)
  3. @if "%6"=="win9x" (@set targetos=win9x) else (@set targetos=daytona)
  4. @if "%6"=="win9x" (@set targetbindir=%_NTTREE%\win9x) else (@set targetbindir=%_NTTREE%)
  5. @if "%6"=="win9x" (@set alttargetbindir=%_ALT_NTTREE%\win9x) else (@set alttargetbindir=%_ALT_NTTREE%)
  6. @if exist %targetbindir%\%1 set loctarget=%targetbindir%\%1
  7. @if "%loctarget%"=="" if exist %targetbindir%\bin\%1 set loctarget=%targetbindir%\bin\%1
  8. @if "%loctarget%"=="" if exist %alttargetbindir%\%1 set loctarget=%alttargetbindir%\%1
  9. @if "%loctarget%"=="" @goto Error1
  10. @if exist ..\%targetos%\tokens\%2\%1 set loctoken=..\%targetos%\tokens\%2\%1
  11. @if "%loctoken%"=="" if exist ..\common\tokens\%2\%1 set loctoken=..\common\tokens\%2\%1
  12. @if "%loctoken%"=="" @goto Error2
  13. @md %targetdir% >NUL 2>&1
  14. bingen -n -l -f -i 9 1 -o %3 %4 -p %5 -r %loctarget% %loctoken% %targetdir%\%1
  15. @goto End
  16. :Error1
  17. @echo couldn't find %1 for %targetos%
  18. @goto End
  19. :Error2
  20. @echo couldn't find the token file for %1
  21. @goto End
  22. :End