home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaDemoCD2.iso / ASCII / TEXTE / SCENE / AMIGA / AmigaReport / 2.14 / Install-AReport < prev    next >
Encoding:
Text File  |  1994-05-06  |  6.4 KB  |  158 lines

  1. ; $VER: 2.11 Amiga Report Installer Script written by David Tiberio
  2. ; email dtiberio@libserv1.ic.sunysb.edu for more information
  3.  
  4.     (set AR_dest (getassign "AR"))
  5.  
  6.     (set FALSE 0)
  7.     (set TRUE 1)
  8.     (set @default-dest "SYS:")
  9.  
  10.  
  11. ; Viewer routines excerpted from the Amiga/Toaster Reference Manual with permission
  12. (procedure Viewer
  13.     (if (exists "SYS:Utilities/MultiView")              ;use MultiView if detected
  14.         (
  15.             (tooltype
  16.                 (prompt "MultiView has been detected in your SYS:Utilities/ drawer. "
  17.                         "Amiga Report can be configured to automatically access MultiView. "
  18.                         "The AmigaGuide DataType will have to be available to the system. "
  19.                         "Do you wish to use MultiView to access Amiga Report?")
  20.                 (help "No help available.")
  21.                 (dest "AR214.guide")
  22.                 (setdefaulttool "SYS:Utilities/MultiView")
  23.                 (noposition)
  24.                 (confirm)
  25.                 )
  26.             (if (AND (NOT(exists "DEVS:DataTypes/AmigaGuide")) (NOT(exists "SYS:WBStartup/AmigaGuide")))
  27.                 (message "\nThe AmigaGuide DataType was not found. You will have to place it in "
  28.                          "your WBStartup drawer or your DEVS:DataTypes drawer before MultiView can "
  29.                          "use the Amiga/Toaster Reference Manual.")
  30.                 )
  31.             )
  32.         (
  33.             (if (exists "AmigaGuide")
  34.                 (copylib                                    ;otherwise, install AmigaGuide
  35.                     (source "AmigaGuide")
  36.                     (dest "SYS:Utilities/")
  37.                     (infos)
  38.                     )
  39.                 )
  40.             (if (exists "SYS:Utilities/AmigaGuide")         ;otherwise, use AmigaGuide if detected
  41.                 (
  42.                     (tooltype
  43.                         (prompt "AmigaGuide has been detected in your SYS:Utilities/ drawer. "
  44.                                 "Amiga Report can be configured to automatically access AmigaGuide. "
  45.                                 "Do you wish to use AmigaGuide to access Amiga Report?")
  46.                         (help "No help available.")
  47.                         (dest "AR214.guide")
  48.                         (setdefaulttool "SYS:Utilities/AmigaGuide")
  49.                         (noposition)
  50.                         (confirm)
  51.                         )
  52.                     )
  53.                 )
  54.             )
  55.         )
  56.     )
  57.  
  58. ; Display routines excerpted from the Amiga/Toaster Reference Manual with permission
  59. (procedure Display
  60.     (if (exists "SYS:Utilities/MultiView")              ;use MultiView if detected
  61.         (
  62.             (textfile
  63.                 (prompt "MultiView has been detected in your SYS:Utilities drawer. "
  64.                         "This will be used for the picture display driver. "
  65.                         "The ILBM DataType will have to be available to the system. "
  66.                         "Do you wish to create a MultiView picture driver?")
  67.                 (help "No help available.")
  68.                 (dest "T:display.s")
  69.                 (append ".key x,y,picture,title\n\nSYS:Utilities/MultiView WINDOW <picture>")
  70.                 (confirm)
  71.                 )
  72.             (if (AND (NOT(exists "DEVS:DataTypes/ILBM")) (NOT(exists "SYS:WBStartup/ILBM")))
  73.                 (message "\nThe ILBM DataType was not found. You will have to place it in "
  74.                          "your WBStartup drawer or your DEVS:DataTypes drawer before MultiView can "
  75.                          "display pictures from the Amiga/Toaster Reference Manual.")
  76.                 )
  77.             )
  78.         (
  79.             (if (exists "WDisplay")
  80.                 (copyfiles
  81.                     (prompt "Installing the WDisplay picture viewer...")
  82.                     (help   "No help available")
  83.                     (source "WDisplay")
  84.                     (dest "SYS:Utilities/")
  85.                     (infos)
  86.                     (confirm)
  87.                     )
  88.                 )
  89.             (if (exists "SYS:Utilities/WDisplay")           ;use WDisplay if detected
  90.                 (textfile
  91.                     (prompt "WDisplay has been detected in your SYS:Utilities drawer. "
  92.                             "This will be used for the picture display driver. "
  93.                             "Do you wish to create a WDisplay picture driver?")
  94.                     (help "No help available.")
  95.                     (dest "T:display.s")
  96.                     (append ".key x,y,picture,title\n\nSYS:Utilities/WDisplay WIDTH <x> HEIGHT <y> <picture> TITLE <title>")
  97.                     (confirm)
  98.                     )
  99.                 (if (exists "SYS:Utilities/Display")        ;use Display if detected
  100.                     (textfile
  101.                         (prompt "Do you wish to create a Display picture driver?")
  102.                         (help "No help available.")
  103.                         (dest "T:display.s")
  104.                         (append ".key x,y,picture,title\n\nSYS:Utilities/Display <picture>")
  105.                         (confirm)
  106.                         )
  107.                     )
  108.                 )
  109.             )
  110.         )
  111.  
  112.     (copyfiles (source "T:display.s") (dest AR_dest))
  113.     (protect (tackon AR_dest "display.s") "+s")
  114.     )
  115.  
  116. (procedure Library
  117.     (if (exists "AmigaGuide.library")
  118.         (copylib
  119.             (prompt "Updating your AmigaGuide.Library...")
  120.             (help "This will install the AmigaGuide library if you do not already have it.")
  121.             (source "AmigaGuide.library")
  122.             (dest "LIBS:")
  123.             )
  124.         )
  125.     )
  126.  
  127. (procedure Destination
  128.     (message "\nWARNING: Using with XPK may cause problems.\n\n"
  129.             "AmigaGuide may not function properly when accessed via the xloadseg handler. "
  130.             "Similar programs that compress executable files may pose similar problems.\n\n"
  131.             "XPK and XFH are shareware products and are not included with your "
  132.             "normal Workbench. Please disregard if you do not use XPK.\n")
  133.  
  134.     (set AR_dest
  135.         (tackon
  136.         (askdir
  137.         (prompt "In which disk or drawer should Amiga Report be installed? (A drawer named AmigaReport will be created there.)")
  138.         (help @askdir-help)
  139.         (default @default-dest)
  140.         )"AmigaReport")
  141.         )
  142.  
  143.     (set @default-dest AR_dest)
  144.  
  145.     (makedir AR_dest (infos))
  146.     (makeassign "AR" AR_dest)
  147.     )
  148.  
  149.  
  150. (Destination)
  151. (Viewer)
  152. (Display)
  153. (Library)
  154.  
  155. (copyfiles (source "AR214.guide") (dest AR_dest) (infos))
  156.  
  157. (exit "Amiga Report Install Script\nwritten by\n\nDavid Tiberio")
  158.