#!/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 appRoot [VtOpen Missing646]
set mainForm [VtMessageDialog $appRoot.Missing646 \
  -title $progTitle -ok -okCallback okCB -message "\n\
  The package you are installing:                                   \n\
\n\
     Supplemental Graphics, Web and X11 Libraries (GWXLIBS)         \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. This will only happen if you had a previous     \n\
  version of this package installed. You should cancel this         \n\
  installation when prompted. Failure to do so will remove the old  \n\
  version of this package.                                          \n\
\n\
  Please refer to the Release Notes for more details.\n" \
  ]

VtShow $mainForm
VtMainLoop
