home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / COMPILER / SAMPLE05 / BUILD.CMD next >
OS/2 REXX Batch file  |  1995-05-26  |  688b  |  28 lines

  1. /*REXX*/
  2.  
  3. /* Get the path of the VisualAge C++ installation */
  4. env='OS2ENVIRONMENT';               /* Default target directory */
  5. BasePath = VALUE('CPPWORK',,env);  /* on CPPWORK variable dir   */
  6. if BasePath="" then call Abort("Error: CPPWORK environment variable not set.");
  7.  
  8. /* Get project path name. CHANGE THIS FOR YOUR OWN PROJECT! */
  9. PrjName = "PROCESS_"
  10. PrjPath = '"'BasePath'\SAMPLES\PROJECTS\COMPILER\'PrjName'"'
  11.  
  12. /* Call IWFBUILD utility */
  13. iwfbuild '/Project 'PrjPath' /NoPrompt'
  14. SAY 'Build completed with rc='rc
  15. 'move dll\sample05.dll'
  16. call Done(rc);
  17.  
  18. Abort:
  19. parse arg abortMessage
  20. SAY abortMessage
  21. call Done(100)
  22.  
  23. Done:
  24. arg exitRc
  25. exit(exitRc)
  26.  
  27.  
  28.