Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: IBD3KENV

IBD3KENV.m

Go to the documentation of this file.
  1. IBD3KENV ;ALB/MLI - AICS 3.0 Environment Checker ; 4 OCT 1996
  1. ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
  1. EN ;entry point
  1. W !,"AICS 3.0 Installation Requirements:",!
  1. D ENV ; check environment
  1. D PATCH ; check patches
  1. D BLDCHK ; check build entries
  1. W:$D(XPDABORT) !!,">>> Environment check failed. Installation will not be allowed."
  1. W:'$D(XPDABORT) !!,">>> Environment is Ok"
  1. Q
  1. ;
  1. ;
  1. ENV ; check enviroment for KIDS/programmer variables
  1. W !,">>> Checking Environment:"
  1. I $G(XPDABORT) W !," Can not proceed. XPDABORT is inappropriately defined."
  1. I +$G(DUZ)'>0!($G(DUZ(0))'="@")!($G(U)'="^")!('$D(DT)) D
  1. . S XPDABORT=2
  1. . W !,"You must first initialize Programmer Environment by running ^XUP",!
  1. I '$G(XPDABORT) W !," Environment checks OK"
  1. Q
  1. ;
  1. ;
  1. PATCH ;check for required patches
  1. N LINE,OK,PATCH
  1. W !!,">>> Checking PACKAGE File Entries:"
  1. F LINE=1:1 S PATCH=$P($T(LIST+LINE),";;",2) Q:(PATCH="QUIT") D
  1. . W !," Checking for required patch ",PATCH,"..."
  1. . S OK=$$PATCH^XPDUTL(PATCH)
  1. . I 'OK S XPDABORT=2 W "not found!!"
  1. . I OK W "OK"
  1. Q
  1. ;
  1. BLDCHK ;check build file entries
  1. W !,">>> Checking BUILD File Entries:"
  1. F IBX=1:1 S IBPATCH=$P($P($T(BUILD+IBX),";;",2),U,1) Q:'$L(IBPATCH) D
  1. .W !,?5,IBPATCH
  1. .IF '$D(^XPD(9.6,"B",IBPATCH)) D
  1. ..N IBPKG,IBVER
  1. ..S IBPKG=$P($P($T(BUILD+IBX),";;",2),U,2)
  1. ..S IBVER=$P($P($T(BUILD+IBX),";;",2),U,3)
  1. ..IF $$VERSION^XPDUTL(IBPKG)'=IBVER D
  1. ...S XPDABORT=2
  1. ...W !,"Missing Required Package File Entry (Package/Patch): ",IBPATCH
  1. ..ELSE D
  1. ...W " ...Ok - in Package File"
  1. .ELSE D
  1. ..W " ...Ok"
  1. LIST ;
  1. ;;XU*8.0*2
  1. ;;XU*8.0*15
  1. ;;XU*8.0*16
  1. ;;XU*8.0*28
  1. ;;XU*8.0*32
  1. ;;XU*8.0*44
  1. ;;QUIT
  1. BUILD ;
  1. ;;PCE V1.0^PX^1.0