.;.MODULE SRCKIT.COM V05,07, .GoTo Build .CopyRi: .Data #2 ! .Data #2 ! THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY ONLY BE USED .Data #2 ! OR COPIED IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE. .Data #2 ! .Data #2 ! COPYRIGHT 1989, 1992 BY DIGITAL EQUIPMENT CORPORATION .Data #2 ! ALL RIGHTS RESERVED .Data #2 ! .Return .; To use: .; $Set Kmon Ind .; @SRCKIT device[ dir][ test][backup] .; .; device is the distribution device the command file is to be built for. .; .; dir if present generates kit maps .; If dir is present it is used as the device on which to write the kit maps .; .; If test is specified as NO, no testing is done. .; If test is present and specified as YES, another output device TST is also .; required. TST is initialized and loaded with the contents of all the .; logical disks created on KIT. TST is compared with a known good source kit .; which is assigned to STD to "automatically" detect missing files (from KIT .; device overflows). The SRC.DIF file should be examined to determine any .; failures. .; If test is present then KIT must be an output device large enough to .; hold the source kit in the form of n logical disks each the size of the .; specified kit media. (For instance: for the RK05 kit, KIT would have to .; be big enough to hold 4 logical disks each 4800 blocks in size.) .; .; If backup is present, BUP rather than PIP will be used to generate the .; kit. Further the source kit will be organized using savesets equivalent .; to the logical disks in the LD style kit. If backup is selected, the .; logical device name TMP must point to a device available to hold the .; largest logical disk. .FilChk: .TestFile 'CkFile' .If = 1 .Return ; ok, found it .If <> 230 .GoTo UnkErr ; odd error ;?SRCKIT-F-File not found DK:'CkFile' .Exit .UnkErr:;?SRCKIT-F-Testfile DK:'CkFile' gave unexpected error code - '' .Exit .UnkTyp:;?SRCKIT-F-Media type specified not supported - 'KitDev' .Exit .BadVol:;?SRCKIT-F-Not able to find 'VolNam' record in 'SrcVol' .Exit .NoTest:;?SRCKIT-F-MT is "sizeless", so the TEST option is illogical; .Exit .NoCnt:;?SRCKIT-F-Missing file count on 'VolNam' .Exit .Build: .Disable Octal .Enable Escape .SetS SrcVol "SRCVOL.DAT" ; file with source volume map .SetS SrcFil "SRCKIT.DAT" ; file with source file map .SetS TmpFil "TMP.TMP" ; temp file used if backup specified .SetS LDOwn "RT-11 Source" ; Owner field for LD files .; VOLID is file[.DSK] name for LD .SetS Name "$$ERROR$$" ; bad VolID for checking .SetS BacRew "/Rewind" ; start with rewinding .SetN CtCMax 20 ; number of copies between ^Cs .SetF NoQues ; assume interactive operation .SetF DoDir ; assume no kit maps .SetF DoBup ; assume not doing BUP savesets .SetF DoLogi ; assume not building logical kits .SetF DoTest ; assume not testing .SetS CkFile SrcVol ; is volume definition file avail.? .GoSub FilChk ; no return on error .SetS CkFile SrcFil ; is the file definition file avail.? .GoSub FilChk ; no return on error .If P4 <> "" .SetT DoBup ; non-blank fourth arg means do BUP .If P4 <> "" .SetS P1 "LD" ; force kit type to LD .If P3 <> "" .SetT DoLogi ; non-blank third arg means do logical .If P2 <> "" .SetT DoDir ; non-blank second arg means kitmaps .If P1 = "" .GoTo 5$ ; no kit type specified .Disable LowerCase .SetS TempS P3 ; assign uppercased P3 to TempS .SetS P2 P2 ; assigned uppercased P2 to P2 .SetS KitDev P1 ; assign uppercased P1 to KitDev .Enable LowerCase .If TempS = "YES" .SetT DoTest .SetT NoQues ; else ask no questions .5$: .IfT NoQues .GoTo 30$ ; Type for help .10$: .Disable LowerCase .AskS KitDev What media is to be used for the kit? .Enable LowerCase .IfF .GoTo 30$ ; help not requested .20$:; The possible media are: .;ADD LD MT RC25 RL02 RX50 MU ____ ; LD MT RC25 RL02 RX50 MU .GoTo 10$ .30$: .IfT NoQues .GoTo 40$ .Ask DoDir Do you want kit maps .IfF DoDir .GoTo 40$ .AskS P2 Device name for kitmaps to go to? .40$: .SetF KitMT ; assume not Magtape .SetF KitLD ; assume not Logical disk .SetS TempS "" ; assume no match .; SetT KitSiz .If KitDev = "LD" .SetS TempS "KitLD -1" .If KitDev = "MT" .SetS TempS "KitMT -1" .If KitDev = "RC25" .SetS TempS "Kit1VL 50902" .If KitDev = "RL02" .SetS TempS "Kit1VL 20480" .If KitDev = "RX50" .SetS TempS "KitMVL 800" .If KitDev = "MU" .SetS TempS "KitMT -1" .;ADD .If KitDev = "____" .SetS TempS "Kit___" .If TempS = "" .GoTo 20$ ; no match .Parse TempS " " Flag KitSiz .SetS VolNam "$'KitDev'" ; volume record in SRCVOL.DAT .SetS TempS "'KitDev'S.COM" ; use kitname+S as file name .SetT 'Flag' ; set Kit___ true .IfT DoBup .SetT DoLogi .IfT DoBup .SetS MouDev "Tmp" .IfF DoBup .SetS MouDev "Kit" .IfT DoLogi .SetS TempS "'KitDev'SL.COM" .IfF DoTest .GoTo NoTst1 .IfT KitMT .GoTo NoTest .SetS TempS "'KitDev'SX.COM" .NoTst1: .Open #2 'TempS' .GoSub CopyRi ; include copyright statement .Data #2 ! 'TempS' command file used to build source kits .Data #2 ! Created on '' at '