home *** CD-ROM | disk | FTP | other *** search
- @echo off
-
- rem COMPONENT_NAME: somx
- rem
- rem ORIGINS: 27
- rem
- rem
- rem 10H9767, 10H9769 (C) COPYRIGHT International Business Machines Corp. 1992,1994
- rem All Rights Reserved
- rem Licensed Materials - Property of IBM
- rem US Government Users Restricted Rights - Use, duplication or
- rem disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
-
- rem Command script to convert to implict stars (like CORBA) for
- rem interface references.
-
- @REM %Z% %I% %W% %G% %U% [%H% %T%]
-
- rem SETLOCAL
- IF "%SOMBASE%"=="" GOTO sombase
- IF "%SC%"=="" GOTO somsc
-
- REM IF "%SOMDRIVE%"=="" GOTO body
- REM %SOMDRIVE%
-
- :body
- REM IF SMBINDINGS is already set, use it as the destination directory.
- if "%SMBINDINGS%"=="" goto else1
- set SOMDEST=%SMBINDINGS%
- goto endif1
- :else1
- set SOMDEST=%SOMBASE%\include
- :endif1
-
- REM On Windows 95, we can't use exist to test a directory
- REM That's why we need this work-around.
- @echo Looking for destination directory %SOMDEST%
- md %SOMDEST%
- @echo test > %SOMDEST%\somtmp.tmp
- if not exist %SOMDEST%\somtmp.tmp goto nodest
- del %SOMDEST%\somtmp.tmp
-
-
- IF NOT EXIST %SOMBASE%\include\som.hc GOTO drive
-
- IF NOT EXIST %SOMBASE%\include\somhh.gen goto normal
- echo.
- echo You chose to have the DTS C++ bindings generated in the SOMobjects
- echo package you last installed. This process will take
- echo between 5-30 minutes to complete depending on your system
- echo and install options. Please be patient - this process will not
- echo be run again unless you install some new SOM components.
- echo.
-
- :normal
- echo Generating the SOM DTS C++ Bindings:
- rem CD %SOMBASE%\include
- SET SMNOADDSTAR=
- %SC% -%% -shh -mnoqualifytypes -D_WIN32 -d %SOMDEST% %SOMBASE%\include\*.idl
- IF NOT ERRORLEVEL 0 GOTO end
- IF EXIST %SOMBASE%\include\somdtype.idl %SC% -shh -mnoqualifytypes -DEMIT_SOMDTYPES -D_WIN32 -d %SOMDEST% %SOMBASE%\include\somdtype.idl
- IF EXIST %SOMDEST%\somhh.gen DEL %SOMDEST%\somhh.gen
- echo somhh.bld > %SOMDEST%\somhh.bld
- GOTO end
-
- :sombase
- ECHO SOMBASE should be set before running somhh.
- GOTO end
-
- :somsc
- ECHO SC should be set before running somhh.
- GOTO end
-
- :drive
- rem ECHO SOM is not installed on the current drive, please set SOMDRIVE.
- echo Can't find *.idl files. Please check SOMBASE
- goto end
-
- :nodest
- ceho Can't create/find destination directory %SOMDEST%
-
-
- :end
- rem ENDLOCAL
-