home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 30 fixes_v / 30-fixes_v.zip / bppatchr.zip / install.bat next >
DOS Batch File  |  1993-10-27  |  1KB  |  47 lines

  1. rem Batch file to install patches and
  2. rem RTL files for using Borland Pascal
  3. rem to compile OS/2 1.x executables.
  4.  
  5. rem Compile patch program
  6.  
  7. bpc patchbp.pas
  8.  
  9. rem Call batch file to perform patch.
  10. rem If you have a \bp\bin\bp.rez file, then
  11. rem change newpatch.bat to patch.bat below.
  12.  
  13. call newpatch.bat
  14.  
  15. rem Copy newly patched file to \bp\bin
  16. rem add a line to copy bp.rez to \bp\bin
  17. rem if you used patch.bat instead of 
  18. rem newpatch.bat above.
  19.  
  20. copy bpcos2.exe \bp\bin
  21. copy bpos2.exe \bp\bin
  22.  
  23. rem Install RTL files
  24.  
  25. copy os2rtl\os2.tpl \bp\bin
  26. copy os2rtl\sys\system.tpw \bp\units\system.tpo
  27.  
  28. rem Compile units for use with OS/2 programs.
  29.  
  30. bpcos2 -CO -T\bp\bin compatib.pas
  31. bpcos2 -CO -T\bp\bin dos.pas
  32. bpcos2 -CO -T\bp\bin crt.pas
  33.  
  34. rem Install OS/2 units in \bp\units.
  35.  
  36. copy compatib.tpo \bp\units
  37. copy dos.tpo \bp\units
  38. copy crt.tpo \bp\units
  39.  
  40. rem Cleanup
  41. del *.exe
  42. del *.tpo
  43.  
  44. rem Save runtime source (delete if you don't want runtime source)
  45. xcopy os2rtl \bp\os2rtl /s /e
  46.  
  47.