home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1995 December / SOFM_Dec1995.bin / pc / os2 / vpascal / bin / bldtv.cmd < prev    next >
OS/2 REXX Batch file  |  1995-10-31  |  1KB  |  51 lines

  1. @ECHO OFF
  2. REM ***********************
  3. REM * Builds Turbo Vision *
  4. REM ***********************
  5.  
  6. IF "%1" == "/?" GOTO HELP
  7. IF "%1" == "-?" GOTO HELP
  8.  
  9. IF EXIST "\VP\SOURCE\TV\TV20.PAS" GOTO DRIVEOK
  10. ECHO **Error**  Change to the drive where VP is installed and run BLDTV again.
  11. GOTO EXIT
  12.  
  13. :DRIVEOK
  14. CD \VP\SOURCE\TV
  15. IF EXIST "DRIVERS.PAS" GOTO BUILD
  16. ECHO **Error**  You should apply TV4VP patch before running BLDTV.
  17. GOTO EXIT
  18.  
  19. :BUILD
  20. ECHO  Creating Turbo Vision DLL ...
  21. \VP\BIN\VPC TV20 /M /O\VP\UNITS /$SmartLink- /$Speed+ /$D+ %1 %2 %3 %4 %5 %6 %7 %8 %9
  22. IF ERRORLEVEL 1 GOTO ERROR
  23. SET LIB=\VP\LIB
  24. REM *** if you have LINK386 2.02.001+ you may use
  25. REM *** /NOSECTORALIGN to shrink DLL in size
  26. SET LINK386=/BAT /NOL /PM:NOVIO /A:4 /EXEPACK
  27. ECHO  Linking, please wait ...
  28. LINK386 @\VP\UNITS\TV20.LNK;
  29. IF ERRORLEVEL 1 GOTO ERROR
  30. \VP\BIN\IMPLIB \VP\LIB\TVISION.LIB \VP\SOURCE\TV\TV20.DEF
  31. IF ERRORLEVEL 1 GOTO ERROR
  32. COPY \VP\UNITS\TV20.DLL \VP\BIN > NUL
  33. DEL  \VP\UNITS\TV20.*
  34. CD \VP
  35. GOTO EXIT
  36.  
  37. :ERROR
  38. ECHO !!! ERROR !!!
  39. GOTO EXIT
  40.  
  41. :HELP
  42. ECHO Builds 32-bit Turbo Vision for OS/2. Generates DLL version of TV.
  43. ECHO Usage: BLDTV [VPC Options]
  44. ECHO Where:
  45. ECHO   VPC Options is the options to the command line compiler
  46. ECHO By default, BLDTV compiles all units to object files ($SmartLink-).
  47. ECHO It enables source level debugging for TV units. To enable smart
  48. ECHO linking, specify /$SmartLink+ as a parameter to BLDTV.
  49.  
  50. :EXIT
  51.