home *** CD-ROM | disk | FTP | other *** search
/ ftp.robelle3000.ai 2014 / 2014.06.ftp.robelle3000.ai.tar / ftp.robelle3000.ai / faq / install.suprjob.robelle < prev    next >
Text File  |  1999-05-16  |  3KB  |  136 lines

  1. !job install,mgr.robelle,pub;outclass=lp,3
  2. !comment
  3. !comment  setup:    03 May90 by David Greer
  4. !comment  revised:  28 Feb96 by Neil Armstrong
  5. !comment  revised:  10 May99 by Paul : recode renames accross groups.
  6. !comment
  7. !comment  purpose:  This job stream installs the latest prodution
  8. !comment            version of SUPRTOOL into the PUB group.
  9. !comment            This job also installs Suprlink, Speed
  10. !comment            Demon and Stexport.
  11. !comment
  12. !comment  note:  This job stream will fail if anyone is using SUPRTOOL
  13. !comment         at installation time.
  14. !
  15. !setjcw false = 0
  16. !setjcw true  = 1
  17. !
  18. !comment
  19. !comment
  20. !comment  Step 1:  verify that Suprtool exists, with a valid hpsusan.
  21. !comment
  22. !
  23. !run suprcm.pub,trial
  24. !
  25. !comment
  26. !comment  Step 2:  Determine whether we are on MPE XL.
  27. !comment
  28. !setjcw cierror = 0
  29. !continue
  30. !setvar robelletempflag "MPE XL " + "only"
  31. !if cierror=0 then
  32. !   continue
  33. !   deletevar robelletempflag
  34. !   setjcw mpexlflag = true
  35. !else
  36. !   setjcw mpexlflag = false
  37. !endif
  38. !comment
  39. !comment  Step 3:  Make sure none of the major programs are
  40. !comment           allocated.
  41. !comment
  42. !continue
  43. !deallocate suprtool.pub
  44. !continue
  45. !deallocate suprlink.pub
  46. !continue
  47. !deallocate demon.pub
  48. !continue
  49. !deallocate stexport.pub
  50. !comment
  51. !comment  Step 4:  purge all files from the pubold group.
  52. !comment
  53. !purge demon.pubold
  54. !purge suprlink.pubold
  55. !purge stexport.pubold
  56. !purge suprtool.pubold
  57. !comment
  58. !comment  Step 5:  Verify that no one is running the production
  59. !comment           versions of our programs.
  60. !comment
  61. !setjcw cierror = 0
  62. !continue
  63. !listf suprtool.pub;$null
  64. !if cierror = 0 then
  65. !   rename suprtool.pub ,suprtool.pub
  66. !endif
  67. !setjcw cierror = 0
  68. !continue
  69. !listf suprlink.pub;$null
  70. !if cierror = 0 then
  71. !   rename suprlink.pub ,suprlink.pub
  72. !endif
  73. !setjcw cierror = 0
  74. !continue
  75. !listf stexport.pub;$null
  76. !if cierror = 0 then
  77. !   rename stexport.pub ,stexport.pub
  78. !endif
  79. !setjcw cierror = 0
  80. !continue
  81. !listf demon.pub;$null
  82. !if cierror = 0 then
  83. !   rename demon.pub ,demon.pub
  84. !endif
  85. !setjcw cierror = 0
  86. !continue
  87. !comment
  88. !comment  Step 6:  move files from the pub group to the
  89. !comment           pubold group.
  90. !comment
  91. !if mpexlflag = true then
  92. !   continue
  93. !   copy   demon.pub       ,demon.pubold
  94. !   continue
  95. !   copy   suprlink.pub    ,suprlink.pubold
  96. !   continue
  97. !   copy   stexport.pub    ,stexport.pubold
  98. !   continue
  99. !   copy   suprtool.pub    ,suprtool.pubold
  100. !else
  101. !   continue
  102. !   fcopy from= demon.pub     ;to=demon.pubold    ;new
  103. !   continue
  104. !   fcopy from= suprlink.pub  ;to=suprlink.pubold ;new
  105. !   continue
  106. !   fcopy from= stexport.pub  ;to=stexport.pubold ;new
  107. !   continue
  108. !   fcopy from= suprtool.pub  ;to=suprtool.pubold ;new
  109. !endif
  110. !continue
  111. !purge  demon.pub
  112. !continue
  113. !purge  suprlink.pub
  114. !continue
  115. !purge  stexport.pub
  116. !continue
  117. !purge  suprtool.pub
  118. !comment
  119. !comment  Step 7:  Rename compatibility-mode or native-mode versions
  120. !comment           of our programs as the production version.
  121. !comment
  122. !if mpexlflag = true then
  123. !   rename suprnm.pub   ,suprtool.pub
  124. !   rename linknm.pub   ,suprlink.pub
  125. !   rename demonnm.pub  ,demon.pub
  126. !   rename stexpnm.pub  ,stexport.pub
  127. !else
  128. !   rename suprcm.pub  ,suprtool.pub
  129. !   rename linkcm.pub  ,suprlink.pub
  130. !   rename demoncm.pub ,demon.pub
  131. !   rename stexpcm.pub ,stexport.pub
  132. !endif
  133. !
  134. !tell mgr.robelle;Install has installed a new version of SUPRTOOL!
  135. !eoj
  136.