home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / setenv.bat < prev   
Encoding:
DOS Batch File  |  1995-07-11  |  900 b   |  44 lines

  1. @echo off
  2. if "%1" == "" goto usage
  3.  
  4. if "%2" == "" goto setwin32
  5. if exist "%2\vcvars32.bat" call %2\vcvars32
  6.  
  7. :setwin32
  8. set Path=%1\bin;%path%
  9. set Lib=%1\lib;%1\mssetup\lib;%lib%
  10. set Include=%1\include;%1\mssetup\include;%include%
  11. set Mstools=%1
  12.  
  13. if "%PROCESSOR_ARCHITECTURE%" == "MIPS" goto Mips
  14. if "%PROCESSOR_ARCHITECTURE%" == "ALPHA" goto Alpha
  15. if "%PROCESSOR_ARCHITECTURE%" == "PPC" goto Ppc
  16. set Cpu=i386
  17. goto end
  18.  
  19. :Mips
  20. set Cpu=MIPS
  21.  
  22. goto end
  23.  
  24. :Alpha
  25. set Cpu=ALPHA
  26.  
  27. goto end
  28.  
  29. :Ppc
  30. set Cpu=PPC
  31.  
  32. goto end
  33.  
  34. :usage
  35. echo.
  36. echo Usage: SETENV SDK [MSVC20BIN]
  37. echo Where: SDK specifies where the toolkit was installed 
  38. echo        MSVC20BIN optionally specifies the BINs of the MSVC directory
  39. echo Example: SETENV C:\MSTOOLS sets the environment relative to C:\MSTOOLS
  40. echo          SETENV C:\MSTOOLS C:\MSVC20\BIN sets Win32 and MSVC environments
  41. echo.
  42.  
  43. :end
  44.