home *** CD-ROM | disk | FTP | other *** search
/ Datatid 1999 #6 / Datatid_1999-06.iso / internet / Tango352Promo / P.SQL / PTKPKG.1 / BUILD.BAT < prev    next >
Encoding:
DOS Batch File  |  1996-12-19  |  928 b   |  39 lines

  1. @echo off
  2. :: Batch file to build the COBOL simple samples
  3. :: Run with one parameter - the compiler to use (Realia or MicroFocus)
  4. :: Example for MicroFocus COBOL:
  5. ::      build microfocus
  6. ::
  7. :: You MUST have the appropriate environment variables set for the compiler
  8. ::
  9.  
  10. if %1$ == $ goto usage
  11. if %1$ == realia$ goto realia
  12. if %1$ == REALIA$ goto realia
  13. if %1$ == Realia$ goto realia
  14. if %1$ == microfocus$ goto microfocus
  15. if %1$ == MICROFOCUS$ goto microfocus
  16. if %1$ == Microfocus$ goto microfocus
  17. goto usage
  18.  
  19. :realia
  20. realcob realsamp;
  21. if errorlevel 1 goto err
  22. link /nopackcode realsamp+sqlreal4,,,realdos;
  23. if errorlevel 1 goto err
  24. goto out
  25.  
  26. :microfocus
  27. cobol mfsamp.cob;
  28. if errorlevel 1 goto err
  29. link mfsamp+sqlcob,,,lcobol+cobapi/nod;
  30. if errorlevel 1 goto err
  31. goto out
  32.  
  33. :usage
  34. echo USAGE:  build realia  OR  build microfocus
  35. goto out
  36.  
  37. :err
  38. echo An error occured during compilation ...
  39. :out