home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / som30tk.zip / som30os2.zip / bin / somxh.cmd < prev    next >
OS/2 REXX Batch file  |  1996-12-24  |  1KB  |  44 lines

  1. @echo off
  2. @rem @(#) somc/somxh.cmd 2.18 1/9/96 16:44:04 [12/24/96 07:38:07]
  3.  
  4. @rem COMPONENT_NAME: some
  5. @rem
  6. @rem ORIGINS: 27
  7. @rem
  8. @rem
  9. @rem 25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1994,1996
  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 -mnochk -sxh *.idl
  30. IF NOT ERRORLEVEL 0 GOTO end
  31. echo somxh.bld > somxh.bld
  32. IF EXIST somdtype.idl SC -mnochk -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.