home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Commercial / CGXV3_Elbox / CGXV3_Install next >
Text File  |  2000-10-25  |  25KB  |  494 lines

  1. ;*****************************************************************************
  2. ;    ______        __                  ______                     __  __   __
  3. ;   / __  /       / /                 / __  / ELBOX INSTALL      / /  \ \ / /
  4. ;  / /  -'__  __ / /___ ______ _____ / /_ -'_____ ______ ______ / /__  \ \ /
  5. ; / /     \ \/ // __  // ____// .__// // \ / .__// __  // __  // __  / /  /  V3
  6. ;/ /___    \  // /_/ // __/_ / /   / /_/ // /   / __  // /_/ // / / / / \ \
  7. ;\____/    / //_____//_____//_/   /_____//_/   /_/ /_// ____//_/ /_/ /_/ \_\
  8. ;         /_/                                        / /
  9. ;                                                   /_/
  10. ; S3           : Generic ViRGE 86C325 & ViRGE/DX 82C375 Driver
  11. ;
  12. ; CyberGraphX V3 ©1997-2000 Vision Factory Development
  13. ; CyberGraphX V3 Update Installer ©1995,1996,1997,1998,1999,2000 by Robert C. Reiswig 
  14. ; Mediator ©2000 by Elbox
  15. ; $VER: V0.48 (Oct-25-2000)
  16. ; If you wish to use any part of this installer you must ask. May not be 
  17. ; integrated/placed into any other package! You may NOT change this in an way!
  18. ; You man NOT take or use the ENV definitions and use them without direct
  19. ; permission from me! Changes, suggestions or problems: rob@cgx.vgr.com
  20. ;********************************************************************************
  21.  
  22. ;MediatorViRGE file name , rest ElboxViRGE
  23.  
  24. ;********************************************************************************
  25. ; Cyber Release & Boards
  26. ;********************************************************************************
  27. (set @user-level 2)
  28. (set #cyberver "V3 41.2")
  29. (set NoBoard 0)
  30. (set whereback "SYS:Storage")
  31. (message (cat "CyberGraphX " #cyberver "\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"
  32.               "Generic PCI\n\nViRGE (86C325) / ViRGE/DX (86C375)\n\ndrivers for the Elbox Mediator"
  33.          )
  34. )
  35.  
  36. (welcome)
  37. ;********************************************************************************
  38. ; Read All System information
  39. ;********************************************************************************
  40. (set cpu (database "cpu")) (if (> (exists ("sys:libs/68060.library")) 0) (set cpu "68060") )
  41. (set vblank (database "vblank")) (set graphmem (database "graphics-mem"))
  42. (set totmem (database "total-mem")) (set osver (/ (getversion "LIBS:version.library") 65536))
  43. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  44. (set fastmem (- totmem graphmem))
  45. ( if (= osver 37) ( (set workbench "2.0")) ( if (= osver 38) ( (set workbench "2.1"))
  46. ( if (= osver 39) ( (set workbench "3.0")) ( if (= osver 40) ( (set workbench "3.1"))
  47. ( if (= osver 41) ( (set workbench "3.2")) )))))
  48. (set pick 0)
  49.  
  50. ;********************************************************************************
  51. ;English Strings
  52. ;********************************************************************************
  53. (set #By (cat "\n\nCyberGraphX\n\nRelease Version " #cyberver "\n\n\n\n"
  54.               "by:\n\nVision Factory Development"
  55.           
  56.          )
  57. )
  58.  
  59. (set #askzorro "\nWhat type of machine is CyberGraphX V3 installed on?\n")
  60. (set #askcpu "\nWhat CPU does the machine have that you are updating CyberGraphX V3 on? The installer has found:\n")
  61. (set #wherelibs "Where do you want the CyberGraphX V3 libraries installed? The default is 'SYS:Libs'")
  62. (set #whatboard (cat "\nPlease Select the Graphics Board(s) you wish to Install CyberGraphX V3 for:\n"))
  63. (set #todo-prompt "\nDo you wish to install:\n")
  64. (set #cgxmode-todo " CGXMode - Create & Change Screen Modes")
  65. (set #wheremode "Where do you wish to copy the CGXMode Program?")
  66. (set #whereshowcgxconfig "Where do you wish to copy the ShowCGXconfig Program?")
  67. (set #showcgxconfig " ShowCGXconfig - CGX Info Program")
  68.  
  69. ;***** New Strings for Aug-11-97
  70. (set #nocvppcboard "\n\n\nCurrently there is no public driver for the CyberVisionPPC graphics card.")
  71. (set #noretinaboard "\n\n\nCurrently there is no public driver for the Retina BLT Z3 graphics card.")
  72. (set #nopicasso4board "\n\n\nCurrently there is no public driver for the Picasso IV graphics card.")
  73. (set #noinfernoboard "\n\n\nCurrently there installer does not fully support the Inferno yet.")
  74.  
  75. (set #ask-MODEFILE1 "Which modefile should be installed for the ") 
  76. (set #ask-MODEFILE2 "? The khz number should not exceed your monitors max khz!")
  77. (set #15KHZ "15khz maximum") (set #31KHZ "31khz maximum")
  78. (set #35KHZ "35khz maximum") (set #38KHZ "38khz maximum")
  79. (set #48KHZ "48khz maximum") (set #57KHZ "57khz maximum")
  80. (set #64KHZ "64khz maximum") (set #80KHZ "80khz maximum")
  81.  
  82. (set #yes "Yes")
  83. (set #no "No")
  84. (set #followingenv "\n\n\n\nThe following section will set the Env Vars for CyberGraphX V3.")
  85. (set #whatboard-tt "\n\n\n\nThe following ToolTypes will be set for the:\n\n")
  86.  
  87.  
  88. ;*********** NEW English Strings:  Wednesday 03-Sep-97 *************************
  89. (set #nobackup "\n\nThis installer will install CGX V3 for the first time. Before you start you should use the backup program that came with your RTG Graphics system. Then you should use the uninstaller that came with it. If it did not come with these, then you will need to remove it by hand.\n\nYou should do this now if you have not done so.")
  90. (set #whatboot "\nWhat bootlogo would you like to use?\n")
  91. (set #bootdefault "CyberGraphX - Default")
  92. (set #bootppc "Light My Fire - PPC")
  93. (set #bootnone "Don't copy - Already Installed")
  94.  
  95.  
  96. ;*********** NEW English Strings:  Wednesday 22-Oct-97 *************************
  97.  
  98. ;*********** NEW English Strings:  Monday 01-Dec-97 *************************
  99. (set #noaga "\n\n\nCurrently there installer does not fully support the AGA Chipset or the driver is not out. Please see http://www.vgr.com for more info.")
  100. (set #CGXModeNot4AGA " CGXMode - Not for AGA Driver")
  101. (set #noenvaga "\n\nThe following ENV VARs that you will set will be use by the _graphics card(s)_ that you selected. They will NOT be used by the AGA-PPC driver.")
  102.  
  103. ;*********** NEW English Strings:  Wednesday 21-Jan-98 **********************
  104. (set #updatep4flash "\nTo use CyberGraphX with the Picasso IV you should be running version 2.0 or greater of the Picasso IV FlashROM.\n\nThe installer has found a version lower then 2.0.\n\nForm more information and newer FlashROMs you can contact:\nYour Dealer\nVillage Tronic\nVillage Tronic Web site\n")
  105.  
  106. ;*********** NEW English Strings:  Wednesday 11-Mar-98 **********************
  107. (set #noppc1 "\n\nYou selected the PPC option for one of your CPUs. The installer did not find the 'libs:PPC.library'.\n\nCyberGraphX may not work correctly.\n\n Do you wish to reselect the CPU type?")
  108. (set #noppcaga "\nYou selected the 'AGA (PPC Only)' option when picking what graphics card (display device) to use with CyberGraphX. The installer did not find the 'libs:PPC.library'.\n\n The AGACGX driver needs a PPC card installed to work correctly.\n\nDo you wish to Abort the install now?.")
  109. (set #agaquit "\nCyberGraphX install/update exiting.")
  110.  (set #noboard "\nOne of the board(s) or chipset(s) you selected is not currently supported.\n\nPlease look on http://www.vgr.com for an update or wait until the next CyberGraphX archive is released.\n\nThe card with the missing driver was the:\n") 
  111.  
  112.  
  113. ;*********** NEW English Strings: Monday 28-Aug-00 14:57:13 **********************
  114. (set #envtt "\nCurrently CGX is set to the default settings.\n\n\nPlease see the CyberGraphX homepage\n\nhttp://www.vgr.com/cgx\n\nfor a full list of settings and what they do.")
  115. (set #cgxv4 (cat "\nCheck out CyberGraphX V4 at:\nhttp://www.vgr.com/v4\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
  116.                  "\n- Includes -\nCustom drivers for each PCI Elbox Card\nHardware blitter support\nCGXVideo support\nCGX Prefs Program\nLatest CGXMode\nCGXMode monitor database\nFully compatible with CGX V3\n68040 version of the CGX library")
  117. )
  118.  
  119.  
  120.  
  121. ;********************************************************************************
  122. ;German Strings
  123. ;********************************************************************************
  124. (if (= @language "deutsch")
  125. (
  126.  (set #askzorro "\nWelche Erweiterungsslots besitzt der Computer, auf dem Sie CyberGraphX V3 installieren ?\n")
  127.  (set #askcpu "\nWelchen Prozessor besitzt der Computer, auf dem Sie CyberGraphX V3 installieren wollen ? Der installer hat folgendes gefunden:\n")
  128.  (set #wherelibs "Wohin sollen die CyberGraphX V3 Bibliotheken installiert werden? Standard ist 'SYS:Libs'")
  129.  (set #whatboard (cat "\nBitte wählen Sie die Grafikkarte(n), mit denen Sie CyberGraphX V3 benutzen wollen:\n"))
  130.  (set #todo-prompt "\nWelches der folgenden Programme wollen Sie installieren: ?\n")
  131.  (set #cgxmode-todo " CGXMode - Erstellen & Ändern von Bildschirmmodis")
  132.  (set #wheremode "Wohin wollen Sie das CGXMode Programm kopiert haben?")
  133.  (set #whereshowcgxconfig "Wohin wollen Sie das ShowCGXconfig Programm kopiert haben?")
  134.  (set #showcgxconfig " ShowCGXconfig - CyberGraphX Informationsprogramm")
  135.  
  136.  ;***** New Strings for Aug-11-97
  137.  (set #nocvppcboard "\n\n\nMomentan ist kein Treiber für die CyberVisionPPC Grafikkarte frei verfügbar.")
  138.  (set #noretinaboard "\n\n\nMomentan ist kein Treiber für die Retina BLT Z3 Grafikkarte frei verfügbar.")
  139.  (set #nopicasso4board "\n\n\nMomentan ist kein Treiber für die PicassoIV Grafikkarte frei verfügbar.")
  140.  (set #noinfernoboard "\n\n\nMomentan unterstützt dieses Skript die Installation der Inferno Grafikkarte noch nicht.")
  141.  
  142.  (set #ask-MODEFILE1 "Welche Monitorfrequenzdatei wählen Sie für die ") 
  143.  (set #ask-MODEFILE2 "? Die khz Angabe sollte die maximale khz Angabe für ihren Bildschirm nicht überschreiten!")
  144.  (set #15KHZ "15khz maximum") (set #31KHZ "31khz maximum")
  145.  (set #35KHZ "35khz maximum") (set #38KHZ "38khz maximum")
  146.  (set #48KHZ "48khz maximum") (set #57KHZ "57khz maximum")
  147.  (set #64KHZ "64khz maximum") (set #80KHZ "80khz maximum")
  148.  
  149.  (set #yes "Ja")
  150.  (set #no "Nein")
  151.  (set #followingenv "\n\n\n\nDer folgende Abschnitt setzt die Umgebungsvariablen für CyberGraphX V3.")
  152.  (set #whatboard-tt "\n\n\n\nDie folgenden Piktogrammmerkmale werden gesetzt für die:\n\n")
  153.  
  154.  
  155.  
  156.  ;*********** NEW Strings:  Wednesday 03-Sep-97 *************************
  157.  (set #nobackup "\n\nDieses Installationsskript führt eine Erstinstallation von CyberGraphX V3 durch. Bevor Sie weitermachen, sollten Sie das evtl. vorhandene alte System mit dem entsprechend dafür vorgesehenen Programm sichern. Verwenden Sie dann das Programm zum Entfernen der alten RTG Systemsoftware. Wenn dieses Programm nicht vorhanden ist, so müssen Sie das manuell erledigen.\n\nSie müssen es auf jeden Fall tun, bevor sie mit dieser Installation fortfahren.")
  158.  (set #whatboot "\nWelches StartupLogo wollen Sie installieren ?\n")
  159.  (set #bootdefault "CyberGraphX - Standard")
  160.  (set #bootppc "Light My Fire - PPC")
  161.  (set #bootnone "Nichts kopieren - bereits installiert")
  162.  
  163.  
  164.  ;*********** NEW English Strings:  Wednesday 22-Oct-97 *************************
  165.  
  166.  ;*********** NEW Strings:  Monday 01-Dec-97 *************************
  167.  (set #noaga "\n\n\nEntweder unterstützt das Installationsskript nicht vollständig den AGA Chipsatz oder der Treiber ist nicht verfügbar. Bitte schauen Sie unter http://www.vgr.com für weitere Informationen.")
  168.  (set #CGXModeNot4AGA " CGXMode - Nicht verwendbar für den AGA Treiber!")
  169.  (set #noenvaga "\n\nDie folgenden Variablen, die gesetzt werden, werden nur von _Grafikkarten_ verwendet. Sie werden NICHT vom AGA-PPC Treiber benutzt.")
  170.  (set #multimediamem (cat "MULTIMEDIAMEM\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  171.                           "Wenn MULTIMEDIAMEM=YES, reserviert CGX3 1MB Grafikspeicher der CV64/3D für 3D Texturen & Video Overlays. "
  172.                           "Wenn NO, verhält sich die CV64/3D wie eine andere Karte, die diese Möglichkeiten nicht besitzt, wie z.B. die PicassoII."
  173.                           "Sie erhalten dann volle 4MB Grafikspeicher für Bildschirme mit ZorroIII Geräten (3.5MB bei ZorroII). "
  174.                           "MULTIMEDIAMEM ist standardmäßig auf YES gesetzt (womit 3MB des Grafikspeichers für Bildschirme genutzt werden)."
  175.                      )
  176.  )
  177.  (set #blackborder   (cat "BLACKBORDER\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  178.                           "Das Setzen des Merkmals 'BLACKBORDER=YES' führt dazu, daß der Rahmen um "
  179.                           "den Bildschirm schwarz dargestellt wird. Die RetinaBLT Z3 benutzt sonst immer Farbe 0, "
  180.                           "wogegen andere Karten meist immer schwarz verwenden. Standardeinstellung ist 'BLACKBORDER=NO'."
  181.                      )
  182.  )
  183.  (set #noboard "\nOne of the board(s) or chipset(s) you selected is not currently supported.\n\nPlease look on http://www.vgr.com for an update or wait until the next CyberGraphX archive is released.\n\nThe card with the missing driver was the:\n") 
  184.  
  185.  ;*********** NEW English Strings:  Wednesday 21-Jan-98 **********************
  186.  (set #updatep4flash "\nUm CyberGraphX3 mit der PicassoIV zu benutzen, sollten sie auf jeden Fall die Version 2.0 oder größer des PicassoIV FlashROMs installieren.\n\nDas Installationsskript entdeckte eine ältere Version.\n\nFür weitere Informationen und eine neuere FlashROM Version kontaktieren Sie bitte:\nIhren Händler\nVillageTronic\ndie VillageTronic WWW Seite\n")
  187. )
  188. )
  189.  
  190.  
  191. ;********************************************************************************
  192. ; French Strings by: Gregory Eycken <geycken@geocities.com>
  193. ;********************************************************************************
  194. (if (= @language "français")
  195. (
  196.  (set #askzorro "\nSur quel type d'ordinateur CyberGraphX V3 va-t-il être installé?\n")
  197.  (set #askcpu "\nQuel est le processeur de l'ordinateur sur lequel vous voulez installer CyberGraphX V3? L'installeur a trouvé :\n")
  198.  (set #wherelibs "Où désirez-vous installer les bibliothèques de CyberGraphX V3? Par défaut, c'est 'SYS:Libs'.")
  199.  (set #whatboard (cat "\nVeuillez sélectionner la carte graphique dont vous voulez installer le fichier moniteur :\n"))
  200.  (set #todo-prompt "\nDésirez-vous installer :\n")
  201.  (set #cgxmode-todo " CGXMode - Créer et modifier les modes d'écran")
  202.  (set #wheremode "Où désirez-vous installer le programme CGXMode?")
  203.  (set #whereshowcgxconfig "Où désirez-vous installer le programme ShowCGXconfig?")
  204.  (set #showcgxconfig " ShowCGXconfig - Programme d'informations CyberGraphX")
  205.  
  206.  ;***** New Strings for Aug-11-97
  207.  (set #nocvppcboard "\n\n\nIl n'y a actuellement pas de fichier moniteur pour la carte graphique CyberVisionPPC.")
  208.  (set #noretinaboard "\n\n\nIl n'y a actuellement pas de fichier moniteur pour la carte graphique Retina BLT Z3.")
  209.  (set #nopicasso4board "\n\n\nIl n'y a actuellement pas de fichier moniteur pour la carte graphique Picasso IV.")
  210.  (set #noinfernoboard "\n\n\nLe script d'installation n'a pas conçu pour supporter entièrement l'Inferno.") 
  211.  
  212.  (set #ask-MODEFILE1 "Quel fichier de modes désirez-vous installer pour la ") 
  213.  (set #ask-MODEFILE2 "?\nLe nombre de kHz ne devrait pas dépasser la limite maximale de votre moniteur!")
  214.  (set #none "Aucun")
  215.  (set #15KHZ "15kHz maximum") (set #31KHZ "31kHz maximum")
  216.  (set #35KHZ "35kHz maximum") (set #38KHZ "38kHz maximum")
  217.  (set #48KHZ "48kHz maximum") (set #57KHZ "57kHz maximum")
  218.  (set #64KHZ "64kHz maximum") (set #80KHZ "80kHz maximum")
  219.  
  220.  (set #yes "Oui")
  221.  (set #no "Non")
  222.  (set #followingenv "\n\n\n\nLa partie suivante de l'installation va configurer les variables d'environnement pour CyberGraphX V3.")
  223.  (set #whatboard-tt "\n\n\n\nLa partie suivante de l'installation va configurer les ToolTypes du fichier moniteur de la\n")
  224.  
  225.  
  226.  
  227.  ;*********** New Strings for Wednesday 03-Sep-97 *************************
  228.  (set #nobackup "\n\nCe script d'installation va installer CyberGraphX V3 pour la première fois.\n\nAvant de poursuivre, si vous utilisez un autre système RTG, faites un archivage puis une déinstallation à l'aide des utilitaires fournis avec cet autre système. Si ce système ne contient pas d'utilitaires, enlevez les fichiers manuellement.\n\n")
  229.  (set #whatboot "\nQuel logo désirez-vous afficher durant l'initialisation?\n")
  230.  (set #bootdefault "CyberGraphX - Par défaut")
  231.  (set #bootppc "Light My Fire - Pour les PowerPC")
  232.  (set #bootnone "Ne rien copier - Le logo est déjà installé")
  233.  
  234.  ;*********** New Strings for Wednesday 22-Oct-97 *************************
  235.  
  236. )
  237. )
  238.  
  239. ;********************************************************************************
  240. ; Start Update
  241. ;********************************************************************************
  242. ;(message #by)
  243. (message #nobackup)
  244.  
  245.  
  246. ;*******************************************************************
  247. ;  What board to update
  248. ;*******************************************************************
  249. (set BGuess 0)
  250.  
  251. (if (> (exists ("devs:monitors/MediatorViRGE")) 0) (set BGuess (+ BGuess 1)) )
  252.  
  253.  
  254.   (set board (askoptions (choices  " MediatorViRGE" 
  255.                           (prompt #whatboard)
  256.                       (help #whatboard)
  257.                           (default BGuess)
  258.                          )
  259.              )     
  260.   )
  261.  
  262. (if (AND (= (exists (tackon "S3Drivers" "MediatorViRGE")) 0) (IN board 0) ) (abort (cat #noboard "MediatorViRGE")) )
  263.  
  264.  
  265. ;********************************************************************
  266. ; Double Check on the CPU
  267. ;********************************************************************
  268. (procedure askaboutcpu
  269.  
  270. (set cpu (database "cpu"))
  271. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 0))
  272. (if (= cpu 68020) (set #cpu 0)) (if (= cpu 68030) (set #cpu 0))
  273. (if (= cpu 68040) (set #cpu 1)) (if (= cpu 68060) (set #cpu 1)) 
  274. (if (= @installer-version 0)
  275.   (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 1) )
  276.   (if (= cpu 68060) (set #cpu 1))
  277. )
  278. (if (> (exists ("libs:PPC.library")) 0) (set #cpu 2) )
  279.  
  280. (set cpuPick (askchoice (choices "68020 or 68030" "68040 or 68060")
  281.             (prompt #askcpu)
  282.                     (help   #askcpu)
  283.                   (default #cpu)
  284.       )
  285. )
  286.  
  287. (if (= cpuPick 0) ((set cpuadd ".020") (set cpuadd-1 ".020")) )
  288. (if (= cpuPick 1) ((set cpuadd ".040") (set cpuadd-1 ".040")) )
  289.  
  290. ); END askaboutcpu
  291.  
  292. ;(askaboutcpu)
  293. (set cpuadd ".020") (set cpuadd-1 ".020")
  294.  
  295. ;*******************************************************************
  296. ;  ASK where cybergfx libs are
  297. ;*******************************************************************
  298. (set wherelibs   (askdir (prompt #wherelibs)
  299.              (help   #wherelibs)
  300.                   (default "SYS:Libs")
  301.          )
  302. )
  303.  
  304. ;*******************************************************************
  305. ;  Copy libs if there
  306. ;*******************************************************************
  307. (if (exists (tackon "cgxsystemlib" (cat "cgxsystem.library" cpuadd-1)) )
  308.   (copyfiles (source (tackon "cgxsystemlib" (cat "cgxsystem.library" cpuadd-1))) (dest wherelibs) (newname "cgxsystem.library") (optional "nofail") ) 
  309. )
  310.  
  311.  
  312. ;(if (exists (tackon "cgxbootpiclib" (cat "cgxbootpic.library" cpuadd)) )
  313. ;  (copyfiles (source (tackon "cgxbootpiclib" (cat "cgxbootpic.library" cpuadd))) (dest wherelibs) (newname "cgxbootpic.library") (optional "nofail") ) 
  314. ;)
  315.  
  316. ;*******************************************************************
  317. ;  Ask What bootlogo....
  318. ;*******************************************************************
  319. (if (> (exists ("c:multiview")) 0)  ((set #mpath "c:") (set mfound 1)) )
  320. (if (> (exists ("sys:Utilities/multiview")) 0) ((set #mpath "sys:Utilities") (set mfound 1)) )
  321. (if (= mfound 1) (run (cat "run " (tackon #mpath "multiview ") "cgxbootpiclib/bootlogos.iff")) )
  322.  
  323. (if (exists "libs:cgxbootpic.library") (set whatboot 1))
  324. (set whatboot  (askchoice
  325.                (choices #bootdefault #bootnone)
  326.                (prompt #whatboot)
  327.                (help   #whatboot)
  328.                (default whatboot)
  329.               )
  330. )
  331.  
  332. (if (AND (exists "cgxbootpiclib/cgxbootpic.library") (= whatboot 0))
  333.   (copyfiles (source "cgxbootpiclib/cgxbootpic.library") (dest wherelibs) (optional "nofail") ) 
  334. )
  335.  
  336.  
  337. ;*******************************************************************
  338. ;  Install monitor file and handle extra libs 
  339. ;*******************************************************************
  340.   (if (IN board 0)
  341.    (
  342.      (set zadd "")  
  343.  
  344.      (if (exists (tackon "S3Drivers" (cat "MediatorViRGE" zadd)))
  345.       (if (= (exists (tackon "devs:monitors" "MediatorViRGE.info")) 0)      
  346.        (copyfiles (source (tackon "S3Drivers" (cat "MediatorViRGE" zadd))) (dest "devs:monitors") (infos) (optional "nofail") ) 
  347.        (copyfiles (source (tackon "S3Drivers" (cat "MediatorViRGE" zadd))) (dest "devs:monitors") (optional "nofail") ) 
  348.       )      
  349.      )
  350.  
  351.      (if (exists (tackon "cgxvideolib" (cat "cgxvideo.library" cpuadd)) )
  352.        (copyfiles (source (tackon "cgxvideolib" (cat "cgxvideo.library" cpuadd))) (dest wherelibs) (newname "cgxvideo.library") (optional "nofail") ) 
  353.      )
  354.  
  355.      (if (exists (tackon "cgx3dvirgelib" (cat "cgx3dvirgin.library" "")) )
  356.        (copyfiles (source (tackon "cgx3dvirgelib" (cat "cgx3dvirgin.library" ""))) (dest wherelibs) (newname "cgx3dvirgin.library") (optional "nofail") ) 
  357.      )
  358.  
  359.    )
  360.   )
  361.  
  362.  
  363. ;*********************************************************************************
  364. ; Setup Monitor Config File Setup
  365. ;*********************************************************************************
  366. (set modefile 0)
  367. (procedure askconfigfile
  368.   (set modefile (askchoice
  369.                  (choices "None/Skip" #31KHZ #35KHZ #38KHZ #48KHZ #57KHZ #64KHZ #80KHZ)
  370.                  (prompt (cat #ask-MODEFILE1 boardname #ask-MODEFILE2))
  371.                  (help   (cat #ask-MODEFILE1 boardname #ask-MODEFILE2))
  372.                  (default modefile)
  373.                 )
  374.   )
  375.  
  376.   (if (> modefile 0)
  377.    (
  378.     (if (< (exists "env:CyberGraphX") 2) (makedir "env:CyberGraphX") )    
  379.     (if (< (exists "envarc:CyberGraphX") 2) (makedir "envarc:CyberGraphX") )    
  380.  
  381.     (if (= modefile 1) (set mode "Monitor-31khz")) (if (= modefile 2) (set mode "Monitor-35khz")) 
  382.     (if (= modefile 3) (set mode "Monitor-38khz")) (if (= modefile 4) (set mode "Monitor-48khz")) 
  383.     (if (= modefile 5) (set mode "Monitor-57khz")) (if (= modefile 6) (set mode "Monitor-64khz")) 
  384.     (if (= modefile 7) (set mode "Monitor-80khz")) 
  385.  
  386.     (if (< (exists "sys:prefs") 2) (makedir "sys:prefs") )  
  387.     (if (< (exists "sys:prefs/presets") 2) (makedir "sys:prefs/presets") )  
  388.     (if (< (exists "sys:prefs/presets/monitors") 2) (makedir "sys:prefs/presets/monitors") )    
  389.     (copyfiles (source (cat "prefs/presets/monitors/" mode))  (dest "sys:prefs/presets/monitors")) 
  390.  
  391.     ;(message (cat "setenv CyberGraphX/" boardname "Monitor " mode))
  392.     ;(run (cat "setenv CyberGraphX/" boardname "Monitor " mode))
  393.  
  394.     (delete (cat "env:CyberGraphX/" boardname "Monitor"))
  395.     (textfile (dest (cat "env:CyberGraphX/" boardname "Monitor")) (append mode))
  396.     (copyfiles (source (cat "env:CyberGraphX/" boardname "Monitor"))  (dest "envarc:CyberGraphX") )
  397.    )
  398.   )
  399. )
  400.  
  401. (if (IN board 0) ( (set boardname "MediatorViRGE") (askconfigfile))) 
  402.  
  403.  
  404.  
  405. ;*********************************************************************************
  406. ;* TTs & ENVs 
  407. ;*********************************************************************************
  408. (message #envtt)
  409.  
  410. ;*********************************************************************************
  411. ;* Ask user to install CGXMode 
  412. ;*********************************************************************************
  413. (set toolpick 3)
  414.  
  415.   (set ToDo (askoptions (choices #cgxmode-todo #showcgxconfig)
  416.                         (prompt #todo-prompt)
  417.                         (help #todo-prompt)
  418.                         (default toolpick)
  419.             )
  420.   ) 
  421.  
  422.   (if (IN ToDo 0) 
  423.     ( 
  424.       (set wheremode   (askdir (prompt #wheremode)
  425.                                (help   #wheremode)
  426.                            (default "SYS:Prefs")
  427.                )
  428.       )
  429.  
  430.       (if (exists "CGXMode/CGXMode")
  431.        (if (= (exists (tackon wheremode "CGXMode.info")) 0)
  432.         (copyfiles (source "CGXMode/CGXMode")  (dest wheremode) (infos) (optional "nofail")) 
  433.         (copyfiles (source "CGXMode/CGXMode")  (dest wheremode) (optional "nofail"))          
  434.        )
  435.       )
  436.  
  437.       ;(if (IN board 0) (set TTBOARD "MediatorViRGE") ) 
  438.  
  439.       ;(if (> board 0)
  440.       ;  (tooltype (dest (tackon wheremode "CGXMode")) (settooltype "BOARD" TTBOARD) ) 
  441.       ;)
  442.  
  443.       (if (= @language "deutsch")
  444.        (
  445.          (if (= (exists "Locale:Catalogs") 0) (makedir "sys:Locale/Catalogs") )
  446.          (if (= (exists (tackon "Locale:Catalogs" "deutsch")) 0) (makedir (tackon "sys:Locale/Catalogs" "deutsch")) )
  447.          (if (exists "CGXMode/catalogs/deutsch/cgxmode.catalog")
  448.            (copyfiles (source "CGXMode/catalogs/deutsch/cgxmode.catalog") (dest "sys:Locale/Catalogs/deutsch") )
  449.          )
  450.        )
  451.       )
  452.  
  453.     )
  454.   )
  455.  
  456.  
  457. (if (IN ToDo 1) 
  458.   ( 
  459.     (set whereshowcgxconfig   (askdir (prompt #whereshowcgxconfig)
  460.                              (help   #whereshowcgxconfig)
  461.                          (default "SYS:Tools")
  462.              )
  463.     )
  464.  
  465.     (if (exists "tools/showcgxconfig")
  466.      (if (= (exists (tackon whereshowcgxconfig "CGXMode.info")) 0)
  467.       (copyfiles (source "tools/showcgxconfig")  (dest whereshowcgxconfig) (infos) (optional "nofail")) 
  468.       (copyfiles (source "tools/showcgxconfig")  (dest whereshowcgxconfig) (optional "nofail"))          
  469.      )
  470.     )
  471.  
  472.   )
  473. )
  474.  
  475.  
  476.  
  477.  
  478.  
  479. ;*******************************************************************
  480. ;  END
  481. ;*******************************************************************
  482. (message #cgxv4)
  483.  
  484.  
  485. (if (> (exists ("c:multiview")) 0) (set #mpath "c:") )
  486. (if (> (exists ("sys:Utilities/multiview")) 0) (set #mpath "sys:Utilities") )
  487.  
  488. (run (cat "run " #mpath "/multiview ReadMe.txt") )
  489.  
  490. (set @default-dest "ram:")
  491.  
  492. (exit)
  493.