#!/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 InMP3]
set mainForm [VtMessageDialog $appRoot.InMP2 \
  -title $progTitle -ok -okCallback okCB -message "\n\
  The package you are installing:                                   \n\
\n\
     Supplemental Graphics, Web and X11 Libraries (GWXLIBS)         \n\
\n\
  is included in SCO OpenServer Release 5.0.7 Maintenance Pack 3.   \n\
  This Maintenance Pack is required for GWXLIBS to operate          \n\
  corectly, and when you install it, you will get this version of   \n\
  GWXLIBS along with it. Therefore, this installation will now      \n\
  stop, and you should download and install Maintenance Pack 3.     \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
