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.

35 lines
1.2 KiB

  1. @if "%_echo%"=="" echo off
  2. if "%BLDVARSET%" == "1" goto end
  3. for /f %%x in ('cd') do set SAPIROOT=%%x
  4. if exist bin if exist slm.ini goto validEnlistment
  5. @echo Invalid SLM enlistment, go to sapi project root and run setvars.bat
  6. set sapiROOT=
  7. goto end
  8. :validEnlistment
  9. @REM this comes from MSDEV (VC bin dir must be in path)
  10. if defined VCROOT if exist "%VCROOT%\bin\vcvars32.bat" call "%VCROOT%\bin\vcvars32.bat" %PROCESSOR_ARCHITECTURE%
  11. if not defined MSDevDir call vcvars32.bat %PROCESSOR_ARCHITECTURE%
  12. if defined MSDevDir goto VCVarsCalled
  13. @echo ERROR: COULD NOT LOCATE VCVARS32.BAT, SET VCROOT ENV VAR IF NOT IN PATH
  14. set sapiROOT=
  15. goto end
  16. :VCVarsCalled
  17. set BLDVARSET=1
  18. net time \\timesource /set /yes
  19. if "%PROCESSOR_ARCHITECTURE%"=="" set PROCESSOR_ARCHITECTURE=x86
  20. set path=%sapiroot%\bin\%PROCESSOR_ARCHITECTURE%;%sapiroot%\bin;%systemroot%\system32;%systemroot%;%path%
  21. REM set include=%sapiroot%\inc\api;%sapiroot%\inc;%sapiroot%\inc\win;%sapiroot%\inc\misc
  22. REM set lib=%sapiroot%\lib\%processor_architecture%
  23. set perl5lib=%sapiroot%\lib\perl;%sapiroot%\bin\%PROCESSOR_ARCHITECTURE%
  24. set BUILDNUM=0000
  25. set path=%PERL5LIB%;%PATH%
  26. if exist "%userprofile%\sapi5.alias" alias -f "%userprofile%\sapi5.alias"
  27. :end