#!/ibin/vtcl

# VTCL: script to let the user know they're missing patches

proc okCB {cbs } {
 VtClose
 exit 0
}

set progTitle "Missing Pre-requisite Patch"
set pkgname [join $argv]
set appRoot [VtOpen Missing646]
set mainForm [VtMessageDialog $appRoot.Missing646 \
  -title $progTitle -ok -okCallback okCB -message "\n\
  The package you are installing:                                   \n\
\n\
  $pkgname \n\
\n\
  requires that you first install the Execution Environment Update  \n\
  (OSS646), version OSS646B or later. Please check the SCO website  \n\
  for this and other patches for your system. You should install    \n\
  the latest version of OSS646 available for your operating system  \n\
  version.                                                          \n\
\n\
  Due to a bug in the software manager, this installation may       \n\
  abort with an error message that asks you if you want to cancel   \n\
  the installation.  Failure to do so will remove any old version   \n\
  of this package.                                                  \n\
\n\
  Please refer to the Release Notes for more details.\n" \
  ]

VtShow $mainForm
VtMainLoop
