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

  1. @echo off
  2. @REM %Z% %I% %W% %G% %U% [%H% %T%] 
  3.  
  4. rem
  5. rem
  6. rem 10H9767, 10H9769 (C) COPYRIGHT International Bussiness Machine Corp. 1992, 1994
  7. rem 
  8. rem All Rights Reserved
  9. rem Licensed Materials - Property of IBM
  10. rem US Government Users Restricted Rights - Use, duplication or
  11. rem disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. rem
  13. rem Command script to rebuild default Interface Repository.
  14. rem 
  15. rem
  16. SETLOCAL
  17. IF "%SOMBASE%"=="" GOTO sombase
  18. IF "%SC%"=="" GOTO somsc
  19.  
  20. IF "%SOMDRIVE%"=="" GOTO body
  21. %SOMDRIVE%
  22.  
  23. :body
  24.  
  25. IF NOT EXIST %SOMBASE%\etc\som.ir goto normal
  26. echo.
  27. echo Rebuilding the default Win32 SOMobjects IR.
  28. echo This process will take between 5-8 minutes to 
  29. echo complete depending on your system and install 
  30. echo options.  Please be patient - this process will not
  31. echo be run again unless you install some new SOM
  32. echo components and wish to update the default IR.
  33. echo.
  34.  
  35. :normal
  36. echo Generating the default som.ir for Win32 SOMObject Toolkit:
  37. IF EXIST %SOMBASE%\etc\som.ir DEL %SOMBASE%\etc\som.ir
  38. SET SMADDSTAR=
  39. CD %SOMBASE%\include
  40. SET SOMIR=%SOMBASE%\etc\som.ir
  41. %SC% -%% -I%SOMBASE%\include -usir -mnolock *.idl
  42. IF ERRORLEVEL 0 GOTO end
  43.  
  44. :error
  45.     ECHO Could not build the IR due to an error.
  46.         GOTO end
  47.  
  48. :sombase
  49.     ECHO SOMBASE should be set before running irbuild.
  50.     GOTO end
  51.  
  52. :somsc
  53.     ECHO SC should be set before running irbuild.
  54.     GOTO end
  55.  
  56. :drive
  57.     ECHO SOM is not installed on the current drive, please set SOMDRIVE.
  58.  
  59. :end
  60. ENDLOCAL
  61.