;
; SetupFReq version 3.1
; Copyright 1991-1992 by Roy van der Woning
; All rights reserved.
;
; This script copies the necessary files to their designated directories
;

echo "*E[33m*E[3mFReq version 3.1 *E[31minstallation procedure*E[0m"
echo "*NCopying *E[33mFReq*E[31m, *E[33mConfigFReq*E[31m, *E[33mFCNLPatch*E[31m, *E[33mFCFGPatch*E[31m and *E[33mTwit*E[31m to your *E[33mC:*E[31m directory."
copy >NIL: C/#? C:

echo "*NCopying *E[33mFReq.CFG*E[31m to your *E[33mS:*E[31m directory."
copy S/FReq.CFG S:

if not exists REXX:
   echo "*NYou do not have a *E[33mREXX:*E[31m directory."
   ask "Should I create *E[33mSYS:Rexx/*E[31m for you and assign *E[33mREXX:*E[31m to it? "
   if WARN
      echo "Creating the *E[33mSYS:Rexx/*E[31m directory."
      makedir SYS:Rexx
      echo "Assigning *E[33mREXX:*E[31m to the *E[33mSYS:Rexx/*E[31m directory."
      assign REXX: SYS:Rexx
   else
      echo "Could not copy *E[33mExtract.rexx*E[31m to the *E[33mREXX:*E[31m directory."
      echo "You should do this manually."
   endif
else
   echo "*NCopying *E[33mExtract.rexx*E[31m to your *E[33mREXX:*E[31m directory."
   copy Rexx/Extract.rexx REXX:
endif

echo "*NAll files are installed in their designated directories."
echo "FReq version 3.1 is ready to use!*N"
