home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d8xx / d808 / kingfisher.lha / KingFisher / Install < prev    next >
Text File  |  1993-01-24  |  3KB  |  120 lines

  1. .Key ""
  2. set src "KingFisher.lha"
  3.  
  4. echo "KingFisher Installation Script"
  5. echo "Copyright 1992 Udo Schuermann"
  6. echo "(Heavily modified by Fred Fish)"
  7. echo ""
  8.  
  9. echo "This script will unpack the KingFisher.lha archive and do an"
  10. echo "installation to either a directory on your hard drive or a"
  11. echo "couple of floppies."
  12. echo ""
  13.  
  14. failat 20
  15. version >NIL: exec.library 37
  16. if warn
  17.    echo "AmigaDOS 1.x Installation"
  18.    skip ADOS13
  19. else
  20.    version >NIL: exec.library 38
  21.    if warn
  22.       echo "AmigaDOS 2.x Installation"
  23.    else
  24.       echo "AmigaDOS 3.x Installation"
  25.    endif
  26.    skip ADOS20
  27. endif
  28.  
  29.  
  30. ;***************************************************************************
  31. ; AmigaDOS 1.3 Installation starts here
  32. LAB ADOS13
  33. ; the 2.0 version will do fine under 1.3, too
  34. skip ADOS20
  35. skip EXIT
  36.  
  37.  
  38.  
  39. ;***************************************************************************
  40. ; AmigaDOS 2.0+ Installation starts here
  41. LAB ADOS20
  42. ask "Are you installing KingFisher to a hard disk volume? (y/n)"
  43. if warn
  44.    ; Hard disk installation
  45.    echo ""
  46.    echo "Hard disk volume installation to directory sys:KingFisher"
  47.    echo ""
  48.    ask "Continue? (y/n)"
  49.    if not warn
  50.       echo ""
  51.       echo "Installation cancelled."
  52.       skip EXIT
  53.    endif
  54.    set dst "sys:KingFisher"
  55.    if not EXISTS $dst
  56.        makedir $dst
  57.    endif
  58.    :c/lha -mraxe x KingFisher.lha $dst/
  59.    copy $dst/KingFisher.hd s:KingFisher.config
  60. else
  61.    ; Floppy disk installation
  62.    echo ""
  63.    echo "Floppy disk installation."
  64.    ask "Do you have a two blank disks available?"
  65.    if not WARN
  66.       echo ""
  67.       echo "Try again when you do ..."
  68.       skip EXIT
  69.    endif
  70.    echo "Which drive do you want to unpack to? [0,1,2,3] "  NOLINE
  71.    failat 20
  72.    skip >NIL: ? 
  73.    lab 0
  74.      set drive "DF0:"
  75.      skip HAVEDRIVE
  76.    ;
  77.    lab 1
  78.      set drive "DF1:"
  79.      skip HAVEDRIVE
  80.    ;
  81.    lab 2
  82.      set drive "DF2:"
  83.      skip HAVEDRIVE
  84.    ;
  85.    lab 3
  86.      set drive "DF3:"
  87.      skip HAVEDRIVE
  88.    ;
  89.  
  90.    lab HAVEDRIVE
  91.    ask "OK to format disk in drive $drive?"
  92.    if not WARN
  93.       echo "Aborted ..."
  94.       skip EXIT
  95.    endif
  96.    echo ""
  97.    set dst "KingFisher-1"
  98.    sys:system/format drive $drive name $dst NOICONS
  99.    :c/lha -axm x $src $dst: Disk.info Fish-0001-0500 Fish.index Name.index KingFisher.floppy KingFisher.hd KingFisher.info KingFisher
  100.    copy $dst:KingFisher.floppy s:KingFisher.config
  101.    echo "Installation of $dst complete, insert second floppy."
  102.    echo ""
  103.    
  104.    ask "OK to format disk in drive $drive?"
  105.    if not WARN
  106.       echo "Aborted ..."
  107.       skip EXIT
  108.    endif
  109.    echo ""
  110.    set dst "KingFisher-2"
  111.    sys:system/format drive $drive name $dst NOICONS
  112.    :c/lha -axm x $src $dst: Disk.info Fish-0501-1100
  113.    echo ""
  114. endif
  115. skip EXIT
  116.  
  117. LAB EXIT
  118. echo "All Done.  Click close gadget to get rid of window."
  119. endcli
  120.