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

  1. @echo off
  2. @rem @(#) somc/somstars.cmd 2.15 9/27/95 09:25:15 [7/30/96 14:44:17]
  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 Shell script to convert to explicit stars for interface references.
  16.  
  17. SETLOCAL
  18. IF "%SOMBASE%"=="" GOTO sombase
  19.  
  20. IF "%1"=="" GOTO body
  21. %1
  22.  
  23. :body
  24. echo Generating the SOM C Bindings:
  25. echo (Warning, these bindings are not CORBA-compliant)
  26. CD %SOMBASE%\include
  27. IF NOT EXIST som.hc GOTO drive:
  28. ATTRIB -R som.h
  29. ATTRIB -R gen_c.efw
  30. ATTRIB -R gen_emit.efw
  31. ATTRIB -R gen_make.efw
  32. ATTRIB -R gen_mk32.efw
  33. COPY som.hs       som.h > NUL
  34. COPY gen_c.efs    gen_c.efw  > NUL
  35. COPY gen_emit.efs gen_emit.efw  > NUL
  36. COPY gen_make.efs gen_make.efw  > NUL
  37. COPY gen_mk32.efs gen_mk32.efw > NUL
  38. IF EXIST somcorba.bld DEL somcorba.bld
  39. SET SMNOADDSTAR=
  40. SC -%% -S150000 -maddstar -sh *.idl
  41. IF NOT ERRORLEVEL 0 GOTO end
  42. echo somstars.bld > somstars.bld
  43. IF EXIST somdtype.idl SC -maddstar -sh -DEMIT_SOMDTYPES somdtype.idl
  44. GOTO end
  45.  
  46. :sombase
  47.     ECHO SOMBASE should be set before running somstars.
  48.     GOTO end
  49.  
  50. :drive
  51.     ECHO SOM is not installed on the current drive, please specify it.
  52.  
  53. :end
  54.     ENDLOCAL
  55.