home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / new / util / misc / buttonmenu / install_buttonmenu < prev    next >
Text File  |  1994-11-17  |  2KB  |  84 lines

  1. ; ButtonMenu Installer script (for the Aminet archive)
  2. ; $VER: 2.00 (17.11.94)
  3. ; written by Oliver Roberts
  4.  
  5. (if (< (/ (getversion) 65536) 36)
  6.    (abort "ButtonMenu requires Kickstart 2.0 or above - aborting...")
  7. )
  8.  
  9. (welcome
  10.    ("This utility will attempt to, either, install ButtonMenu for the first time ")
  11.    ("or update an existing version, as best it can on your system.  \n\n")
  12.    ("This program will update libraries if older versions exist, ")
  13.    ("and copy all files needed.\n")
  14. )
  15.  
  16. (if(set destdir
  17.       (askdir
  18.          (prompt "Select a drawer in which ButtonMenu should be installed/updated?\n(a separate drawer will not be created!)")
  19.          (help @askdir-help)
  20.          (default @default-dest)
  21.       )
  22.    )
  23.    (
  24.       (set @default-dest destdir)
  25.    )
  26. )
  27.  
  28. (set libdir
  29.    (askdir
  30.       (prompt "Where are the system libraries?")
  31.       (help "Select the drawer where your system libraries are stored.  This can usually be accessed by the LIBS: assign and is therefore the default.")
  32.       (default "LIBS:")
  33.    )
  34. )
  35.  
  36. (complete 20)
  37.  
  38. (copylib
  39.    (prompt "Installing newer version of reqtools.library")
  40.    (source "Libs/reqtools.library")
  41.    (dest libdir)
  42.    (help @copylib-help)
  43.    (newname "reqtools.library")
  44.    (confirm)
  45. )
  46.  
  47. (complete 40)
  48.  
  49. (copylib
  50.     (prompt "Copying ButtonMenu Creator...")
  51.     (source "ButtonMenu")
  52.     (dest @default-dest)
  53.     (help @copylib-help)
  54.     (infos)
  55.     (confirm)
  56. )
  57.  
  58. (copylib
  59.     (prompt "Copying ButtonMenu Executor...")
  60.     (source "BMX")
  61.     (dest @default-dest)
  62.     (help @copylib-help)
  63.     (infos)
  64.     (confirm)
  65. )
  66.  
  67. (complete 70)
  68.  
  69. (copyfiles
  70.     (prompt "Copying ButtonMenu Documentation...")
  71.     (source "ButtonMenu.guide")
  72.     (dest @default-dest)
  73.     (help @copyfiles-help)
  74.     (infos)
  75. )
  76.  
  77. (complete 100)
  78.  
  79. (exit
  80.     ("Files installed.  Enjoy using ButtonMenu!\n")
  81.     ("Please email any bugs or suggestions to the author at ")
  82.     ("O.J.C.Roberts@essex.ac.uk (see documentation).")
  83. )
  84.