From:	CSBVAX::MRGATE!@KL.SRI.Com:info-vax-request@kl.sri.com@SMTP 23-OCT-1987 12:45
To:	EVERHART
Subj:	VI in TPU part 14/14

Received: from ucbvax.Berkeley.EDU by KL.SRI.COM with TCP; Fri 23 Oct 87 04:44:18-PDT
Received: by ucbvax.Berkeley.EDU (5.58/1.27)
	id AA27977; Fri, 23 Oct 87 04:01:31 PDT
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 21 Oct 87 05:53:30 GMT
From: pbox!okstate!gregg@rutgers.edu  (Gregg Wonderly)
Organization: Oklahoma State Univ., Stillwater
Subject: VI in TPU part 14/14
Message-Id: <2726@okstate.UUCP>
References: gregg@nemo.math.okstate.edu
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

$ check=755981510
$ on error then goto oops
$ on severe_error then goto oops
$ on warning then goto oops
$ if f$search("VI.4") .nes. "" then goto assem
$       write sys$output -
    "I can't find VI.4, have you executed the command files to extract"
$       write sys$output "each part of the VI.TPU source?"
$       exit
$ ASSEM:
$ if f$search("SRC.DIR") .nes. "" then goto assem_1
$   write sys$output -
    "I can't find the [.SRC] directory, have you extracted the other portions"
$   write sys$output "of the distribution yet?
$   exit
$ ASSEM_1:
$ write sys$output "Assembling complete VI.TPU source file..."
$ write sys$output "$ COPY VI.4 [.SRC]VI.TPU"
$ copy VI.4 [.SRC]VI.TPU
$ write sys$output "$ APPEND VI.5 [.SRC]VI.TPU"
$ append VI.5 [.SRC]VI.TPU
$ write sys$output "$ APPEND VI.6 [.SRC]VI.TPU"
$ append VI.6 [.SRC]VI.TPU
$ write sys$output "$ APPEND VI.7 [.SRC]VI.TPU"
$ append VI.7 [.SRC]VI.TPU
$ write sys$output "$ APPEND VI.8 [.SRC]VI.TPU"
$ append VI.8 [.SRC]VI.TPU
$ write sys$output "$ APPEND VI.9 [.SRC]VI.TPU"
$ append VI.9 [.SRC]VI.TPU
$ write sys$output "$ APPEND VI.10 [.SRC]VI.TPU"
$ append VI.10 [.SRC]VI.TPU
$ write sys$output "$ APPEND VI.11 [.SRC]VI.TPU"
$ append VI.11 [.SRC]VI.TPU
$ write sys$output "$ SET DEFAULT [.SRC]"
$ set default [.SRC]
$ write sys$output "VI source file assembled... Checking"
$ checksum VI.TPU
$ if checksum$checksum .ne. check then goto bad_check
$ write sys$output "Checksum OK..."
$ COMPILE:
$ if f$search ("make.com") .nes. "" then goto domake
$   write sys$output -
    "I can't find [.SRC]make.com, perhaps you haven't extracted it yet?"
$   set def [-]
$   exit
$ DOMAKE:
$ write sys$output "$ @MAKE VI"
$ @make VI
$ type sys$input
$ write sys$output -
    f$fao("!/*** The VI TPU section file has been succesfully built ***!/") 
$ DEF = F$ENVIRONMENT ("DEFAULT")
$ TVI=="EDIT/TPU/SECTION=''DEF'VI.GBL"
$ WRITE SYS$OUTPUT "$ SET DEFAULT [-]"
$ SET DEF [-]
$ EXIT
$ bad_check:
$ write sys$output f$fao ("Checksum of file failed, it may be damaged!/")
$ write sys$output check," <> ",checksum$checksum
$ write sys$output -
    f$fao ("!/Proceeding with Compile, just in case it is not.!/")
$ goto compile
$ oops:
$  exit '$STATUS'
