home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pcm45tkt.zip
/
v45upgrd.cmd
< prev
Wrap
OS/2 REXX Batch file
|
1999-10-25
|
5KB
|
80 lines
/*----------------------------------------------------------*/
/* V45UPGRD.CMD - Apply PCM Testkit V4.5 Upgrades after */
/* PCM V4.1 CDROM used for setup and install */
/* */
/* Parameters: NONE */
/* */
/* OS/2 environment variables for boot and testcase drives. */
/*----------------------------------------------------------*/
'@echo off'
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
arg parm.1 comments
'cls'
say ' '
say ' '
if left(parm.1,1) = '?' then signal INFO_PLEASE
os2drv = value('PCM_BOOTDRV',,'OS2ENVIRONMENT') /* get OS2 boot drive letter */
tstdrv = value('PCM_TESTDRV',,'OS2ENVIRONMENT') /* get testcase drive letter */
rellvl = value('PCM_RELLVL',,'OS2ENVIRONMENT') /* get OS2 release level */
if pos(os2drv,'CDEFGHIJKLMNOPQRSTUVWXYZ') = 0 then do
say '
***************************************************************
'
say '
* OS2 environment variable PCM_BOOTDRV not set. Run PCMSETUP *
'
say '
* to update config.sys, then shutdown & reboot to continue. *
'
say '
***************************************************************
'
exit
end
say '
**************************************************************
'
say '
* Preparing to apply PCM Testkit V4.5 Upgrade *
'
say '
* *
'
say '
* Continue, ONLY if PCM Testkit V4.1 CDROM was *
'
say '
* used for PCM setup and testcase installation. *
'
say '
* *
'
say '
* Press ENTER to continue, otherwise press CTRL-BREAK to end *
'
say '
**************************************************************
'
pause
say ''
say '
***********************************************
'
say '
* OS2 environment variable PCM_BOOTDRV is set *
'
say '
* UPDATING PCM Base/LAN testkit directories. *
'
say '
***********************************************
'
'xcopy a:\bootdrv\* 'os2drv':\ /s/e/v'
if pos(tstdrv,'CDEFGHIJKLMNOPQRSTUVWXYZ') = 0 then do
say '
******************************************************
'
say '
* OS2 environment variable PCM_TESTDRV not set. *
'
say '
* PCM Base Testcase drive updates NOT BEING APPLIED. *
'
say '
******************************************************
'
end
else do
say '
***************************************************
'
say '
* OS2 environment variable PCM_TESTDRV is set. *
'
say '
* UPDATING PCM Base testcase drive directories. *
'
say '
***************************************************
'
'xcopy a:\testdrv\* 'tstdrv':\ /s/e/v'
end
say '
**********************************************************
'
say '
* PCM Testkit V4.5 Upgrade has been applied. *
'
say '
* *
'
say '
* A reboot IS NOT NEEDED to continue with either testing *
'
say '
* or results processing. *
'
say '
**********************************************************
'
exit
INFO_PLEASE:
say '
╔══════════════════════════════════════════════════════════════════╗'
say '║ V45UPGRD.CMD - Apply PCM Testkit V4.5 BASE upgrades to system ║'
say '║ after V4.1 CDROM used to install BASE testcases. ║'
say '║ ║'
say '║ Parameters: NONE ║'
say '║ ║'
say '║ Uses OS/2 environment variables setup by PCMSETUP installation ║'
say '║ to determine the testcase drive and OS/2 boot drive for updates. ║'
say '╚══════════════════════════════════════════════════════════════════╝
'
exit