home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / cdrom / megasearch1.01 / install < prev    next >
Text File  |  1977-12-31  |  4KB  |  131 lines

  1. ;  *** MegaSearch installation scipt ***
  2.  
  3. (set #install-msg (cat "\n\nMegaSearch installation script.\n"
  4.                        "This script installs MegaSearch on your Amiga.\n\n"
  5.                        "Man © 1995/96 Markus Hillenbrand\n"
  6.                        "All rights reserved."
  7.                   )
  8. )
  9.  
  10. (set #bad-kick         "You must be using Kickstart 3.0 to install using this script!")
  11.  
  12. (set #copying-reqtools "Copying textfield.gadget to SYS:Classes/Gadgets ...")
  13.  
  14. ; Hier gehts los
  15.  
  16. (message #install-msg)
  17. (welcome "Welcome to the MegaSearch installation!")
  18.  
  19. (if (< (/ (getversion) 65536) 39)
  20. (
  21.     (abort #bad-kick)
  22. ))    
  23.  
  24. (copylib
  25.         (prompt "\n" #copying-reqtools)
  26.         (help @copylib-help)
  27.         (source "Textfield/Textfield.gadget")
  28.         (dest "SYS:Classes/Gadgets")
  29.         (confirm)
  30.  
  31. (set mydest
  32.    (askdir  (prompt  "Select the directory where you want to install the program. A drawer will NOT be created.")
  33.             (help    @askdir-help)
  34.             (default "Work:")
  35.             (disk)
  36.    )
  37. )
  38.  
  39. (copyfiles  (prompt "Copying executable")
  40.             (help   @copyfiles-help)
  41.             (source "MegaSearch")
  42.             (dest   mydest)
  43.             (infos)
  44. )
  45.  
  46. (copyfiles  (prompt "Copying documentation")
  47.             (help   @copyfiles-help)
  48.             (source "MegaSearch.guide")
  49.             (dest   mydest)
  50.             (infos)
  51. )
  52.  
  53. (copyfiles  (prompt "Copying About.IFF")
  54.             (help   @copyfiles-help)
  55.             (source "About.IFF")
  56.             (dest   mydest)
  57. )
  58.  
  59. (set filtername (cat mydest "/.filter"))
  60. (if (exists filtername) (copyfiles  (prompt "A filter exists, copy new filter anyway ?")
  61.                                     (help   @copyfiles-help)
  62.                                     (source ".filter")
  63.                                     (dest   mydest)
  64.                                     (confirm)
  65.                         )
  66.                         (copyfiles  (prompt "Copying Filter")
  67.                                     (help   @copyfiles-help)
  68.                                     (source ".filter")
  69.                                     (dest   mydest)
  70.                         )
  71. )
  72.  
  73. (set listdir (cat mydest "/Lists"))
  74.  
  75. (makedir listdir)
  76.  
  77. (set answer (askchoice  (prompt  "Do you want to install index files for 'Aminet-CD 4-9' ?")
  78.                         (help    @askchoice-help)
  79.                         (choices "Yes" "No")
  80.             )
  81. )
  82.  
  83. (if (= answer 0) (copyfiles  (prompt  "Copying Index Files for Aminet CD's")
  84.                              (help    @copyfiles-help)
  85.                              (source  "lists")
  86.                              (dest    listdir)
  87.                              (pattern "Aminet#?")
  88.                              (files)
  89.                  )
  90. )
  91.  
  92. (set answer (askchoice  (prompt  "Do you want to install index files for 'Meeting-Pearls-CD 1-3' ?")
  93.                         (help    @askchoice-help)
  94.                         (choices "Yes" "No")
  95.             )
  96. )
  97.  
  98. (if (= answer 0) (copyfiles  (prompt  "Copying Index Files for Meeting Pearls CD's")
  99.                              (help    @copyfiles-help)
  100.                              (source  "lists")
  101.                              (dest    listdir)
  102.                              (pattern "Meeting#?")
  103.                              (files)
  104.                  )
  105. )
  106.  
  107. (set answer (askchoice  (prompt  "Do you want to install index files for 'FredFish-CDs' ?")
  108.                         (help    @askchoice-help)
  109.                         (choices "Yes" "No")
  110.             )
  111. )
  112.  
  113. (if (= answer 0) (copyfiles  (prompt  "Copying Index Files for FredFish CD's")
  114.                              (help    @copyfiles-help)
  115.                              (source  "lists")
  116.                              (dest    listdir)
  117.                              (pattern "#?Fish#?")
  118.                              (files)
  119.                  )
  120. )
  121.  
  122. (startup "MegaSearch" (prompt  "Adding the assign MegaSearch: to S:User-Startup")
  123.                       (help    @startup-help)
  124.                       (command "Assign MegaSearch: " mydest)
  125. )
  126.  
  127. (makeassign "MegaSearch" mydest (safe))
  128.  
  129.  
  130.