#!/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 MissingMP1]
set mainForm [VtMessageDialog $appRoot.MissingMP1 \
  -title $progTitle -ok -okCallback okCB -message "\n\
  The package you are installing:                                   \n\
\n\
  $pkgname \n\
\n\
  requires that you first install SCO OpenServer Release 5.0.7      \n\
  Maintenance Pack 1, or, if available, any later version. This     \n\
  installation will now stop.                                       \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 the old version   \n\
  of this package.                                                  \n\
\n\
  Please refer to the Release Notes for more details.\n" \
  ]

VtShow $mainForm
VtMainLoop
