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

  1. @ECHO OFF
  2. REM *************************************
  3. REM * Compiles and links PM application *
  4. REM *************************************
  5.  
  6. IF "%1" == "/?" GOTO HELP
  7. IF "%1" == "-?" GOTO HELP
  8. IF "%1" == "" GOTO HELP
  9.  
  10. SET LINK386=/BAT /NOL /PM:PM /BASE:0x10000 /A:4 /EXEPACK
  11. SET LIB=%VPLIB%
  12. VPC %1.PAS %2 %3 %4 %5 %6 %7 %8 %9
  13. IF ERRORLEVEL 1 GOTO EXIT
  14. LINK386 @%VPOUT%\%1.LNK;
  15. IF ERRORLEVEL 1 GOTO EXIT
  16. IF NOT EXIST %1.RC GOTO BINDONLY
  17. RC -r %1.RC %VPOUT%\%1.RES
  18. IF ERRORLEVEL 1 GOTO EXIT
  19.  
  20. :BINDONLY
  21. IF NOT EXIST %VPOUT%\%1.RES GOTO EXIT
  22. RC %VPOUT%\%1.RES %VPOUT%\%1.EXE
  23. GOTO EXIT
  24.  
  25. :HELP
  26. ECHO Compiles and links PM application. Invokes VPC, LINK386 and RC.
  27. ECHO Usage: VPPM PrgName [Options]
  28. ECHO Where:
  29. ECHO   PrgName    Name of the program file without path and extension
  30. ECHO   Options    One or several valid VPC command line switches
  31.  
  32. :EXIT
  33.