home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / viewer / X!-SV621.LHA / SViewNG_EL.lha / SViewNG / SuperViewLibrary / Install_SVLib < prev    next >
Encoding:
Text File  |  1997-04-03  |  13.7 KB  |  445 lines

  1. ; $VER: Install_SVLib V16.4 (3.4.97)
  2. ; © 1993-97 by Andreas R. Kleinert.
  3. ; This is the Installer Script for superview.library V16+
  4. ; Italian strings by Alessandro Basso (cralex@amiga.dei.unipd.it)
  5.  
  6.  
  7. (set @app-name "SuperView-Library")
  8. (welcome "SuperView-Library Installation")
  9.  
  10.  
  11. ; *** english is default language
  12.  
  13.     (set #Msg_Yes "Yes")
  14.     (set #Msg_No  "No")
  15.     (set #Msg_BasicConfig "What's your basic configuration ?")
  16.     (set #Gfx0  "Not specified (do not change)")
  17.     (set #Gfx1  "Amiga OCS/ECS, no GfxCard")
  18.     (set #Gfx2  "Amiga AGA, no GfxCard")
  19.     (set #Gfx3  "CD-32 AGA, no GfxCard")
  20.     (set #Gfx4  "Card with CyberGraphX emulation")
  21.     (set #Gfx5  "!!BETA!! Card with Picasso96 emulation !!BETA!!")
  22.     (set #Gfx6  "Card with EGS emulation")
  23.     (set #Gfx7  "Picasso II(+)/IV")
  24.     (set #Gfx8  "Retina Z2/BLT Z3")
  25.     (set #Gfx9  "Merlin II")
  26.     (set #Gfx10 "OpalVision")
  27.     (set #Gfx11 "Amiga OCS/ECS/AGA, other GfxCard")
  28.     (set #Msg_CopyEnvConfig "Copying appropriate configuration to ENV:")
  29.     (set #Msg_LibPath "Library Path")
  30.     (set #Msg_InstallingLibs "Copying Libraries...")
  31.     (set #Msg_Ghostscript (cat "\nDo you already have Ghostscript installed ?\n\n"
  32.                                "(When answering with <Yes>, you have to supply\n"
  33.                                " the program's path and name here.)\n"
  34.                          )
  35.     )
  36.     (set #Msg_GSPath "Path and name of Ghostscript executable")
  37.     (set #Msg_MetaView    (cat "\nDo you already have MetaView installed ?\n\n"
  38.                                "(When answering with <Yes>, you have to supply\n"
  39.                                " the program's path and name here.)\n"
  40.                          )
  41.     )
  42.     (set #Msg_MVPath "Path and name of MetaView executable")
  43.     (set #Msg_CatPath "Catalog Path")
  44.     (set #Msg_InstallingCats "Copying catalog files...")
  45.     (set #Msg_VMEM "Now modifying your S:User-Startup for VMem-Support...")
  46.     (set #Msg_VMemPath "Virtual Memory Path")
  47.     (set #Msg_CopyPrefs "Copy SVPrefs to SYS:Prefs ?")
  48.     (set #Msg_PackerSupport "Install PackerSupport right now ?")
  49.     (set #Msg_SQOperators "Install SQ-Operators right now ?")
  50.     (set #Msg_Ready "SuperView-Library has been installed now.\nIf this was an Update, you should\nreboot your computer now.")
  51.  
  52.  
  53. (if (= @language "deutsch")
  54.   (
  55.     (set #Msg_Yes "Ja")
  56.     (set #Msg_No  "Nein")
  57.     (set #Msg_BasicConfig "Was ist Ihre Grundkonfiguration ?")
  58.     (set #Gfx0  "Keine Angabe (nichts ändern)")
  59.     (set #Gfx1  "Amiga OCS/ECS, keine Grafikkarte")
  60.     (set #Gfx2  "Amiga AGA, keine Grafikkarte")
  61.     (set #Gfx3  "CD-32 AGA, keine Grafikkarte")
  62.     (set #Gfx4  "Karte mit CyberGraphX-Emulation")
  63.     (set #Gfx5  "Karte mit Picasso96-Emulation")
  64.     (set #Gfx6  "Karte mit EGS-Emulation")
  65.     (set #Gfx7  "Picasso II(+)/IV")
  66.     (set #Gfx8  "Retina Z2/BLT Z3")
  67.     (set #Gfx9  "Merlin II")
  68.     (set #Gfx10 "OpalVision")
  69.     (set #Gfx11 "Amiga OCS/ECS/AGA, andere Grafikkarte")
  70.     (set #Msg_CopyEnvConfig "Kopiere notwendige Konfiguration nach ENV:")
  71.     (set #Msg_LibPath "Library-Pfad")
  72.     (set #Msg_InstallingLibs "Kopiere Libraries...")
  73.     (set #Msg_Ghostscript (cat "\nHaben Sie bereits Ghostscript installiert ?\n\n"
  74.                                "(Falls <Ja>, müssen Sie hier nun den\n"
  75.                                " Programmpfad und -namen angeben.)\n"
  76.                          )
  77.     )
  78.     (set #Msg_GSPath "Pfad und Name des Ghostscript-Programmes")
  79.     (set #Msg_MetaView    (cat "\nHaben Sie bereits MetaView installiert ?\n\n"
  80.                                "(Falls <Ja>, müssen Sie hier nun den\n"
  81.                                " Programmpfad und -namen angeben.)\n"
  82.                          )
  83.     )
  84.     (set #Msg_MVPath "Pfad und Name des MetaView-Programmes")
  85.     (set #Msg_CatPath "Katalogpfad")
  86.     (set #Msg_InstallingCats "Kopiere Katalogdateien...")
  87.     (set #Msg_VMEM "Ändere jetzt S:User-Startup für VMem-Unterstützung...")
  88.     (set #Msg_VMemPath "Pfad für virtuellen Speicher")
  89.     (set #Msg_CopyPrefs "SVPrefs nach SYS:Prefs kopieren ?")
  90.     (set #Msg_PackerSupport "Packer-Unterstützung jetzt gleich installieren ?")
  91.     (set #Msg_SQOperators "SQ-Operators jetzt gleich installieren ?")
  92.     (set #Msg_Ready "SuperView-Library wurde installiert.\nFalls dies ein Update war, sollten Sie ggf.\nIhren Rechner nun neu starten.")
  93.   )
  94. )
  95.  
  96. (if (= @language "italiano")
  97.   (
  98.     (set #Msg_Yes "Si")
  99.     (set #Msg_No  "No")
  100.     (set #Msg_BasicConfig "Qual è la tua configurazione base ?")
  101.     (set #Gfx0  "Non specificata (da non cambiare)")
  102.     (set #Gfx1  "Amiga OCS/ECS, senza SchedaGfx")
  103.     (set #Gfx2  "Amiga AGA, senza SchedaGfx")
  104.     (set #Gfx3  "CD-32 AGA, senza SchedaGfx")
  105.     (set #Gfx4  "Scheda con Emulazione-CyberGraphX")
  106.     (set #Gfx5  "Scheda con Emulazione-Picasso96")
  107.     (set #Gfx6  "Scheda con Emulazione-EGS")
  108.     (set #Gfx7  "Picasso II(+)/IV")
  109.     (set #Gfx8  "Retina Z2/BLT Z3")
  110.     (set #Gfx9  "Merlin II")
  111.     (set #Gfx10 "OpalVision")
  112.     (set #Gfx11 "Amiga OCS/ECS/AGA, altra SchedaGfx")
  113.     (set #Msg_CopyEnvConfig "Sto copiando configurazione appropriata in ENV:")
  114.     (set #Msg_LibPath "Percorso Libreria")
  115.     (set #Msg_InstallingLibs "Sto copiando Librerie...")
  116.     (set #Msg_Ghostscript (cat "\nHai già installato il Ghostscript ?\n\n"
  117.                                "(Se rispondi con <Si>, dovrai fornire\n"
  118.                                "nome e percorso del programma qui.)\n"
  119.                          )
  120.     )
  121.     (set #Msg_GSPath "Percorso e nome dell'eseguibile Ghostscript")
  122.     (set #Msg_MetaView    (cat "\nHai già installato il MetaView ?\n\n"
  123.                                "(Se rispondi con <Si>, dovrai fornire\n"
  124.                                "nome e percorso del programma qui.)\n"
  125.                          )
  126.     )
  127.     (set #Msg_MVPath "Percorso e nome dell'eseguibile MetaView")
  128.     (set #Msg_CatPath "Percorso Catalogo")
  129.     (set #Msg_InstallingCats "Sto copiando files del catalogo...")
  130.     (set #Msg_VMEM "Ora modifico la tua S:User-Startup per supporto-VMem...")
  131.     (set #Msg_VMemPath "Percorso Memoria Virtuale")
  132.     (set #Msg_CopyPrefs "Copio SVPrefs in SYS:Prefs ?")
  133.     (set #Msg_PackerSupport "Installo Supporto-Packer adesso ?")
  134.     (set #Msg_SQOperators "Installo Operatori-SQ adesso ?")
  135.     (set #Msg_Ready "Libreria-SuperView è stata ora installata.\nSe questo fosse un Aggiornamento, dovresti\neseguire un reboot del tuo computer ora.")
  136.   )
  137. )
  138.  
  139. ; **************************************************************************
  140. ; Create/Update basic configuration
  141.  
  142. (makedir "ENV:SuperView-Library")
  143. (makedir "ENVARC:SuperView-Library")
  144.  
  145. (set #selectsvdriver (askchoice
  146.                       (prompt #Msg_BasicConfig)
  147.                       (help @askchoice-help)
  148.                       (choices #Gfx0 #Gfx1 #Gfx2 #Gfx3 #Gfx4 #Gfx5 #Gfx6 #Gfx7 #Gfx8 #Gfx9 #Gfx10 #Gfx11)
  149.                       (default 1)
  150.                     )
  151. )
  152.  
  153. (if (= #selectsvdriver 1)  (set #env_source "docs/SampleConfigs/env_ECS")           )
  154. (if (= #selectsvdriver 2)  (set #env_source "docs/SampleConfigs/env_AGA")           )
  155. (if (= #selectsvdriver 3)  (set #env_source "docs/SampleConfigs/env_AGA_CD32")      )
  156. (if (= #selectsvdriver 4)  (set #env_source "docs/SampleConfigs/env_CyberGraphics") )
  157. (if (= #selectsvdriver 5)  (set #env_source "docs/SampleConfigs/env_Picasso96")     )
  158. (if (= #selectsvdriver 6)  (set #env_source "docs/SampleConfigs/env_EGS7")          )
  159. (if (= #selectsvdriver 7)  (set #env_source "docs/SampleConfigs/env_PicassoII")     )
  160. (if (= #selectsvdriver 8)  (set #env_source "docs/SampleConfigs/env_Retina")        )
  161. (if (= #selectsvdriver 9)  (set #env_source "docs/SampleConfigs/env_Merlin")        )
  162. (if (= #selectsvdriver 10) (set #env_source "docs/SampleConfigs/env_OpalVision")    )
  163. (if (= #selectsvdriver 11) (set #env_source "docs/SampleConfigs/env_GfxCards")      )
  164.  
  165. (if (> #selectsvdriver 0)
  166.   (
  167.     (copyfiles
  168.       (prompt #Msg_CopyEnvConfig)
  169.       (help @copyfiles-help)
  170.       (source #env_source)
  171.       (dest "ENV:")
  172.       (all)
  173.     )
  174.     (copyfiles
  175.       (prompt #Msg_CopyEnvConfig)
  176.       (help @copyfiles-help)
  177.       (source #env_source)
  178.       (dest "ENVARC:")
  179.       (all)
  180.     )
  181.   )
  182. )
  183.  
  184. (copyfiles
  185.   (prompt #Msg_CopyEnvConfig)
  186.   (help @copyfiles-help)
  187.   (source "env")
  188.   (dest "ENVARC:")
  189.   (all)
  190. )
  191.  
  192. ; **************************************************************************
  193. ; Install main libraries
  194.  
  195. (copylib
  196.   (prompt #Msg_InstallingLibs)
  197.   (help @copylib-help)
  198.   (source "libs/superview.library")
  199.   (set #svlibdir
  200.               (askdir
  201.                      (prompt #Msg_LibPath)
  202.                      (help @askdir-help)
  203.                      (newpath)
  204.                      (default "LIBS:")
  205.               )
  206.   )
  207.   (dest #svlibdir)
  208. )
  209.  
  210. (delete "LIBS:svobjects/CyberDataType.svobject" (optional force))
  211.  
  212. (set @default-dest #svlibdir)
  213.  
  214. (copylib
  215.   (prompt #Msg_InstallingLibs)
  216.   (help @copylib-help)
  217.   (source "libs/superviewsupport.library")
  218.   (dest #svlibdir)
  219. )
  220.  
  221. ; **************************************************************************
  222. ; Ask for Ghostscript
  223.  
  224. (set #gsquest (askchoice
  225.                 (prompt #Msg_Ghostscript)
  226.                 (help @askchoice-help)
  227.                 (choices #Msg_Yes #Msg_No)
  228.                 (default 1)
  229.               )
  230. )
  231.  
  232. (if (= #gsquest 0)
  233.   (
  234.     (set #gspath (askfile
  235.                   (prompt #Msg_GSPath)
  236.                   (help @askfile-help)
  237.                   (default "gs000")
  238.                 )
  239.     )
  240.     (set #gspathopt (cat "GS_PATH=" #gspath "\n"))
  241.     (textfile
  242.       (dest "ENV:SuperView-Library/Ghostscript.controlpad")
  243.       (append #gspathopt)
  244.     )
  245.     (copyfiles
  246.       (source "ENV:SuperView-Library/Ghostscript.controlpad")
  247.       (dest "ENVARC:SuperView-Library")
  248.     )
  249.   )
  250. )
  251.  
  252. ; **************************************************************************
  253. ; Ask for MetaView
  254.  
  255. (set #mvquest (askchoice
  256.                 (prompt #Msg_MetaView)
  257.                 (help @askchoice-help)
  258.                 (choices #Msg_Yes #Msg_No)
  259.                 (default 1)
  260.               )
  261. )
  262.  
  263. (if (= #mvquest 0)
  264.   (
  265.     (set #mvpath (askfile
  266.                   (prompt #Msg_MVPath)
  267.                   (help @askfile-help)
  268.                   (default "MetaView")
  269.                 )
  270.     )
  271.     (set #mvpathopt (cat "METAVIEW_PATH=" #mvpath "\n"))
  272.     (textfile
  273.       (dest "ENV:SuperView-Library/MetaView.controlpad")
  274.       (append #mvpathopt)
  275.     )
  276.     (copyfiles
  277.       (source "ENV:SuperView-Library/MetaView.controlpad")
  278.       (dest "ENVARC:SuperView-Library")
  279.     )
  280.   )
  281. )
  282.  
  283. ; **************************************************************************
  284. ; Install catalogs
  285.  
  286. (makedir "SYS:locale")
  287. (makedir "SYS:locale/catalogs")
  288.  
  289. (copyfiles
  290.   (prompt #Msg_InstallingCats)
  291.   (help @copyfiles-help)
  292.   (source "locale/catalogs")
  293.   (set #svcatdir
  294.               (askdir
  295.                      (prompt #Msg_CatPath)
  296.                      (help @askdir-help)
  297.                      (newpath)
  298.                      (default "SYS:locale/Catalogs")
  299.               )
  300.   )
  301.   (dest #svcatdir)
  302.   (all)
  303. )
  304.  
  305. ; **************************************************************************
  306. ; Install library modules
  307.  
  308. (set #svobjectdir   (tackon #svlibdir "svobjects"))
  309. (set #svdriverdir   (tackon #svlibdir "svdrivers"))
  310. (set #svoperatordir (tackon #svlibdir "svoperators"))
  311.  
  312. (makedir #svobjectdir)
  313. (makedir #svdriverdir)
  314. (makedir #svoperatordir)
  315.  
  316. (copyfiles
  317.   (prompt #Msg_InstallingLibs)
  318.   (help @copyfiles-help)
  319.   (source "libs/svobjects")
  320.   (dest (tackon #svlibdir "svobjects"))
  321.   (pattern "#?")
  322.   (confirm)
  323.   (files)
  324. )
  325.  
  326. (copyfiles
  327.   (prompt #Msg_InstallingLibs)
  328.   (help @copyfiles-help)
  329.   (source "libs/svdrivers")
  330.   (dest (tackon #svlibdir "svdrivers"))
  331.   (pattern "#?")
  332.   (confirm)
  333.   (files)
  334. )
  335.  
  336. (copyfiles
  337.   (prompt #Msg_InstallingLibs)
  338.   (help @copyfiles-help)
  339.   (source "libs/svoperators")
  340.   (dest (tackon #svlibdir "svoperators"))
  341.   (pattern "#?")
  342.   (confirm)
  343.   (files)
  344. )
  345.  
  346. (if (>= #cpu 68020)
  347.   (
  348.     (copyfiles
  349.       (prompt #Msg_InstallingLibs)
  350.       (help @copyfiles-help)
  351.       (source "libs/68030")
  352.       (dest #svlibdir)
  353.       (confirm)
  354.       (all)
  355.     )
  356.   )
  357. )
  358.  
  359. ; **************************************************************************
  360. ; Modify User-Startup
  361.  
  362. (startup "SuperView-Library"
  363.   (prompt #Msg_VMEM)
  364.   (help @startup-help)
  365.   (set vmemdir
  366.               (askdir
  367.                      (prompt #Msg_VMemPath)
  368.                      (help @askdir-help)
  369.                      (newpath)
  370.                      (default "T:")
  371.               )
  372.   )
  373.  
  374.   (command "Assign VMEM: "vmemdir"\n")
  375. )
  376.  
  377. ; **************************************************************************
  378. ; Install SVPrefs
  379.  
  380. (copyfiles
  381.   (prompt #Msg_CopyPrefs)
  382.   (help @copyfiles-help)
  383.   (source "Prefs")
  384.   (dest "SYS:Prefs")
  385.   (all)
  386.   (confirm)
  387. )
  388.  
  389. ; **************************************************************************
  390. ; Ask for Packersupport
  391.  
  392. (if (exists "PackerSupport")
  393.   (
  394.     (set #ask_ps (askbool (prompt #Msg_PackerSupport) (help @askbool-help) ) )
  395.  
  396.     (if (= #ask_ps TRUE)
  397.       (
  398.         (copyfiles
  399.           (prompt #Msg_InstallingLibs)
  400.           (help @copyfiles-help)
  401.           (source "PackerSupport/libs/svobjects")
  402.           (dest (tackon #svlibdir "svobjects"))
  403.           (pattern "#?")
  404.           (files)
  405.         )
  406.       )
  407.     )
  408.   )
  409. )
  410.  
  411. ; **************************************************************************
  412. ; Ask for SQOperators
  413.  
  414. (if (exists "SQ-Operators")
  415.   (
  416.     (set #ask_sq (askbool (prompt #Msg_SQOperators) (help @askbool-help) ) )
  417.  
  418.     (if (= #ask_sq TRUE)
  419.       (
  420.         (copyfiles
  421.           (prompt #Msg_CopyEnvConfig)
  422.           (help @copyfiles-help)
  423.           (source "SQ-Operators/envarc")
  424.           (dest "ENVARC:")
  425.           (all)
  426.         )
  427.         (copyfiles
  428.           (prompt #Msg_InstallingLibs)
  429.           (help @copyfiles-help)
  430.           (source "SQ-Operators/libs/svoperators")
  431.           (dest (tackon #svlibdir "svoperators"))
  432.           (pattern "#?")
  433.           (confirm)
  434.           (files)
  435.         )
  436.       )
  437.     )
  438.   )
  439. )
  440.  
  441. ; **************************************************************************
  442. ; EOF ;-)
  443.  
  444. (exit #Msg_Ready)
  445.