Google
 

Trailing-Edge - PDP-10 Archives - BB-H580C-SB_1981 - libary.ctl
There are 11 other files named libary.ctl in the archive. Click here to see a list.
!LIBARY.CTL	VERSION 12B
!
!USED TO MAKE LIBARY.EXE FROM LIBARY SOURCE FILES
!THIS FILE RUNS ON EITHER TOPS-20 OR TOPS-10
!SUBMIT WITH COMMAND	SUBMIT LIBARY
!
!THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY ONLY BE USED
!  OR COPIED IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE.
!
!COPYRIGHT (C) 1979, 1981 BY DIGITAL EQUIPMENT CORPORATION
!
!SHOULD BE RUN AFTER COBOL.CTL AND LIBOL.CTL
!OR MAKE SURE THE CORRECT .UNV FILES ARE ON DSK:
!
!INSTALLATION SPECIFIC ASSIGNMENTS SHOULD BE PUT IN THE FOLLOWING FILE:
! ON TOPS-20 IN A TAKE FILE COBOL.CMD
! ON TOPS-10 IN A MIC  FILE COBOL.MIC
!	  OR IN A TECO FILE COBOL.TEC
!NOTE, IN GENERAL THIS CONTROL FILE WILL NOT RUN WITHOUT ONE OF THE ABOVE
!DEFINITION FILES BEING PRESENT.
!
!IF LISTINGS ARE DESIRED, THE EMPTY FILE
!LISTEM.MAC SHOULD BE IN DSK:
!
!TEST FOR WHICH SYSTEM
@GOTO TOPS20	!TOPS20 VERSION
.GOTO TOPS10	!TOPS10 VERSION
TOPS20::
!REQUIRED FILES:
!<FIELD-IMAGE>	CREF.EXE
!		LINK.EXE
!		MACRO.EXE
!		HELPER.REL
!
!<NEW>		PA1050.EXE
!
!<SELF>	LIBARY.CTL
!	LIBARY.MAC
!	LIBARY.HLP
!
!OUTPUT: LIBARY.EXE
!
!OUTPUT LISTINGS: LIBARY.LOG
!
@ERROR
@TAKE COBOL.CMD
@IF (ERROR) !IGNORE IT
!
!MAKE A RECORD OF WHAT IS BEING USED.
@GET SYS:PA1050
@INFO VERSION
@GET SYS:MACRO
@INFO VERSION
@GET SYS:LINK
@INFO VERSION
@GET SYS:CREF
@INFO VERSION
!
@VD SYS:PA1050.EXE,SYS:MACRO.EXE,SYS:LINK.EXE,SYS:CREF.EXE,SYS:HELPER.REL,
@CHECK SEQ
@
!
@VD LIBARY.*,
@CHECK SEQ
@
!
!ASSEMBLE SOURCES
!
@ERROR %
@TYPE LISTEM.MAC
@IF (ERROR) @GOTO NOLIS1
@ERROR
!
!HERE FOR CREF LISTINGS
!
@MACRO
*LIBARY,LIBARY/C=LIBARY
@IF (ERROR) @GOTO TRUBLE
@CREF
*DSK:LIBARY.LZT=LIBARY
@IF (ERROR) @PLEASE TROUBLE CREATING LIBARY.LZT
@GOTO DONCRF
!
!
!HERE FOR NO CREF LISTINGS
!
NOLIS1::
@ERROR
!
@MACRO
*LIBARY=LIBARY
@IF (ERROR) @GOTO TRUBLE
!
DONCRF::
!CREATE LIBARY.EXE
@LINK
*LIBARY.MAP/MAP=LIBARY,SYS:HELPER/SYMSEG:HIGH/GO
@IF (ERROR) @GOTO TRUBLE
@SAVE LIBARY 0 677
@IF (ERROR) @GOTO TRUBLE
!
!SEE WHAT WE GOT:
@VD LIBARY.EXE,
@CHECK SEQ
@
@IF (ERROR) @ !IGNORE ANY ERRORS.
!
!TELL OPERATOR HOW WE DID
@PLEASE -- LIBARY CREATION SUCCESSFUL
@DELETE LIBARY.REL
@EXP
@MODIFY BATCH */DEPEND:-1
@GOTO OK
TRUBLE::@PLEASE -- LIBARY CREATION NOT SUCCESSFUL!!!
@GOTO OK
TOPS10::
!
!REQUIRED FILES:
!SYS:		COMPIL.EXE
!		CREF.EXE
!		DIRECT.EXE
!		LINK.EXE + LNK???.EXE
!		MACRO.EXE
!		PIP.EXE
!
!REL:		HELPER.REL
!
![SELF]	LIBARY.CTL
!	LIBARY.HLP
!	LIBARY.MAC
!
!OUTPUT:
!	LIBARY.EXE
!	LIBARY.LOG
!	LIBARY.MAP
!
.ERROR
.SET WATCH VERSION
!SET UP THE DEFAULT LOGICAL NAMES
!
.DO COBOL.MIC
.IF (ERROR) !IGNORE IT
!
!SEE WHAT WE ARE USING
.R DIRECT
*TTY:=/CHECKSUM/WIDTH:90 SYS:PIP.EXE,MACRO.EXE,LINK.EXE,LNK???.EXE,DIRECT.EXE,COMPIL.EXE,CREF.EXE,REL:HELPER.REL
.IF (ERROR) . !IGNORE ANY ERRORS.
.R DIRECT
*TTY:=/CHECKSUM/WIDTH:90 CS:LIBARY.*
.IF (ERROR) . !IGNORE ANY ERRORS.
!ASSEMBLE THE SOURCES:
.TYPE LISTEM.MAC
.IF (ERROR) .GOTO NOLIS1
!
!HERE FOR CREF LISTINGS
.R MACRO
*LIBARY,LIBARY/C=LIBARY
!
.R CREF
*DSK:LIBARY.LZT=LIBARY
!
.GOTO DONCRF
!
NOLIS1::
.ERROR
.R MACRO
*LIBARY=LIBARY
.IF (ERROR) .GOTO TRUBLE
!
DONCRF::
!
!CREATE LIBARY.EXE
!
.R LINK
*LIBARY.MAP/MAP=LIBARY,REL:HELPER /GO
.IF (ERROR) .GOTO TRUBLE
.SSAVE DSK:LIBARY
.IF (ERROR) .GOTO TRUBLE
!
!SEE WHAT WE GOT:
.R DIRECT
*TTY:=/CHECKSUM/WIDTH:90 LIBARY.*
.IF (ERROR) . !IGNORE ANY ERRORS.
.DELETE LIBARY.REL
!
!TELL OPERATOR HOW WE DID:
.PLEASE - LIBARY CREATION SUCCESSFUL
!
!WE CANNOT MIX GALAXY 2 AND GALAXY 4.1
!SO
.DEAS SYS
.IF (ERROR) !
!
.SUB INP:*=/MODIFY/DEPEND:-1
.GOTO OK
TRUBLE:.PLEASE - LIBARY CREATION NOT SUCCESSFUL
OK::!END OF LIBARY.CTL