home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
opendc12.zip
/
od124os2.exe
/
od12ort1.exe
/
locale
/
en_us
/
oddesk.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-04-02
|
9KB
|
269 lines
:------------------------------------------------------------------
: ODDESK Message Catalog
:------------------------------------------------------------------
:
: A Note to the Translators:
:
: Translate only English text found on echo statements. All other
: text is considered commentary and is not displayed to the
: customer.
:------------------------------------------------------------------
:
: Message Jump Table
:
@if "%1" == "ODDESK_Start" goto %1
@if "%1" == "ODVARS_Check" goto %1
@if "%1" == "ODVARS_Found" goto %1
@if "%1" == "ODBASE_Check" goto %1
@if "%1" == "ODBASE_Found" goto %1
@if "%1" == "ODINST_Check" goto %1
@if "%1" == "ODINST_Found" goto %1
@if "%1" == "DIRS_Create" goto %1
@if "%1" == "DIRS_Complete" goto %1
@if "%1" == "PE_Install" goto %1
@if "%1" == "OLEPART_Install" goto %1
@if "%1" == "PKG_Install" goto %1
@if "%1" == "PKG_Warning" goto %1
@if "%1" == "LOTUS_Install" goto %1
@if "%1" == "LOTUS_Complete" goto %1
@if "%1" == "AbortNoEnv" goto %1
@if "%1" == "AbortNoBase" goto %1
@if "%1" == "AbortNoODInst" goto %1
@if "%1" == "AbortInvalidDir" goto %1
@if "%1" == "AbortNoCMGRCMD" goto %1
@if "%1" == "AbortReadOnly" goto %1
@if "%1" == "AbortOlePartFailed" goto %1
@if "%1" == "AbortODInstFailed" goto %1
@if "%1" == "ODDESK_Finish" goto %1
:
: else display the default message
:
@echo (%1) %2 %3 %4 %5 %6 %7 %8 %9
@goto end
:
:
:
:------------------------------------------------------------------
:ODDESK_Start
:------------------------------------------------------------------
@echo ###########################################
@echo # OpenDoc Desktop Reconstruction Facility #
@echo ###########################################
@echo.
@echo Please wait a few moments while I attempt to reconstruct the OpenDoc
@echo ODCFG and ODPARTS directories.
@echo.
@goto end
:
:
:
:------------------------------------------------------------------
:ODVARS_Check
:------------------------------------------------------------------
@echo o Checking for OD environment variables...
@goto end
:
:
:
:------------------------------------------------------------------
:ODVARS_Found
:------------------------------------------------------------------
@echo OpenDoc environment variables have been found.
@goto end
:
:
:
:------------------------------------------------------------------
:ODBASE_Check
:------------------------------------------------------------------
@echo o Checking for the ODBASE directory...
@goto end
:
:
:
:------------------------------------------------------------------
:ODBASE_Found
:------------------------------------------------------------------
@echo The ODBASE directory has been found.
@goto end
:
:
:
:------------------------------------------------------------------
:ODINST_Check
:------------------------------------------------------------------
@echo o Checking for the the ODINST command...
@goto end
:
:
:
:------------------------------------------------------------------
:ODINST_Found
:------------------------------------------------------------------
@echo The ODINST command has been found.
@goto end
:
:
:
:------------------------------------------------------------------
:DIRS_Create
:------------------------------------------------------------------
@echo o Creating ODCFG and ODPARTS directories...
@goto end
:
:
:
:------------------------------------------------------------------
:DIRS_Complete
:------------------------------------------------------------------
@echo ODCFG and ODPARTS directories have been created.
@goto end
:
:
:
:------------------------------------------------------------------
:PE_Install
:------------------------------------------------------------------
@echo o Installing part editors. This will take a few moments...
@goto end
:
:
:
:------------------------------------------------------------------
:OLEPART_Install
:------------------------------------------------------------------
@echo ...Registering OlePart
@goto end
:
:
:
:------------------------------------------------------------------
:PKG_Install
:------------------------------------------------------------------
@echo ...Installing %PKG%.
@goto end
:
:
:
:------------------------------------------------------------------
:PKG_Warning
:------------------------------------------------------------------
@echo * Warning! Part editor package %PKG% was not found.
@goto end
:
:
:
:------------------------------------------------------------------
:LOTUS_Install
:------------------------------------------------------------------
@echo o Registering Lotus Script component...
@goto end
:
:
:
:------------------------------------------------------------------
:LOTUS_Complete
:------------------------------------------------------------------
@echo The Lotus Script component has been registered.
@goto end
:
:
:
:------------------------------------------------------------------
:AbortNoEnv
:------------------------------------------------------------------
@echo * Error! Missing OpenDoc and SOM environment variables.
@echo.
@echo * The environment variables ODBASE, ODCFG, ODPARTS, SOMBASE, NLSPATH,
@echo * and LANG must be set before running this command. Please make sure
@echo * all are set properly and try again.
@goto end
:
:
:
:------------------------------------------------------------------
:AbortNoBase
:------------------------------------------------------------------
@echo * Error! The directory pointed to by ODBASE does not exist.
@echo.
@echo * Please make sure the environment variable ODBASE points to
@echo * the directory where OpenDoc is installed and try again.
@goto end
:
:
:
:------------------------------------------------------------------
:AbortNOODInst
:------------------------------------------------------------------
@echo * Error! Cannot find the part editor installation tool (odinst.exe).
@echo.
@echo * This file should be located in the ODBASE/bin directory but is
@echo * not. Please correct this problem and try again.
@goto end
:
:
:
:------------------------------------------------------------------
:AbortInvalidDir
:------------------------------------------------------------------
@echo * Error! Cannot create directory "%DIR%".
@echo.
@echo * The path may already exist as a file or the drive may not be
@echo * writeable. Please correct this problem and try again.
@goto end
:
:
:
:------------------------------------------------------------------
:AbortNoCMGRCMD
:------------------------------------------------------------------
@echo * Error! Cannot find the Lotus script registration command,
@echo * "%ODBASE%\bin\cmgrcmd.exe". Please correct this problem and
@echo * try again.
@goto end
:
:
:
:------------------------------------------------------------------
:AbortReadOnly
:------------------------------------------------------------------
@echo * Error! Directory "%DIR%" must be writable. It currently
@echo * has the Readonly attribute set. Please correct this problem
@echo * and try again.
@goto end
:
:
:
:------------------------------------------------------------------
:AbortOlePartFailed
:------------------------------------------------------------------
@echo * Error! The installation of OlePart failed. Please ensure the
@echo * value of the SOMIR environment variable is correct and try again.
@goto end
:
:
:
:------------------------------------------------------------------
:AbortODInstFailed
:------------------------------------------------------------------
@echo * Error! The installation of part editor %PKG%
@echo * failed due to an unknown error.
@goto end
:
:
:
:------------------------------------------------------------------
:ODDESK_Finish
:------------------------------------------------------------------
@echo.
@echo ###########################################
@echo # OpenDoc Desktop Reconstruction Facility #
@echo # Finished #
@echo ###########################################
@echo.
@goto end
:
:
:
:end