home *** CD-ROM | disk | FTP | other *** search
- @echo off
- @REM %Z% %I% %W% %G% %U% [%H% %T%]
-
- rem
- rem
- rem 10H9767, 10H9769 (C) COPYRIGHT International Bussiness Machine Corp. 1992, 1994
- rem
- 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
- rem Command script to rebuild default Interface Repository.
- rem
- rem
- SETLOCAL
- IF "%SOMBASE%"=="" GOTO sombase
- IF "%SC%"=="" GOTO somsc
-
- IF "%SOMDRIVE%"=="" GOTO body
- %SOMDRIVE%
-
- :body
-
- IF NOT EXIST %SOMBASE%\etc\som.ir goto normal
- echo.
- echo Rebuilding the default Win32 SOMobjects IR.
- echo This process will take between 5-8 minutes to
- echo complete depending on your system and install
- echo options. Please be patient - this process will not
- echo be run again unless you install some new SOM
- echo components and wish to update the default IR.
- echo.
-
- :normal
- echo Generating the default som.ir for Win32 SOMObject Toolkit:
- IF EXIST %SOMBASE%\etc\som.ir DEL %SOMBASE%\etc\som.ir
- SET SMADDSTAR=
- CD %SOMBASE%\include
- SET SOMIR=%SOMBASE%\etc\som.ir
- %SC% -%% -I%SOMBASE%\include -usir -mnolock *.idl
- IF ERRORLEVEL 0 GOTO end
-
- :error
- ECHO Could not build the IR due to an error.
- GOTO end
-
- :sombase
- ECHO SOMBASE should be set before running irbuild.
- GOTO end
-
- :somsc
- ECHO SC should be set before running irbuild.
- GOTO end
-
- :drive
- ECHO SOM is not installed on the current drive, please set SOMDRIVE.
-
- :end
- ENDLOCAL
-