-
Notifications
You must be signed in to change notification settings - Fork 0
/
pat61.ctl
107 lines (107 loc) · 3.32 KB
/
pat61.ctl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
;
; PAT61.CTL - Autopatches PA1050 for version 6.1 of TOPS-20
;
; This control file applies Software House's PA1050 patches to
;DEC's Autopatched PA1050 (PAT.MAC) using Autopatch utilities and then
;loads PA1050. The following logical names are assumed: PAT:, DIS:,
;BAK:, INS:, and ASL: (see the Autopatch documentation for a
;description of these logical names).
;
; Three files should be restored from the 1022 tape: Software
;House's baseline file (PAT61.MBS which is DEC's original .MAC file
;before Software House's changes), Software House's modified file
;(PAT61.MAC), and the comparison file (PAT61.COR which was generated
;using COMPAR). These should be restored to PAT:.
;
; The basic procedure for patching is in three steps:
;
; A) Use the COMPAR program to compare PAT61.MBS vs. DIS:PAT.MAC
; (the Autopatched PAT) to produce a PAT.APC comparison file.
;
; B) Use the MERGE program to combine the PAT.APC file just created
; with the PAT61.COR comparison file provided on the tape. This
; produces the PAT.COR comparision file.
;
; C) Use the UPDATE program to make the sources changes (in
; PAT.COR) to the baseline file (PAT61.MBS) to produce the new
; source file (PAT.MAC).
;
;
; +--------------+ .------. +--------------+
; | DIS:PAT.MAC |-->( COMPAR )<--|PAT:PAT61.MBS |
; +--------------+ "------" +--------------+
; | |
; V |
; +--------------+ .-----. +--------------+ |
; |PAT:PAT61.COR |-->( MERGE )<--| PAT:PAT.APC | |
; +--------------+ "-----" +--------------+ |
; | |
; V |
; +--------------+ .------. |
; | PAT:PAT.COR |-->( UPDATE )<--------+
; +--------------+ "------"
; |
; V
; +--------------+
; | PAT:PAT.MAC |
; +--------------+
;
;
;
; The following files are needed from the 1022 distribution tape
;(restore to PAT:)
; PAT61.MAC ;6.1 source with 1022 changes
; PAT61.COR ;6.1 comparsion of 1022 changes
; PAT61.MBS ;6.1 source before 1022 changes
;
; Already Autopatched files:
; DIS:PAT.MAC
;
@ENABLE
;
; Define logical names for patching
@DEFINE DSK: DSK:,PAT:
@PEP
*
*STATUS UTIL
*EXIT
@DEFINE DSK: DSK:,ASL:
;
; Connect to PAT: for doing work
@CONN PAT:
;
; Step A
@RUN ASL:COMPAR
*PAT:PAT.APC=PAT:PAT61.MBS,DIS:PAT.MAC
;*PAT:PAT61.COR=PAT:PAT61.MBS,PAT:PAT61.MAC/NAME:"SH"/NUMBER
*/EXIT
;
; Step B
@RUN ASL:MERGE
*PAT:PAT.COR=PAT:PAT.APC,PAT:PAT61.COR
*/EXIT
;
; Step C
@RUN ASL:UPDATE
*PAT:PAT.MAC=PAT:PAT61.MBS,PAT:PAT.COR
*/EXIT
;
; Compile the new updated PAT.MAC
@RUN ASL:MACRO
*PAT=PAT.MAC
;
; Build PA1050
@RUN ASL:LINK
*PAT/GO
@START
@SAVE PAT
@GET PAT
@START
*MAKEPF^[G^[
;
; Install PA1050
@COPY INS:PA1050.EXE BAK:PA1050.EXE
@RENAME PAT:PA1050.EXE INS:PA1050.EXE
%ERR::
@LOGOUT