home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / bin / somhh.cmd < prev    next >
OS/2 REXX Batch file  |  1998-04-02  |  1KB  |  43 lines

  1. @echo off
  2. @rem @(#) /58 1.3 8/1/95 18:22:41 [10/1/95 15:22:26]
  3.  
  4. @rem COMPONENT_NAME: somc
  5. @rem
  6. @rem ORIGINS: 27
  7. @rem
  8. @rem
  9. @rem 10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  10. @rem All Rights Reserved
  11. @rem Licensed Materials - Property of IBM
  12. @rem US Government Users Restricted Rights - Use, duplication or
  13. @rem disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  14.  
  15. @rem Command script to run the hh emitter on all idl files in the include directory.
  16.  
  17. SETLOCAL
  18. IF "%SOMBASE%"=="" GOTO sombase
  19.  
  20. IF "%1"=="" GOTO body
  21. %1
  22.  
  23. :body
  24. echo Generating the SOM DTS C++ Usage Bindings:
  25. CD %SOMBASE%\include
  26. IF NOT EXIST som.hc GOTO drive:
  27. SET SMNOADDSTAR=
  28. SC -%% -S100000 -shh -mnoqualifytypes -musexhpass *.idl
  29. IF NOT ERRORLEVEL 0 GOTO end
  30. echo somhh.bld > somhh.bld
  31. IF EXIST somdtype.idl SC -shh -DEMIT_SOMDTYPES -mnoqualifytypes -musexhpass somdtype.idl
  32. GOTO end
  33.  
  34. :sombase
  35.     ECHO SOMBASE should be set before running somhh.
  36.     GOTO end
  37.  
  38. :drive
  39.     ECHO SOM is not installed on the current drive, please specify it.
  40.  
  41. :end
  42.     ENDLOCAL
  43.