home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 124 / af124sub.adf / Videotitler.lzx / Videotitler / Install < prev    next >
Text File  |  1999-04-02  |  8KB  |  317 lines

  1. ; Installer installation script for VideoTitler
  2. ; $VER:Install Videotitler 20.02 (25.02.96)
  3.  
  4.  
  5.  
  6. (set @default-dest "")
  7. (set vttdir "VTT1:Videotitler/")
  8. (set vttsource "")
  9.  
  10. ;================================================================================
  11. ; English strings
  12.  
  13. (set #bad-kick
  14.         (cat "\nYou must have installed Kickstart 2.04 or higher to use VideoTitler!")
  15. )
  16.  
  17. (set #welcome
  18.         (cat "\nVideoTitler installation\n\n\n"
  19.              "This script installs VideoTitler V2.1\n"
  20.              "on your Amiga.\n\n\n\n"
  21.              "VideoTitler V2.1 ©1996 by Andreas Ackermann\n"
  22.              "All rights reserved\n\n"
  23.              "(MUI-System © by Stefan Stuntz)")
  24. )
  25.  
  26. (set #where-vtt
  27.         (cat "\nIn wich drawer should the VideoTitler be \n"
  28.               "installed ? (A new drawer named\n"
  29.               "VideoTitler will be generated there.)\n"
  30.         )
  31. )
  32.  
  33. (set #icon_type
  34.         (cat "\nWhich type of icons do you want to install ?\n")
  35. )
  36.  
  37. (set #which-language
  38.         (cat "\nWhich language should be installed?\n")
  39. )
  40. (set #which-language-help
  41.         (cat "\nThe Amiga can be operated in many different languages. "
  42.              "If you want VideoTitler to use the same language as the Amiga "
  43.              "Workbench a catalog file must be copied to your harddisk "
  44.              "for each language supported.\n"
  45.         )
  46. )
  47. (set #exit_string
  48.         (cat "Please install the provided MUI-package\n"
  49.              "which is to be found on disk two as well.\n\n"
  50.              "Have fun using VideoTtitler !\n"
  51.         )
  52. )
  53.  
  54. (set #askfont
  55.         (cat "\nDo you want to install the supplied\n"
  56.              "fonts as well ?\n"
  57.         )
  58. )
  59.  
  60.  
  61. (set #documentationtype
  62.         (cat "\nWhich type of documentation do you\n"
  63.              "want to install?\n"
  64.              "(Guides are only recommended for\n"
  65.              "for OS 3.0 and above!)\n"
  66.         )
  67. )
  68.  
  69. (set #fonthelp
  70.         (cat "\nSpecifying 'yes' makes the installer copy the fonts\n"
  71.              "to your FONTS: directory.\n"
  72.         )
  73. )
  74.  
  75. ;================================================================================
  76. ; make sure we are running under a 2.04 ROM
  77.  
  78.  
  79. (if (< (/ (getversion) 65536) 37)
  80.   (
  81.     (abort #bad-kick)
  82.   )
  83. )
  84.  
  85.  
  86. (if (< (/ (getversion) 65536) 39)
  87.   (SET guide_tool "sys:utilities/amigaguide" )
  88.   (SET guide_tool "sys:utilities/multiview" )
  89. )
  90. (if (< (/ (getversion) 65536) 38)
  91.   (SET guide_tool "sys:utilities/more" )
  92. )
  93.  
  94.  
  95. ;================================================================================
  96. ;
  97.  
  98. (complete 0)
  99.  
  100. (message #welcome)
  101.  
  102. (welcome)
  103. (set old_level @user-level)
  104.  
  105. (set vttdir
  106.         (askdir
  107.                 (prompt #where-vtt)
  108.                 (help @askdir-help)
  109.                 (default "RAM:")
  110.         )
  111. )
  112.  
  113.  
  114.  
  115.  
  116. (set iconsource
  117.         (ASKCHOICE
  118.                 (PROMPT #icon_type)
  119.                 (CHOICES
  120.                          "Standard"
  121.                          "MagicWB")
  122.                 (DEFAULT 0)
  123.                 (HELP @askchoice-help)
  124.         )
  125. )
  126.  
  127. (if     (= iconsource 1 )
  128.         ( SET iconsource "magicwb" )
  129.         ( SET iconsource "standard" )
  130. )
  131.  
  132.  
  133. (MAKEDIR  (TACKON vttdir "VideoTitler"))
  134. (COPYFILES(
  135.           (SOURCE (CAT vttsource "icons/" iconsource "/VideoTitler_drawer.info"))
  136.           (DEST vttdir)
  137.           (NEWNAME "VideoTitler.info")
  138.           ))
  139. (SET vttdir_dummy (TACKON vttdir "VideoTitler"))
  140. (SET vttdir vttdir_dummy)
  141.  
  142. (complete 10)
  143. (copyfiles
  144.         (source (CAT vttsource "Videotitler"))
  145.         (dest vttdir)
  146. )
  147.  
  148. (copyfiles
  149.         (source (cat vttsource "icons/" iconsource "/VideoTitler.info"))
  150.         (dest vttdir)
  151.         (noposition)
  152. )
  153.  
  154.  
  155. (complete 30)
  156.  
  157.  
  158. (MAKEDIR  (TACKON vttdir "scripts"))
  159. (COPYFILES(
  160.           (SOURCE (CAT vttsource "icons/" iconsource  "/scripts.info"))
  161.           (DEST vttdir )
  162.           ))
  163. (MAKEDIR  (TACKON vttdir "icons"))
  164. (MAKEDIR  (TACKON vttdir "anims"))
  165. (COPYFILES(
  166.           (SOURCE (CAT vttsource "icons/" iconsource "/Anims.info"))
  167.           (DEST vttdir )
  168.           ))
  169. (MAKEDIR  (TACKON vttdir "brushes"))
  170. (COPYFILES(
  171.           (SOURCE (CAT vttsource "icons/" iconsource "/Brushes.info"))
  172.           (DEST vttdir )
  173.           ))
  174. (copyfiles
  175.         (source (cat vttsource "icons/" iconsource "/videotitler_project.info"))
  176.         (dest (TACKON vttdir "icons"))
  177.         (noposition)
  178. )
  179.  
  180. (copyfiles
  181.         (source (cat vttsource "icons/" iconsource "/videotitler_iconification.info"))
  182.         (dest (TACKON vttdir "icons"))
  183.         (noposition)
  184. )
  185.  
  186. (TOOLTYPE (DEST (TACKON vttdir "icons/videotitler_project"))
  187.           (SETDEFAULTTOOL (TACKON  vttdir "VideoTitler"))
  188.           (NOPOSITION)
  189.           )
  190.  
  191. (FOREACH (CAT vttsource "scripts") "#?.vtt"
  192.           (COPYFILES(
  193.                      (SOURCE (TACKON (CAT vttsource "scripts") @each-name))
  194.                      (DEST (TACKON  vttdir "scripts"))
  195.                      )
  196.           )
  197.           (COPYFILES(
  198.                      (SOURCE (TACKON vttdir "icons/videotitler_project.info"))
  199.                      (DEST (TACKON  vttdir "scripts"))
  200.                      (NEWNAME (CAT @each-name ".info"))
  201.                      )
  202.           )
  203. )
  204.  
  205. (complete 40)
  206. (FOREACH (CAT vttsource "anims") "#?"
  207.           (COPYFILES(
  208.                      (SOURCE (TACKON (CAT vttsource "anims") @each-name))
  209.                      (DEST (TACKON  vttdir "anims"))
  210.                      )
  211.           )
  212. )
  213. (complete 70)
  214.  
  215. (FOREACH (CAT vttsource "brushes") "#?"
  216.           (COPYFILES(
  217.                      (SOURCE (TACKON (CAT vttsource "brushes") @each-name))
  218.                      (DEST (TACKON  vttdir "brushes"))
  219.                      )
  220.           )
  221. )
  222. (complete 90)
  223.  
  224. (user 2)
  225. (set lang
  226. (askchoice
  227.          (prompt #which-language)
  228.          (help #which-language-help @askoptions-help)
  229.          (choices
  230.                  "English"
  231.                  "Deutsch")
  232.          )
  233. )
  234. (user old_level)
  235. (if( = lang 1 ) (SET language "deutsch" ) (SET language "english"))
  236.  
  237. (if (EXISTS("SYS:LOCALE") )
  238.     (if (<> language "english")
  239.            (
  240.                (makedir (TACKON vttdir "catalogs" ))
  241.                (makedir (TACKON vttdir (cat "catalogs/" language)))
  242.                (copyfiles (SOURCE (cat vttsource "catalogs/" language))
  243.                           (DEST (TACKON vttdir (cat "catalogs/" language)))
  244.                (all))
  245.            )
  246.     )
  247. )
  248.  
  249. (set doctype
  250. (askchoice
  251.          (prompt #documentation-type)
  252.          (help @askchoice-help)
  253.          (choices
  254.                  "Normal Doc-File"
  255.                  "Amiga-Guide")
  256.          )
  257. )
  258.  
  259. (if (= doctype 1)
  260.  
  261.  ((copyfiles
  262.           (source (cat vttsource "docs/videotitler_" language ".guide"))
  263.           (dest vttdir)
  264.           (NEWNAME "VideoTitler.guide")
  265.   )
  266.   (copyfiles
  267.           (source (cat vttsource "icons/" iconsource "/guide.info"))
  268.           (dest vttdir)
  269.           (NEWNAME "VideoTitler.guide.info")
  270.   )
  271.   (TOOLTYPE (DEST (TACKON vttdir "VideoTitler.guide"))
  272.             (SETDEFAULTTOOL guide_tool )
  273.             )
  274.  )
  275.  (
  276.   (run (cat "/c/guide2doc "
  277.             vttsource "docs/videotitler_" language ".guide "
  278.             ">" (TACKON vttdir "VideoTitler.doc")))
  279.   (copyfiles
  280.           (source (cat vttsource "icons/" iconsource "/vtt_doc.info"))
  281.           (dest vttdir)
  282.           (NEWNAME "VideoTitler.doc.info")
  283.   )
  284.  
  285.  
  286.  
  287.  )
  288. )
  289.  
  290. (if (exists "/vtt.key")
  291.         (copyfiles
  292.            (source "/vtt.key")
  293.            (dest "DEVS:")
  294.         )
  295. )
  296.  
  297. (if(=
  298.  (ASKBOOL
  299.         ( PROMPT #askfont )
  300.         ( HELP #fonthelp )
  301.         ( DEFAULT 0 )
  302.  )
  303.  1 )
  304.  (copyfiles
  305.         (source (CAT vttsource "fonts"))
  306.         (dest "Fonts:")
  307.         (ALL)
  308.  )
  309. )
  310.  
  311. (complete 100)
  312. (exit #exit_string )
  313.  
  314.  
  315.  
  316.  
  317.