home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pcm45tkt.zip / v45upgrd.cmd < prev   
OS/2 REXX Batch file  |  1999-10-25  |  5KB  |  80 lines

  1. /*----------------------------------------------------------*/
  2. /* V45UPGRD.CMD - Apply PCM Testkit V4.5 Upgrades after     */
  3. /*                PCM V4.1 CDROM used for setup and install */
  4. /*                                                          */
  5. /*    Parameters: NONE                                      */
  6. /*                                                          */
  7. /* OS/2 environment variables for boot and testcase drives. */
  8. /*----------------------------------------------------------*/
  9. '@echo off'
  10. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  11. call SysLoadFuncs
  12. arg parm.1 comments
  13. 'cls'
  14. say ' '
  15. say ' '
  16. if left(parm.1,1) = '?' then signal INFO_PLEASE
  17.  
  18. os2drv = value('PCM_BOOTDRV',,'OS2ENVIRONMENT') /* get OS2 boot drive letter */
  19. tstdrv = value('PCM_TESTDRV',,'OS2ENVIRONMENT') /* get testcase drive letter */
  20. rellvl = value('PCM_RELLVL',,'OS2ENVIRONMENT')  /* get OS2 release level     */
  21.  
  22. if pos(os2drv,'CDEFGHIJKLMNOPQRSTUVWXYZ') = 0 then do
  23. say ' ***************************************************************'
  24. say ' * OS2 environment variable PCM_BOOTDRV not set.  Run PCMSETUP *'
  25. say ' * to update config.sys, then shutdown & reboot to continue.   *'
  26. say ' ***************************************************************'
  27. exit
  28. end
  29.  
  30. say ' **************************************************************'
  31. say ' *      Preparing to apply PCM Testkit V4.5 Upgrade           *'
  32. say ' *                                                            *'
  33. say ' *        Continue, ONLY if PCM Testkit V4.1 CDROM was        *'
  34. say ' *       used for PCM setup and testcase installation.        *'
  35. say ' *                                                            *'
  36. say ' * Press ENTER to continue, otherwise press CTRL-BREAK to end *'
  37. say ' **************************************************************'
  38. pause
  39. say ''
  40. say ' ***********************************************'
  41. say ' * OS2 environment variable PCM_BOOTDRV is set *'
  42. say ' * UPDATING PCM Base/LAN testkit directories.  *'
  43. say ' ***********************************************'
  44. 'xcopy a:\bootdrv\*  'os2drv':\ /s/e/v'
  45.  
  46. if pos(tstdrv,'CDEFGHIJKLMNOPQRSTUVWXYZ') = 0 then do
  47.    say ' ******************************************************'
  48.    say ' * OS2 environment variable PCM_TESTDRV not set.      *'
  49.    say ' * PCM Base Testcase drive updates NOT BEING APPLIED. *'
  50.    say ' ******************************************************'
  51.    end
  52. else do
  53.    say ' ***************************************************'
  54.    say ' * OS2 environment variable PCM_TESTDRV is set.    *'
  55.    say ' * UPDATING PCM Base testcase drive directories.   *'
  56.    say ' ***************************************************'
  57.    'xcopy a:\testdrv\*  'tstdrv':\ /s/e/v'
  58.    end
  59.  
  60. say ' **********************************************************'
  61. say ' *       PCM Testkit V4.5 Upgrade has been applied.       *'
  62. say ' *                                                        *'
  63. say ' * A reboot IS NOT NEEDED to continue with either testing *'
  64. say ' *                 or results processing.                 *'
  65. say ' **********************************************************'
  66.  
  67. exit
  68.  
  69. INFO_PLEASE:
  70.   say '╔══════════════════════════════════════════════════════════════════╗'
  71.   say '║ V45UPGRD.CMD - Apply PCM Testkit V4.5 BASE upgrades to system    ║'
  72.   say '║                after V4.1 CDROM used to install BASE testcases.  ║'
  73.   say '║                                                                  ║'
  74.   say '║ Parameters: NONE                                                 ║'
  75.   say '║                                                                  ║'
  76.   say '║ Uses OS/2 environment variables setup by PCMSETUP installation   ║'
  77.   say '║ to determine the testcase drive and OS/2 boot drive for updates. ║'
  78.   say '╚══════════════════════════════════════════════════════════════════╝'
  79.   exit
  80.