home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / datatypes / iffdt402 / install < prev    next >
Encoding:
Text File  |  1997-02-16  |  11.0 KB  |  341 lines

  1. ;******************************************************************************
  2. ; ExeDT - Installscript
  3. ; Written by Swen K. Stullich/UFT   14.06.96, based of binary.dt and DTpref
  4. ;  install-scripts
  5. ; Localized by JosÚ Roberto Gonzßlez Rocha <alu756@csi.ull.es> 04.06.96
  6. ;******************************************************************************
  7.  
  8. ; Initialize a few things
  9. (set #datatype      "iff.datatype")
  10. (set #datatype-desc "IFF")
  11. (set language (getenv "language"))
  12. ;
  13. ;******************************************************************************
  14. ;******************************************************************************
  15. ; Locale Section
  16. ;******************************************************************************
  17. ;
  18. ; To translate this script just uncomment the code on your language section,
  19. ;   add the string and uncomment the parenthesis of your language at the end
  20. ;   of the locale section.
  21. ; If your language isnt listed below just copy an empty section just before
  22. ;   the english section, change the language name with yours, add the strings
  23. ;   and add a close parenthesis at the end of the locale section.
  24. ;
  25.  
  26. ;******************************************************************************
  27. ; Default language (english) strings
  28. ;
  29. ;******************************************************************************
  30.   (set #wellcome (cat @app-name "-Installer"))
  31.   (set #about (cat "Welcome to the " @app-name "-Install-Script\n\n" @app-name " is ®1996-97\nSwen K. Stullich\nUnited Forces Tools"))
  32.   (set #install "Install")
  33.   (set #installing "Installing ")
  34.   (set #copying "Copying ")
  35.   (set #copydescr "Copying the Descriptors")
  36.   (set #copydocs "Copying AmigaGuide file")
  37.   (set #remove "Remove")
  38.   (set #removing "Removing ")
  39.   (set #removeok (cat "The \"" @app-name "\" components that you specified have been successfully removed"))
  40.   (set #getdtdir "Where do the Datatypes belong")
  41.   (set #whichlang "Which languages should be installed?")
  42.   (set #copyiff "Copying the iff-moduls")
  43.   (set #getiffdir "Where should I install the iff-moduls?\nA new directory will be installed")
  44.   (set #setprefs "Do you want to see full iff-chunk information?")
  45.   (set default_lang 1)
  46. ;
  47. ;******************************************************************************
  48. ; German strings
  49. ; Translated by Swen K. Stullich <Swen@Trashcan.mcnet.de>
  50. ;******************************************************************************
  51. (if (= language "deutsch")
  52.  (
  53.   (set #wellcome (cat @app-name "-Installer "))
  54.   (set #about (cat "Wilkommen zu dem " @app-name "-Install-Script\n\n" @app-name " ist ®1996-97\nSwen K. Stullich\nUnited Forces Tools"))
  55.   (set #install "Installieren")
  56.   (set #installing "Installiere ")
  57.   (set #copying "Kopiere ")
  58.   (set #copydescr "Kopiere den Descriptor")
  59.   (set #copydocs "Kopiere die AmigaGuide-Dateien")
  60.   (set #remove "Entfernen")
  61.   (set #removing "Entferne ")
  62.   (set #removeok (cat "Die \"" @app-name "\" Komponenten, die Du angegeben hast, wurden erfolgreich entfernt"))
  63.   (set #getdtdir "Wo befinden sich die Datatypes")
  64.   (set #whichlang "Welche Sprachen sollen installiert werden?")
  65.   (set #copyiff "Kopiere die IFF-Module")
  66.   (set #getiffdir "Wohin sollen die IFF-Module installiert werden?\nEin neues Verzeichnis (iff.module/) wird erzeugt")
  67.   (set #setprefs "Möchtest Du die ganzen IFF-Chunk Informationen sehen?")
  68.   (set default_lang 2)
  69.  )
  70. )
  71. ;
  72. ;******************************************************************************
  73. ; Spanish strings
  74. ; Translated by JosÚ Roberto Gonzßlez Rocha <alu756@csi.ull.es>
  75. ;******************************************************************************
  76. (if (= language "espa±ol")
  77.  (
  78.   (set #wellcome (cat "Instalador de" @app-name ))
  79.   (set #about (cat "Bienvenido al proceso de instalación de " @app-name "\n\n" @app-name " es ©1996-97\nSwen K. Stullich\nUnited Forces Tools\n\n\ntraducido al castellano por José Roberto González Rocha <alu756@csi.ull.es>"))
  80.   (set #install "Instalar")
  81.   (set #installing "Instalando ")
  82.   (set #copying "Copiando ")
  83.   (set #copydescr "Copiando los Descriptores")
  84.   (set #copydocs "Copiando fichero AmigaGuide")
  85.   (set #remove "Desinstalar")
  86.   (set #removing "Desinstalando ")
  87.   (set #removeok (cat "Los componentes de \"" @app-name "\" que ha especificado han sido desinstalados satisfactoriamente"))
  88.   (set #getdtdir "¿Dónde se encuentran los Datatypes?")
  89.   (set #whichlang "¿Qué lenguajes desea instalar?")
  90.   (set default_lang 4)
  91.  )
  92. )
  93. ;
  94. ;******************************************************************************
  95. ; Translated by 
  96. ; Jerome Chesnot <jchesnot@pratique.fr>
  97. ;******************************************************************************
  98. (if (= language "français")
  99.  (
  100.   (set #wellcome (cat @app-name "-Installer"))
  101.   (set #about (cat "Bienvenu dans le script d'installation d'" @app-name "\n\n" @app-name " par *1996-97\nSwen K. Stullich\nUnited Forces Tools\n\n\nTraduction française par Jérôme Chesnot"))
  102.   (set #install "Installer")
  103.   (set #installing "Installation de ")
  104.   (set #copying "Copie de ")
  105.   (set #copydescr "Copie des Descriptifs")
  106.   (set #copydocs "Copie de la documentation AmigaGuide")
  107.   (set #remove "Désinstaller")
  108.   (set #removing "Désinstallation de ")
  109.   (set #removeok (cat "Les composants \"" @app-name "\" que vous avez spécifiés ont été désinstallés avec succès"))
  110.   (set #getdtdir "Où se situent les Datatypes ?")
  111.   (set #whichlang "Quels langages doivent-être installés ?")
  112.   (set default_lang 8)
  113.  )
  114. )
  115. ;
  116. ;******************************************************************************
  117. ; Translated by Manuel Lemos <mlemos@ua.pt>
  118. ;******************************************************************************
  119. (if (= language "português")
  120.  (
  121.   (set #wellcome (cat @app-name "- Ferramenta de instalação"))
  122.   (set #about (cat @app-name "Procedimento de instalação\n\n" @app-name " is *1996-97\nSwen K. Stullich\nUnited Forces Tools\n\nTraduzido por Manuel Lemos <mlemos@ua.pt>"))
  123.   (set #install "Instalar")
  124.   (set #installing "A instalar ")
  125.   (set #copying "A copiar ")
  126.   (set #copydescr "A copiar os descritores")
  127.   (set #copydocs "A copiar o ficheiro de ajuda (AmigaGuide)")
  128.   (set #remove "Apagar")
  129.   (set #removing "A apagar ")
  130.   (set #removeok (cat "Os componentes de \"" @app-name "\" que especificou foram definitivamente apagados."))
  131.   (set #getdtdir "Aonde é que se encontram os \"Datatypes\" no disco?")
  132.   (set #whichlang "Que idiomas pretende que sejam instalados?")
  133.   (set default_lang 16)
  134.  )
  135. )
  136. ;
  137. ;******************************************************************************
  138. ; Translated by 
  139. ;******************************************************************************
  140. ;(if (= language "norsk")
  141. ; (
  142. ; )
  143. ;
  144. ;******************************************************************************
  145. ; Translated by 
  146. ;******************************************************************************
  147. ;(if (= language "suomi")
  148. ; (
  149. ; )
  150. ;
  151. ;******************************************************************************
  152. ; Translated by 
  153. ;******************************************************************************
  154. ;(if (= language "svenska")
  155. ; (
  156. ;)
  157. ;******************************************************************************
  158. ; Translated by 
  159. ;******************************************************************************
  160. ;(if (= language "Ýslenska")
  161. ; (
  162. ; )
  163. ;
  164. ;******************************************************************************
  165. ; Translated by 
  166. ;******************************************************************************
  167. ;(if (= language "greek")
  168. ; (
  169. ; )
  170. ;
  171. ;
  172. ; End of Locale Section
  173. ;******************************************************************************
  174. ;
  175.  
  176.  
  177.  
  178. ;******************************************************************************
  179. ;******************************************************************************
  180. ; Welcome
  181. (welcome #wellcome)
  182. (message #about)
  183.  
  184.  
  185. ;******************************************************************************
  186. ; Ask for what we are doing (install - remove)
  187. (set mode
  188.     (askchoice
  189.         (prompt @app-name)
  190.         (help @askchoice-help)
  191.         (choices #install #remove)
  192.     )
  193. )
  194.  
  195. (if mode
  196.     (set pmode #remove)
  197.     (set pmode #install)
  198. )
  199.  
  200.  
  201. ;******************************************************************************
  202. ; get datatypes dir
  203. (set datatypesdir
  204.     (askdir
  205.         (prompt #getdtdir)
  206.             (help @askdir-help)
  207.             (default "SYS:Classes/Datatypes")
  208.     )
  209. )
  210.  
  211. (set iffmoduledir
  212.     (askdir
  213.         (prompt #getiffdir)
  214.             (help @askdir-help)
  215.             (default "SYS:Classes/Datatypes")
  216.     )
  217. )
  218.  
  219.  
  220. ; now do install or remove
  221. (if mode
  222.     ; *** We should remove the old one ***
  223.     (
  224.         ; Show what we are doing
  225.         (working #removing @app-name)
  226.  
  227.         ; Remove the non-standard pieces
  228.         (delete (tackon datatypesdir  #datatype))
  229.         (delete (cat "devs:datatypes/" #datatype-desc) (infos))
  230.  
  231.         ; Don't want to use the confusing "Installation Complete" message
  232.         ; when what we really did was remove things...
  233.         (message #removeok)
  234.         (exit (quiet))
  235.     )
  236.  
  237.     ; Install
  238.     (
  239.         (working #installing @app-name)
  240.  
  241.         (set #dtname (tackon "classes/datatypes" #datatype))
  242.  
  243.         ; Install the classes
  244.         (copylib
  245.             (prompt (cat #copying @app-name))
  246.             (help @copylib-help)
  247.             (source (tackon "classes/datatypes" #datatype))
  248.             (dest datatypesdir)
  249.             (confirm)
  250.         )
  251.  
  252.         ; Install the descriptors
  253.         (copyfiles
  254.             (prompt #copydescr)
  255.             (help @copyfiles-help)
  256.             (source "devs/datatypes")
  257.             (dest "DEVS:DataTypes")
  258.             (pattern "#?")
  259.             (infos)
  260.             (confirm)
  261.         )
  262.  
  263. ;        ; Install the catalogs
  264. ;        (set lang
  265. ;            (askoptions
  266. ;                (prompt #whichlang)
  267. ;                (help @askoptions-help)
  268. ;                (choices "English" "Deutsch" "Français")
  269. ;                            ; "Español" "Português" "Nederlands" "Italiano" "Polski" "Svenska" "Norsk")
  270. ;                (default default_lang)
  271. ;            )
  272. ;        )
  273.  
  274. ;        (set n 0)
  275. ;        (while
  276. ;            (set language (select n "english" "deutsch" "français" ""))
  277. ;                                            ; "español" "português" "nederlands" "italiano" "polski" "svenska" "norsk" ""))
  278. ;            (
  279. ;                (if (IN lang n)
  280. ;                    (
  281. ;                        (if (<> 0 n)
  282. ;                            (
  283. ;                                (makedir (cat "LOCALE:Catalogs/" language))
  284. ;                                (copyfiles (source (cat "Catalogs/" language))
  285. ;                                    (dest (cat "LOCALE:Catalogs/" language))
  286. ;                                    (pattern "#?.catalog")
  287. ;                                )
  288. ;                            )
  289. ;                        )
  290. ;                    )
  291. ;                )
  292. ;            )
  293. ;            (set n (+ n 1))
  294. ;        )
  295.  
  296.         ; Install the IFF-moduls
  297.         (makedir (tackon iffmoduledir "iff.module"))
  298.         (copyfiles
  299.             (prompt #copyiff)
  300.             (help @copyfiles-help)
  301.             (source "iff.module")
  302.             (dest (tackon iffmoduledir "iff.module"))
  303.             (pattern "~(#?.info)")
  304.             (confirm)
  305.         )
  306.  
  307.         ; Set the preferences
  308.         (textfile
  309.             (dest "ENV:Datatypes/iff.prefs")
  310.             (append (cat (cat "MODULE=\"" (tackon iffmoduledir "iff.module")) "\"\n"))
  311.             (append "SHOWINFO\n")
  312.         )
  313.         (textfile
  314.             (dest "ENVARC:Datatypes/iff.prefs")
  315.             (append (cat (cat "MODULE=\"" (tackon iffmoduledir "iff.module")) "\"\n"))
  316.             (append "SHOWINFO\n")
  317.         )
  318.  
  319.         ; install AmigaGuide file
  320.         (copyfiles
  321.             (prompt #copydocs)
  322.             (help @copyfiles-help)
  323.             (source "Docs")
  324.             (dest "Help:")
  325.             (pattern "#?")
  326.             (confirm)
  327.         )
  328.  
  329.         ; Tell the system about the new descriptors
  330.         (run "C:AddDataTypes Refresh")
  331.  
  332.     )
  333. )
  334.  
  335. (set @default-dest datatypesdir)
  336.  
  337. (if (> (exists ("c:multiview")) 0) (set #mpath "c:") )
  338. (if (> (exists ("sys:Utilities/multiview")) 0) (set #mpath "sys:Utilities") )
  339. (run (cat "run " #mpath "/multiview Release.txt") )
  340.