.;.MODULE BINKIT.COM V05,20, .;.V20 - allows MS1 (1-tape MS: boot) builds .GoTo Build .CopyRi: .Data #2 ! .Data #2 ! Copyright (c) 1998 by Mentec, Inc., Nashua, NH. .Data #2 ! All rights reserved .Data #2 ! .Data #2 ! This software is furnished under a license for use only on a .Data #2 ! single computer system and may be copied only with the .Data #2 ! inclusion of the above copyright notice. This software, or .Data #2 ! any other copies thereof, may not be provided or otherwise .Data #2 ! made available to any other person except for use on such .Data #2 ! system and to one who agrees to these license terms. Title .Data #2 ! to and ownership of the software shall at all times remain .Data #2 ! in Mentec, Inc. .Data #2 ! .Data #2 ! The information in this document is subject to change without .Data #2 ! notice and should not be construed as a commitment by Digital .Data #2 ! Equipment Corporation, or Mentec, Inc. .Data #2 ! .Data #2 ! Digital and Mentec assume no responsibility for the use or .Data #2 ! reliability of its software on equipment which is not supplied .Data #2 ! by Digital or Mentec, and listed in the Software Product .Data #2 ! Description. .Data #2 ! .Return .; To use: .; Set Kmon Ind .; @BINKIT device[ dir][ test] .; .; 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 present logical disks are created for the kit devices rather .; than directly on "real" disks. These logical disks are created on the .; KIT: device. If test is specified as NO, no testing will be performed. .; .; If test is specified as YES, another two devices must be specified, .; STD: which is a single volume "standard" against which the contents .; of the binary kit is to be tested, and TST: a scratch volume which .; will be used to contain all the the files in a the logical disks. .; Sorted directories of STD and TST will be taken and these two files .; will be compared with the differences appearing in BIN.DIF on DK:. .FilChk: .TestFile 'CkFile' .If = 1 .Return ; ok, found it .If <> 230 .GoTo UnkErr ; odd error ;?BINKIT-F-File not found DK:'CkFile' .Exit .UnkErr:;?BINKIT-F-Testfile DK:'CkFile' gave unexpected error code - '' .Exit .UnkTyp:;?BINKIT-F-Media type specified not supported - 'KitDev' .Exit .BadVol:;?BINKIT-F-Not able to find 'VolNam' record in 'BinVol' .Exit .Build: .Disable Octal .Enable Escape .SetS BinVol "BINVOL.DAT" ; file with binary volume map .SetS BinFil "BINKIT.DAT" ; file with binary file map .SetN CtCMax 20 ; number of copies between ^Cs .SetF NoQues ; assume interactive operation .SetF DoTest ; assume no testing .SetF DoLogi ; assume no logical disks .SetF DoDir ; assume no kit maps .SeTF MagTap ; Assume not building magtape kit .SetS CkFile BinVol ; is volume definition file avail.? .GoSub FilChk ; no return on error .SetS CkFile BinFil ; is the file definition file avail.? .GoSub FilChk ; no return on error .If P3 <> "" .SetT DoLogi ; non-blank third arg means logical .If P2 <> "" .SetT DoDir ; non-blank second arg means kitmaps .If P1 = "" .GoTo 5$ ; no kit type specified .Disable LowerCase .SetS KitDev P1 ; assign uppercased P1 to KitDev .SetS TempS P3 ; assign uppercased P3 to TempS .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 RX01 RX02 RX50 RL01 RL02 RK05 MT MS MU RC25 MS1 ___ ; RX01 RX02 RX50 RL01 RL02 RK05 MT MS MU RC25 MS1 .IfT NoQues .GoTo UnkTyp .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 KITMU ; Assume not TK50 .SetF Kit1VL ; assume not single volume .SetF KitMVL ; assume not multi volume .SetS TempS "" ; assume no match .; FOpt "" format with no option .; FOpt "~" no formatting .; FOpt "/___" format with option .; SetT SetS SetS SetS .; Flag KitVol VolSiz FOpt .If KitDev = "MT" .SetS TempS "KitMT VolMT -1 ~" .If KitDev = "MS" .SetS TempS "KitMT VolMT -1 ~" .If KitDev = "MS1" .SetS TempS "KitMT VolMU -1 ~" .If KitDev = "RC25" .SetS TempS "Kit1VL Vol1VL 50902 ~" .If KitDev = "RL01" .SetS TempS "Kit1VL Vol1VL 10240 ~" .If KitDev = "RL02" .SetS TempS "Kit1VL Vol1VL 20480 ~" .If KitDev = "RX01" .SetS TempS "KitMVL VolRX1 494 /Sin" .If KitDev = "RX02" .SetS TempS "KitMVL VolRX2 988 " .If KitDev = "RX50" .SetS TempS "KitMVL VolRX5 800 ~" .If KitDev = "MU" .SetS TempS "Kit1VL VolMU -1 ~" .If KitDev = "RK05" .SetS TempS "KitMVL VolRK5 4800 " .;ADD .If KitDev = "____" .SetS TempS "Kit___ Vol___ vol_size formatting" .If TempS = "" .GoTo 20$ ; no match .SetS SegOpt "" .If KitDev = "RX01" .Or .If KitDev = "RX02" .SetS SegOpt "/Seg:1" .If KitDev = "RX50" .SetS SegOpt "/Seg:1" .If KitDev = "MU" .Or .If KitDev = "MT" .SetT MagTap .If KitDev = "MS" .Or .If KitDev = "MS1" .SetT MagTap .Parse TempS " " Flag KitVol VolSiz FOpt .SetS VolNam "$'KitDev'" ; volume record in BINVOL.DAT .SetS TempS "'KitDev'B.COM" ; assume use kitname+B .IfT DoLogi .SetS TempS "'KitDev'BL.COM" ; use kitname+BL .IfT DoTest .SetS TempS "'KitDev'BX.COM" ; use kitname+BX .SetT 'Flag' ; set Kit___ true .Open #2 'TempS' .GoSub CopyRi ; include copyright statement .Data #2 ! 'TempS' command file used to build binary kits .Data #2 ! Created on '' at '