home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
opendc12.zip
/
od124os2.exe
/
od12ort1.exe
/
bin
/
reg1part.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-04-02
|
1KB
|
63 lines
@echo off
: REM--- @(#) 1.11 os2/src/tools/reg1part.cmd, odinstall, od96os2, odos29712d 11/12/96 11:02:18 [3/21/97 17:43:11] --REM
: OS/2 command file used to add an OpenDoc part to the Registry
if "%ODBASE%x" == "x" goto setODBASE
goto chkArgs
:----------
:setODBASE
:----------
echo The environment variable ODBASE has not been set.
echo Please ensure that all OpenDoc environment variables are properly set
echo before attempting to run reg1part.
goto cmdDone
:----------
:chkArgs
:----------
if "%1x" == "x" goto badArgs
goto runReg
:----------
:badArgs
:----------
echo Usage: reg1part Classname [IDLname, IDLname,...]
goto cmdDone
:----------
:runReg
:----------
set REGTOOL=odregprt
set SC=%SOMBASE%\bin\sc.exe
set CLASS=%1
if "%2x" == "x" goto defaultIDL
set IDLNAME=%2
goto runSC
:----------
:defaultIDL
:----------
set IDLNAME=%CLASS%
:-----
:runSC
:-----
echo %CLASS% in %IDLNAME% ...
%SC% -sir -u -mnolock -ESMINCLUDE="" -ESOMIR="%ODCFG%\od.ir" -p -c -I. -I%SOMBASE%\include -D_PLATFORM_OS2_ -I%ODBASE%\include -I%ODSRC%\include %IDLNAME%.idl
if "%3" == "" goto :runRG
set IDLNAME=%3
shift
goto runSC
:----------
:runRG
:----------
%REGTOOL% %CLASS%
:----------
:cmdDone
:----------
echo Done.