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

  1. @echo off
  2. @rem @(#) somc/somxh.cmd 2.14 9/27/95 09:25:12 [7/30/96 14:44:12]
  3.  
  4. @rem COMPONENT_NAME: some
  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 convert to implict stars (like CORBA) for
  16. @rem interface references.
  17.  
  18. SETLOCAL
  19. IF "%SOMBASE%"=="" GOTO sombase
  20.  
  21. IF "%1"=="" GOTO body
  22. %1
  23.  
  24. :body
  25. echo Generating the SOM C++ Bindings:
  26. CD %SOMBASE%\include
  27. IF NOT EXIST som.hc GOTO drive:
  28. SET SMNOADDSTAR=
  29. SC -%% -S150000 -sxh *.idl
  30. IF NOT ERRORLEVEL 0 GOTO end
  31. echo somxh.bld > somxh.bld
  32. IF EXIST somdtype.idl SC -sxh -DEMIT_SOMDTYPES somdtype.idl
  33. GOTO end
  34.  
  35. :sombase
  36.     ECHO SOMBASE should be set before running somxh.
  37.     GOTO end
  38.  
  39. :drive
  40.     ECHO SOM is not installed on the current drive, please specify it.
  41.  
  42. :end
  43.     ENDLOCAL
  44.