home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 4.ddi / BATSRC.ZIP / VARS.BAT < prev   
Encoding:
DOS Batch File  |  1992-06-10  |  914 b   |  40 lines

  1. @echo off
  2. rem     VARS.BAT
  3. rem
  4. rem     sets environment variables for library build process
  5. rem
  6. rem     any variable that has already been assigned a value will
  7. rem     not be reassigned
  8. rem
  9. rem     settings:
  10. rem
  11. rem     TC      bcc
  12. rem     TASM    tasm
  13. rem     MODEL   s c m l h
  14. rem     TLIB    tlib /0
  15. rem     LOGFILE ..\log\crtl.log
  16.  
  17. if not "%TC%"=="" goto skip1
  18. set TC=bcc
  19. :skip1
  20. if not "%TASM%"=="" goto skip2
  21. set TASM=tasm
  22. :skip2
  23. if not "%MODEL%"=="" goto skip3
  24. set MODEL=s c m l h
  25. :skip3
  26. if not "%TLIB%"=="" goto skip4
  27. set TLIB=tlib /0
  28. :skip4
  29. if not "%LOGFILE%"=="" goto checkenv
  30. echo LOGFILE environment variable not set.  Setting it to ..\log\crtl.log
  31. set LOGFILE=..\log\crtl.log
  32. :checkenv
  33. set TESTENV=test
  34. if not "%TESTENV%"=="test" goto error
  35. goto exit
  36. :error
  37. echo Environment full.  Try adding /E:2048 to SHELL line of CONFIG.SYS, then reboot.
  38. :exit
  39. set TESTENV=
  40.