home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / bin / somhh.bat < prev    next >
Encoding:
DOS Batch File  |  1996-02-19  |  2.4 KB  |  85 lines

  1. @echo off
  2.  
  3. rem COMPONENT_NAME: somx
  4. rem
  5. rem ORIGINS: 27
  6. rem
  7. rem
  8. rem 10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  9. rem All Rights Reserved
  10. rem Licensed Materials - Property of IBM
  11. rem US Government Users Restricted Rights - Use, duplication or
  12. rem disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  13.  
  14. rem Command script to convert to implict stars (like CORBA) for 
  15. rem interface references.
  16.  
  17. @REM %Z% %I% %W% %G% %U% [%H% %T%] 
  18.  
  19. rem SETLOCAL
  20. IF "%SOMBASE%"=="" GOTO sombase
  21. IF "%SC%"=="" GOTO somsc
  22.  
  23. REM IF "%SOMDRIVE%"=="" GOTO body
  24. REM %SOMDRIVE%
  25.  
  26. :body
  27. REM IF SMBINDINGS is already set, use it as the destination directory.
  28. if  "%SMBINDINGS%"=="" goto else1
  29.     set SOMDEST=%SMBINDINGS%
  30.     goto endif1
  31. :else1
  32. set SOMDEST=%SOMBASE%\include
  33. :endif1
  34.  
  35. REM On Windows 95, we can't use exist to test a directory
  36. REM That's why we need this work-around.
  37. @echo Looking for destination directory %SOMDEST%
  38. md %SOMDEST%
  39. @echo test > %SOMDEST%\somtmp.tmp
  40. if not exist %SOMDEST%\somtmp.tmp goto nodest
  41. del %SOMDEST%\somtmp.tmp
  42.  
  43.  
  44. IF NOT EXIST %SOMBASE%\include\som.hc GOTO drive
  45.  
  46. IF NOT EXIST %SOMBASE%\include\somhh.gen goto normal
  47. echo.
  48. echo You chose to have the DTS C++ bindings generated in the SOMobjects
  49. echo package you last installed.  This process will take 
  50. echo between 5-30 minutes to complete depending on your system
  51. echo and install options.  Please be patient - this process will not
  52. echo be run again unless you install some new SOM components.
  53. echo.
  54.  
  55. :normal
  56. echo Generating the SOM DTS C++ Bindings:
  57. rem CD %SOMBASE%\include
  58. SET SMNOADDSTAR=
  59. %SC% -%% -shh -mnoqualifytypes -D_WIN32 -d %SOMDEST% %SOMBASE%\include\*.idl
  60. IF NOT ERRORLEVEL 0 GOTO end
  61. IF EXIST %SOMBASE%\include\somdtype.idl %SC%  -shh -mnoqualifytypes -DEMIT_SOMDTYPES -D_WIN32 -d %SOMDEST% %SOMBASE%\include\somdtype.idl
  62. IF EXIST %SOMDEST%\somhh.gen DEL %SOMDEST%\somhh.gen
  63. echo somhh.bld > %SOMDEST%\somhh.bld
  64. GOTO end
  65.  
  66. :sombase
  67.     ECHO SOMBASE should be set before running somhh.
  68.     GOTO end
  69.  
  70. :somsc
  71.     ECHO SC should be set before running somhh.
  72.     GOTO end
  73.  
  74. :drive
  75. rem    ECHO SOM is not installed on the current drive, please set SOMDRIVE.
  76.     echo Can't find *.idl files. Please check SOMBASE
  77.     goto end
  78.  
  79. :nodest
  80.     ceho Can't create/find destination directory %SOMDEST%
  81.  
  82.  
  83. :end
  84. rem  ENDLOCAL
  85.