home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games 1995 January / amigagames-1995-01.iso / archive / userbox / publicdomain / tinymeter.lha / TinyMeter / Install < prev    next >
Text File  |  1995-07-31  |  5KB  |  188 lines

  1. ; Installer Script for TinyMeter V3.0
  2.  
  3. (set @default-dest (""))
  4.  
  5. (set @cpu (database "cpu"))
  6.  
  7. (set @source-file "TinyMeter")
  8.  
  9. (if (= @cpu "68020")
  10.     (set @source-file "TinyMeter.020")
  11. )
  12.  
  13. (if (= @cpu "68030")
  14.     (set @source-file "TinyMeter.020")
  15. )
  16.  
  17. (if (= @cpu "68040")
  18.     (set @source-file "TinyMeter.020")
  19. )
  20.  
  21. (if (= @cpu "68060")
  22.     (set @source-file "TinyMeter.020")
  23. )
  24.  
  25. (set @destdir
  26.         (askdir
  27.                 (prompt "Where should I copy the TinyMeter main program ?")
  28.                 (help "Where's the problem?")
  29.                 (default "SYS:WBStartup/")
  30.         )
  31. )
  32.  
  33. (set @prefsdir
  34.         (askdir
  35.                 (prompt "Where should I copy the TinyMeterPrefs program?")
  36.                 (help "Where's the problem?")
  37.                 (default "SYS:Prefs/")
  38.         )
  39. )
  40.  
  41. (set @CopyExample
  42.         (askbool
  43.                 (prompt "Do you want to install the example MagicWB-settings file?\n\nNOTE: You will have to install the additional fonts and the background pictures. Make sure you install the background pattern in SYS:Prefs/Patterns/ !!!")
  44.                 (help "Where's the problem?")
  45.         )
  46. )
  47.  
  48. (set @CopyFonts
  49.         (askbool
  50.                 (prompt "Do you want to install the additional Fonts?")
  51.                 (help "Where's the problem?")
  52.         )
  53. )
  54.  
  55. (if @CopyFonts
  56.     (set @fontdir
  57.             (askdir
  58.                     (prompt "Where should the fonts be installed?")
  59.                     (help "Where's the problem?")
  60.                     (default "FONTS:")
  61.             )
  62.     )
  63. )
  64.  
  65. (if @CopyFonts
  66.     (set @dofixfont
  67.             (askbool
  68.                     (prompt "Should I do FixFonts for you?")
  69.                     (help "Where's the problem?")
  70.             )
  71.     )
  72. )
  73.  
  74. (set @CopyPatt
  75.         (askbool
  76.                 (prompt "Do you want to install the additional Background patterns?")
  77.                 (help "Where's the problem?")
  78.         )
  79. )
  80.  
  81. (if @CopyPatt
  82.     (set @pattdir
  83.             (askdir
  84.                     (prompt "Where should the background patterns be installed?")
  85.                     (help "Where's the problem?")
  86.                     (default "SYS:Prefs/")
  87.             )
  88.     )
  89. )
  90.  
  91. (copyfiles
  92.         (prompt "Installing the files." )
  93.         (help "Where's the problem?" )
  94.         (source @source-file )
  95.         (infos)
  96.         (newname "TinyMeter")
  97.         (dest @destdir)
  98. )
  99.  
  100. (tooltype
  101.         (help "Where's the problem?" )
  102.         (dest (@destdir "TinyMeter"))
  103.         (noposition)
  104. )
  105.  
  106. (copyfiles
  107.         (prompt "Installing TinyMeter.")
  108.         (help "Where's the problem?")
  109.         (source "Prefs/TinyMeterPrefs")
  110.         (infos)
  111.         (dest @prefsdir)
  112. )
  113.  
  114. (if @CopyExample
  115.     (copyfiles
  116.             (prompt "Installing example settings-file in ENV:")
  117.             (help "Where's the problem?")
  118.             (source "Env/")
  119.             (all)
  120.             (dest "ENV:")
  121.     )
  122. )
  123.  
  124. (if @CopyExample
  125.     (copyfiles
  126.             (prompt "Installing example settings-file in ENVARC:")
  127.             (help "Where's the problem?")
  128.             (source "Env/")
  129.             (all)
  130.             (dest "ENVARC:")
  131.     )
  132. )
  133.  
  134. (if @CopyFonts
  135.     (copyfiles
  136.             (prompt "Installing additional fonts.")
  137.             (help "Where's the problem?")
  138.             (source "ArtWork/Fonts/")
  139.             (all)
  140.             (dest @fontdir)
  141.     )
  142. )
  143.  
  144. (if @CopyFonts
  145.     (if @dofixfont
  146.             (run "SYS:System/FixFonts"
  147.                     (prompt "Doing FixFonts... May take a while...")
  148.                     (help "Where's the problem?")
  149.             )
  150.     )
  151. )
  152.  
  153. (if @CopyPatt
  154.     (copyfiles
  155.             (prompt "Installing additional background patterns.")
  156.             (help "Where's the problem?")
  157.             (source "ArtWork/Patterns/")
  158.             (all)
  159.             (dest @pattdir)
  160.     )
  161. )
  162.  
  163. (tooltype
  164.         (help "Where's the problem?" )
  165.         (dest (@prefsdir "TinyMeterPrefs"))
  166.         (noposition)
  167. )
  168.  
  169. (copylib
  170.         (prompt "Installing screennotify.library")
  171.         (help "Where's the problem?")
  172.         (source "Libs/screennotify.library")
  173.         (dest "LIBS:")
  174.         (confirm)
  175. )
  176.  
  177. (copylib
  178.         (prompt "Installing bgui.library")
  179.         (help "Where's the problem?")
  180.         (source "Libs/bgui.library")
  181.         (dest "LIBS:")
  182.         (confirm)
  183. )
  184.  
  185. (exit
  186.         "Have phun with this nice piece of soft!!!\n\nNow you should start TinyMeter, setup the position and size and press S to save these settings.\n\nAfter that, start TinyMeterPrefs to setup TinyMeter to your personal taste.\n\nIf there are any problems, don't hesitate to contact the author!"
  187. )
  188.