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.

35 lines
1.3 KiB

  1. @setlocal
  2. @if "%6"=="win9x" (@set targetdir=binaries.x86\win9x\localized\multi) else (@set targetdir=binaries.x86\localized\multi)
  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. @rem if NOT exist %targetdir%\%1 @copy %loctarget% %targetdir%\%1 > NUL 2>&1
  15. @if "%2"=="brz" @copy %loctarget% %targetdir%\%1 > NUL 2>&1
  16. bingen -n -l -f -i 9 1 -o %3 %4 -p %5 -a %targetdir%\%1 %loctoken% %targetdir%\loc.tmp
  17. @copy %targetdir%\loc.tmp %targetdir%\%1 > NUL 2>&1
  18. @del %targetdir%\loc.tmp > NUL 2>&1
  19. @goto End
  20. :Error1
  21. @echo couldn't find %1 for %targetos%
  22. @goto End
  23. :Error2
  24. @echo couldn't find the token file for %1
  25. @goto End
  26. :End