home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / lxlt121s.zip / lxLite_src / make.cmd < prev    next >
OS/2 REXX Batch file  |  1997-05-09  |  2KB  |  69 lines

  1. @echo off
  2.  
  3. set vpbase=d:\vp
  4. set vpcopt=/$P+ /$S- /$Speed- /$I- /$AlignCode- /$AlignData- /ucommon;%vpbase%\units;%vpbase%\source\rtl /i%vpbase%\source\rtl /l%vpbase%\lib /oout /m
  5. set rcopt=-r -n -i %vpbase%\source\rtl
  6.  
  7. if .%_4ver%. == .. goto okay
  8. echo This batch file is best viewed with CMD.EXE :-)
  9. cmd /c %0
  10. exit
  11.  
  12. :okay
  13. mkdir out 1>nul 2>nul
  14.  
  15. rem ************* first, compile resources ***************
  16.  
  17. if exist sysIcons.res goto skip1
  18. rc %rcopt% sysIcons.rc
  19. if errorlevel == 1 goto Error
  20. :skip1
  21.  
  22. if exist lxlite.res goto skip2
  23. rc %rcopt% lxLite.rc
  24. if errorlevel == 1 goto Error
  25. :skip2
  26.  
  27. if exist os2api.res goto skip3
  28. rc %rcopt% os2api.rc
  29. if errorlevel == 1 goto Error
  30. :skip3
  31.  
  32. if exist out\lxlite.exe goto skip4
  33. vpc %vpcopt% lxLite.pas
  34. if errorlevel == 1 goto Error
  35. :skip4
  36.  
  37. if exist out\chCase.exe goto skip5
  38. vpc %vpcopt% chCase.pas
  39. if errorlevel == 1 goto Error
  40. :skip5
  41.  
  42. if exist out\noEA.exe goto skip6
  43. vpc %vpcopt% noEA.pas
  44. if errorlevel == 1 goto Error
  45. :skip6
  46.  
  47. if exist out\sysIcons.exe goto skip7
  48. vpc %vpcopt% sysIcons.pas
  49. if errorlevel == 1 goto Error
  50. :skip7
  51.  
  52. if exist out\unLock.exe goto skip8
  53. vpc %vpcopt% unLock.pas
  54. if errorlevel == 1 goto Error
  55. :skip8
  56.  
  57. copy out\lxLite.exe    ..\lxLite\    1>nul
  58. copy out\chCase.exe    ..\lxLite\    1>nul
  59. copy out\noEA.exe    ..\lxLite\    1>nul
  60. copy out\sysIcons.exe    ..\lxLite\    1>nul
  61. copy out\unLock.exe    ..\lxLite\    1>nul
  62.  
  63. echo Well done. Now change to ..\ directory and run m_lxLite.cmd
  64.  
  65. exit
  66.  
  67. :Error
  68. echo Project not completed
  69.