#!/ibin/vtcl

# VTCL: script to let the user know they're dumb as a post

proc okCB {cbs } {
 VtClose
 exit 0
}

set progTitle "Unsupported OS Version $argv"
set appRoot [VtOpen BadOSVersion]
set mainForm [VtMessageDialog $appRoot.BadOSVersion \
  -title $progTitle -ok -okCallback okCB -message "\n\
  The package you are installing:                                 \n\
\n\
     Supplemental Graphics, Web and X11 Libraries (GWXLIBS)       \n\
\n\
  is not supported on this release of SCO OpenServer. Only SCO    \n\
  OpenServer Releases 5.0.5, 5.0.6 and 5.0.7 are supported. You   \n\
  may be able to successfully install and run this package on     \n\
  SCO OpenServer Release 5.0.4, but this is not supported by SCO  \n\
  in any way.                                                     \n\
\n\
  Please refer to the Release Notes for more details.\n" \
  ]

VtShow $mainForm
VtMainLoop
