
; Script file to install reqtools/fonts/catalogs for use with TeleText

FailAt 20

Version >NIL: exec.library 37
If WARN
	Echo "*nYou need Kickstart 2.0 or higher to run TeleText."
	Skip END
EndIf

Echo "Checking reqtools.library..."
Version >NIL: LIBS:reqtools.library
If NOT ERROR
	Echo "Version of reqtools.library already installed:"
	Version LIBS:reqtools.library
	
EndIf

Echo ""

Ask "Install Kickstart 2.0 version of reqtools.library (38.1020) ?"
If NOT WARN
	Skip NoReq
EndIf

Echo ""

Copy Libs/ LIBS:
Echo "*nreqtools.library copied to your Libs: directory."

Lab NoReq

Echo ""

If Exists FONTS:Tele.font
Ask "TeleText-font already exists, overwrite ?"
If NOT WARN
  Skip NoFont
EndIf

Echo ""

Copy Fonts/ FONTS: All
Echo "*nTele.font copied to your Fonts: directory."

Lab NoFont

Echo ""

Echo "Answer No to the following question, if you do not have WB2.1+ or"
Echo "do not want TeleText to be localized."
Echo ""

Ask "Install catalogs for TeleText and ReqTools in your Locale: directory ?"
If NOT WARN
  Skip INSTALLED
EndIf

Copy Catalogs/ Locale:Catalogs/ All

Lab INSTALLED

Echo ""
Echo "Installation complete.*n"
Skip END

Lab ABORTED

Echo "*nInstallation aborted!*n"

Lab END

Wait 5
EndCLI >NIL:
