home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / new / amigalibdisks / d1000 / polyfit / install_with_iconx < prev    next >
Text File  |  1994-04-03  |  2KB  |  59 lines

  1. ;install script for PolyFit. If you possess the Installer utility, use it
  2. ;and do not use this script!
  3.  
  4. version >NIL: exec.library 37
  5. if warn
  6.     echo "I'm sorry, but you will need at least Release 2 to run PolyFit."
  7.     quit
  8. endif
  9.  
  10. echo "If you have the Commodore Installer utility, please select the"
  11. echo "Install_PolyFit icon to install PolyFit."
  12. echo ""
  13. echo "Enter the directory where you want PolyFit installed to."
  14. echo "(A new directory will be created in this directory): " noline
  15. setenv >NIL: PFDest ?
  16.  
  17. if not exists $PFDest
  18.     echo Invalid Path: $PFDest
  19. else
  20.     ASK "Ok to install PolyFit to $PFDest?"
  21.     if warn
  22.         assign DEST: $PFDest
  23.  
  24.         echo Creating new directory.
  25.         makedir DEST:PolyFit
  26.         copy >NIL: /PolyFit.info DEST: clone
  27.  
  28.         echo Copying guide file...
  29.         copy >NIL: PolyFit.guide PolyFit.guide.info DEST:PolyFit clone
  30.  
  31.         echo Copying executables...
  32.         copy >NIL: PolyFit PolyFit.info DEST:PolyFit clone
  33.  
  34.         echo Copying example files...
  35.         copy >NIL: #?.pf #?.pf.info DEST:PolyFit clone
  36.  
  37.         if exists Locale:catalogs/nederlands
  38.             ask "Do you want to install the dutch catalog files?"
  39.             if warn
  40.                 echo Copying dutch catalog file...
  41.                 copy >NIL: locale/catalogs/nederlands/#? all Locale:catalogs/nederlands
  42.             endif
  43.         endif
  44.  
  45.         if exists Locale:catalogs/deutsch
  46.             ask "Do you want to install the german catalog files?"
  47.             if warn
  48.                 echo Copying german catalog file...
  49.                 copy >NIL: locale/catalogs/deutsch/#? all Locale:catalogs/deutsch
  50.             endif
  51.         endif
  52.  
  53.         assign DEST: remove
  54.         echo Installing complete. PolyFit can be found in $PFDest/PolyFit
  55.     else
  56.         echo Installing aborted.
  57.     endif
  58. endif
  59.