home *** CD-ROM | disk | FTP | other *** search
/ Dream 44 / Amiga_Dream_44.iso / Amiga / workbench / pilotes / gfx / cgxv41_r68.lha / CGXV3_Update next >
Text File  |  1997-06-04  |  15KB  |  329 lines

  1. ;*****************************************************************************
  2. ;    ______        __                  ______                     __  __   __
  3. ;   / __  /       / /                 / __  /      Update        / /  \ \ / /
  4. ;  / /  -'__  __ / /___ ______ _____ / /_ -'_____ ______ ______ / /__  \ \ /
  5. ; / /     \ \/ // __  // ____// .__// // \ / .__// __  // __  // __  / /  /  V3
  6. ;/ /___    \  // /_/ // __/_ / /   / /_/ // /   / __  // /_/ // / / / / \ \
  7. ;\____/    / //_____//_____//_/   /_____//_/   /_/ /_// ____//_/ /_/ /_/ \_\
  8. ;         /_/                                        / /
  9. ;                                                   /_/
  10. ; S3          : CyberVision64/3D, CyberVision64
  11. ; Cirrus Logic: PicassoII(+), Spectrum, Piccolo, Piccolo SD64, Inferno
  12. ;          
  13. ; CyberGraphX V3 BETA Update Installer ⌐1996,1997 by Robert C. Reiswig 
  14. ; $VER: V0.56 (June-03-1997)
  15. ;--------------------------------------------------------------------------------
  16. ; You may not use any part of this installer without asking!
  17. ; Installer suggestions, problems or changes: vgr@best.com
  18. ;********************************************************************************
  19.  
  20. ;********************************************************************************
  21. ; Cyber Release & Boards
  22. ;********************************************************************************
  23. (set @user-level 2)
  24. (set #cyberver "V3 41.2")
  25. (set NoBoard 0)
  26. (set whereback "SYS:Storage")
  27. (message (cat "\nCyberGraphX " #cyberver "\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  28.               "\nCyberVision64/3D & CyberVision64\n\nPicasso II(+)\n\nSpectrum\n\nPiccolo & Piccolo SD64\n\nInferno"
  29.          )
  30. )
  31.  
  32. (welcome)
  33. ;********************************************************************************
  34. ; Read All System information
  35. ;********************************************************************************
  36. (set cpu (database "cpu")) (if (> (exists ("sys:libs/68060.library")) 0) (set cpu "68060") )
  37. (set vblank (database "vblank")) (set graphmem (database "graphics-mem"))
  38. (set totmem (database "total-mem")) (set osver (/ (getversion "LIBS:version.library") 65536))
  39. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  40. (set fastmem (- totmem graphmem))
  41. ( if (= osver 37) ( (set workbench "2.0")) ( if (= osver 38) ( (set workbench "2.1"))
  42. ( if (= osver 39) ( (set workbench "3.0")) ( if (= osver 40) ( (set workbench "3.1"))
  43. ( if (= osver 41) ( (set workbench "3.2")) )))))
  44. (set pick 0)
  45.  
  46. ;********************************************************************************
  47. ;English Strings
  48. ;********************************************************************************
  49. (set #By (cat "\n\nCyberGraphX\n\nRelease Version " #cyberver "\n\n\n\n"
  50.               "by:\n\nVision Factory Development"
  51.           
  52.          )
  53. )
  54. (set #nobackup "\n\nThis installer will copy the correct new V3 Libs and Monitor to the correct places. It will not do any backup currently.\n\nThis will not install V3 for the first time, it just _updates_ a V3 system. A V2->V3 updater is in the works.")
  55. (set #askzorro "\nWhat type of machine is CyberGraphX V3 installed on?\n")
  56. (set #askcpu "\nWhat CPU does the machine have that you are updating CyberGraphX V3 on? The installer has found:\n")
  57. (set #wherelibs "Where are your CyberGraphX V3 libraries located? The default is 'SYS:Libs'")
  58. (set #whatboard (cat "\nPlease Select the Graphics Board you wish to update CyberGraphX Monitor File for:\n"))
  59. (set #todo-prompt "\nDo you wish to install:\n")
  60. (set #cgxmode-todo " CGXMode - Create & Change Screen Modes")
  61. (set #wheremode "Where do you wish to copy the CGXMode Program?")
  62. (set #whereshowcgxconfig "Where do you wish to copy the ShowCGXconfig Program?")
  63. (set #showcgxconfig " ShowCGXconfig - CGX Info Program")
  64.  
  65. ;********************************************************************************
  66. ;German Strings
  67. ;********************************************************************************
  68. (if (= @language "deutsch")
  69. (
  70.  (set #nobackup "\n\nDieses Installationsskript kopiert die neuen V3 Bibliotheken und Monitore in die entsprechenden Verzeichnisse. Es wird keine Sicherung vorgenommen.\n\nEs ist keine V3 Erstinstallation, das V3 System wird nur _erneuert_ . Ein V2->V3 Update ist aber bereits in Arbeit.")
  71.  (set #askzorro "\nWelche Erweiterungsslots besitzt der Computer, auf dem Sie CyberGraphX V3 installieren ?\n")
  72.  (set #askcpu "\nWelchen Prozessor besitzt der Computer, auf dem Sie CyberGraphX V3 installieren wollen ? Der installer hat folgendes gefunden:\n")
  73.  (set #wherelibs "Wo befinden sich die CyberGraphX V3 Bibliotheken ? Standard ist 'SYS:Libs'")
  74.  (set #whatboard (cat "\nBitte wΣhlen Sie die Grafikkarte, deren CyberGraphX Monitordatei erneuern wollen:\n"))
  75.  (set #todo-prompt "\nWelches der folgenden Programme wollen Sie installieren: ?\n")
  76.  (set #cgxmode-todo " CGXMode - Erstellen & ─ndern von Bildschirmmodis")
  77.  (set #wheremode "Wohin wollen Sie das CGXMode Programm kopiert haben?")
  78.  (set #whereshowcgxconfig "Wohin wollen Sie das ShowCGXconfig Programm kopiert haben?")
  79.  (set #showcgxconfig " ShowCGXconfig - CyberGraphX Informationsprogramm")
  80. )
  81. )
  82.  
  83. ;********************************************************************************
  84. ; Start Update
  85. ;********************************************************************************
  86. ;(message #by)
  87. (message #nobackup)
  88.  
  89.  
  90. ;********************************************************************
  91. ; Double Check on the CPU
  92. ;********************************************************************
  93. (set cpu (database "cpu"))
  94. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 0))
  95. (if (= cpu 68020) (set #cpu 0)) (if (= cpu 68030) (set #cpu 0))
  96. (if (= cpu 68040) (set #cpu 1)) (if (= cpu 68060) (set #cpu 1)) 
  97. (if (= @installer-version 0)
  98.   (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 1) )
  99.   (if (= cpu 68060) (set #cpu 1))
  100. )
  101.  
  102. (set cpuPick (askchoice (choices "68020 or 68030" "68040 or 68060")
  103.             (prompt #askcpu)
  104.                     (help   #askcpu)
  105.                   (default #cpu)
  106.       )
  107. )
  108.  
  109. (if (= cpuPick 0) (set cpuadd ".020")) (if (= cpuPick 1) (set cpuadd ".040"))
  110.  
  111. ;*******************************************************************
  112. ;  ASK where cybergfx libs are
  113. ;*******************************************************************
  114. (set wherelibs   (askdir (prompt #wherelibs)
  115.              (help   #wherelibs)
  116.                   (default "SYS:Libs")
  117.          )
  118. )
  119.  
  120. ;*******************************************************************
  121. ;  Copy libs if there
  122. ;*******************************************************************
  123. (if (exists (tackon "cgxsystemlib" (cat "cgxsystem.library" cpuadd)) )
  124.   (copyfiles (source (tackon "cgxsystemlib" (cat "cgxsystem.library" cpuadd))) (dest wherelibs) (newname "cgxsystem.library") (optional "nofail") ) 
  125. )
  126.  
  127. (if (exists (tackon "cgxmpeglib" (cat "cgxmpeg.library" cpuadd)) )
  128.   (copyfiles (source (tackon "cgxmpeglib" (cat "cgxmpeg.library" cpuadd))) (dest wherelibs) (newname "cgxmpeg.library") (optional "nofail") ) 
  129. )
  130.  
  131.  
  132. (if (exists (tackon "cgxbootpiclib" (cat "cgxbootpic.library" cpuadd)) )
  133.   (copyfiles (source (tackon "cgxbootpiclib" (cat "cgxbootpic.library" cpuadd))) (dest wherelibs) (newname "cgxbootpic.library") (optional "nofail") ) 
  134.  
  135.   (if (exists "cgxbootpiclib/cgxbootpic.library")
  136.     (copyfiles (source "cgxbootpiclib/cgxbootpic.library") (dest wherelibs) (optional "nofail") ) 
  137.   )
  138.  
  139. )
  140.  
  141. ;*******************************************************************
  142. ;  ASK what board to update
  143. ;*******************************************************************
  144. (set BGuess 0)
  145.  
  146. (if (> (exists ("devs:monitors/CVision3D")) 0)  (set BGuess (+ BGuess 1)) )
  147. (if (> (exists ("devs:monitors/CVision64")) 0)  (set BGuess (+ BGuess 2)) )
  148. (if (> (exists ("devs:monitors/PicassoII")) 0)  (set BGuess (+ BGuess 4)) )
  149. (if (> (exists ("devs:monitors/Spectrum")) 0)   (set BGuess (+ BGuess 8)) )
  150. (if (> (exists ("devs:monitors/Piccolo")) 0)    (set BGuess (+ BGuess 16)) )
  151. (if (> (exists ("devs:monitors/PiccoSD64")) 0)  (set BGuess (+ BGuess 32)) )
  152. (if (> (exists ("devs:monitors/Inferno")) 0)    (set BGuess (+ BGuess 64)) )
  153.  
  154.  
  155.  
  156.  
  157.   (set board (askoptions (choices  " CyberVision64/3D" " CyberVision64" " PicassoII(+)" " Spectrum"
  158.                                    " Piccolo" " Piccolo SD64" " Inferno"
  159.                           (prompt #whatboard)
  160.                       (help #whatboard)
  161.                           (default BGuess)
  162.                          )
  163.              )     
  164.   )
  165.  
  166.  
  167.   (if (IN board 0)
  168.    (
  169.      (set error (run "tools/ChkCV3DZorro"))
  170.      (if (> error 0) (set guessZ 1) (set guessZ 0) )
  171.   
  172.      (set pickZ (askchoice (choices "zorro2 - Amiga 2000/zorro2 Expansion Box" "zorro3 - Amiga 3000(T)/4000(T)")
  173.                        (prompt #askzorro)
  174.                        (help   #askzorro)
  175.                            (default guessZ)
  176.                 )
  177.      )
  178.   
  179.      (if (= pickZ 0) (set zadd ".Z2"))   (if (= pickZ 1) (set zadd ".Z3")) 
  180.  
  181.      (if (exists (tackon "S3Drivers" (cat "CVision3D" zadd)))
  182.       (if (= (exists (tackon "devs:monitors" "CVision3D.info")) 0)      
  183.        (copyfiles (source (tackon "S3Drivers" (cat "CVision3D" zadd))) (dest "devs:monitors") (newname "CVision3D") (infos) (optional "nofail") ) 
  184.        (copyfiles (source (tackon "S3Drivers" (cat "CVision3D" zadd))) (dest "devs:monitors") (newname "CVision3D") (optional "nofail") ) 
  185.       )      
  186.      )
  187.  
  188.      (if (exists (tackon "cgxvideolib" (cat "cgxvideo.library" cpuadd)) )
  189.        (copyfiles (source (tackon "cgxvideolib" (cat "cgxvideo.library" cpuadd))) (dest wherelibs) (newname "cgxvideo.library") (optional "nofail") ) 
  190.      )
  191.  
  192.      (if (exists (tackon "cgx3dvirgelib" (cat "cgx3dvirgin.library" cpuadd)) )
  193.        (copyfiles (source (tackon "cgx3dvirgelib" (cat "cgx3dvirgin.library" cpuadd))) (dest wherelibs) (newname "cgx3dvirgin.library") (optional "nofail") ) 
  194.      )
  195.  
  196.    )
  197.   )
  198.  
  199.  
  200.   (if (AND (exists (tackon "S3Drivers" "CVision64")) (IN board 1) )
  201.    (if (= (exists (tackon "devs:monitors" "CVision64.info")) 0)  
  202.     (copyfiles (source (tackon "S3Drivers" "CVision64")) (dest "devs:monitors") (infos) (optional "nofail") ) 
  203.     (copyfiles (source (tackon "S3Drivers" "CVision64")) (dest "devs:monitors") (optional "nofail") ) 
  204.    )
  205.   )
  206.  
  207.   (if (AND (exists (tackon "CLDrivers" "PicassoII")) (IN board 2) )
  208.    (if (= (exists (tackon "devs:monitors" "PicassoII.info")) 0)  
  209.     (copyfiles (source (tackon "CLDrivers" "PicassoII")) (dest "devs:monitors") (infos) (optional "nofail") ) 
  210.     (copyfiles (source (tackon "CLDrivers" "PicassoII")) (dest "devs:monitors") (optional "nofail") ) 
  211.    )
  212.   )
  213.  
  214.   (if (AND (exists (tackon "CLDrivers" "Spectrum")) (IN board 3) )
  215.    (if (= (exists (tackon "devs:monitors" "Spectrum.info")) 0)  
  216.     (copyfiles (source (tackon "CLDrivers" "Spectrum")) (dest "devs:monitors") (infos) (optional "nofail") ) 
  217.     (copyfiles (source (tackon "CLDrivers" "Spectrum")) (dest "devs:monitors") (optional "nofail") ) 
  218.    )
  219.   )
  220.  
  221.   (if (AND (exists (tackon "CLDrivers" "Piccolo")) (IN board 4) )
  222.    (if (= (exists (tackon "devs:monitors" "Piccolo.info")) 0)  
  223.     (copyfiles (source (tackon "CLDrivers" "Piccolo")) (dest "devs:monitors") (infos) (optional "nofail") ) 
  224.     (copyfiles (source (tackon "CLDrivers" "Piccolo")) (dest "devs:monitors") (optional "nofail") ) 
  225.    )
  226.   )
  227.  
  228.   (if (AND (exists (tackon "CLDrivers" "PiccoSD64")) (IN board 5) )
  229.    (if (= (exists (tackon "devs:monitors" "PiccoSD64.info")) 0)  
  230.     (copyfiles (source (tackon "CLDrivers" "PiccoSD64")) (dest "devs:monitors") (infos) (optional "nofail") ) 
  231.     (copyfiles (source (tackon "CLDrivers" "PiccoSD64")) (dest "devs:monitors") (optional "nofail") ) 
  232.    )
  233.   )
  234.  
  235.   (if (AND (exists (tackon "CLDrivers" "Inferno")) (IN board 6) )
  236.    (if (= (exists (tackon "devs:monitors" "Infereno.info")) 0)  
  237.     (copyfiles (source (tackon "CLDrivers" "Infereno")) (dest "devs:monitors") (infos) (optional "nofail") ) 
  238.     (copyfiles (source (tackon "CLDrivers" "Infereno")) (dest "devs:monitors") (optional "nofail") ) 
  239.    )
  240.   )
  241.  
  242.  
  243. ;*********************************************************************************
  244. ;* Ask user to install CGXMode 
  245. ;*********************************************************************************
  246. (set ToDo (askoptions (choices #cgxmode-todo #showcgxconfig)
  247.                       (prompt #todo-prompt)
  248.                       (help #todo-prompt)
  249.                       (default 3)
  250.           )
  251.  
  252. (if (IN ToDo 0) 
  253.   ( 
  254.     (set wheremode   (askdir (prompt #wheremode)
  255.                              (help   #wheremode)
  256.                          (default "SYS:Prefs")
  257.              )
  258.     )
  259.  
  260.     (if (exists "CGXMode/CGXMode")
  261.      (if (= (exists (tackon wheremode "CGXMode.info")) 0)
  262.       (copyfiles (source "CGXMode/CGXMode")  (dest wheremode) (infos) (optional "nofail")) 
  263.       (copyfiles (source "CGXMode/CGXMode")  (dest wheremode) (optional "nofail"))          
  264.      )
  265.     )
  266.  
  267.     (if (IN board 6) (set TTBOARD "Inferno") ) 
  268.     (if (IN board 5) (set TTBOARD "PiccoSD64") ) 
  269.     (if (IN board 4) (set TTBOARD "Piccolo") ) 
  270.     (if (IN board 3) (set TTBOARD "Spectrum") ) 
  271.     (if (IN board 2) (set TTBOARD "PicassoII") ) 
  272.     (if (IN board 1) (set TTBOARD "CVision64") )    
  273.     (if (IN board 0) (set TTBOARD "CVision3D") ) 
  274.  
  275.  
  276.     (if (> board 0)
  277.       (tooltype    (dest (tackon wheremode "CGXMode")) (settooltype "BOARD" TTBOARD) ) 
  278.     )
  279.  
  280.     (if (= @language "deutsch")
  281.      (
  282.        (if (= (exists "Locale:Catalogs") 0) (makedir "sys:Locale/Catalogs") )
  283.        (if (= (exists (tackon "Locale:Catalogs" "deutsch")) 0) (makedir (tackon "sys:Locale/Catalogs" "deutsch")) )
  284.        (if (exists "CGXMode/catalogs/deutsch/cgxmode.catalog")
  285.          (copyfiles (source "CGXMode/catalogs/deutsch/cgxmode.catalog") (dest "sys:Locale/Catalogs/deutsch") )
  286.        )
  287.      )
  288.     )
  289.  
  290.   )
  291. )
  292.  
  293.  
  294. (if (IN ToDo 1) 
  295.   ( 
  296.     (set whereshowcgxconfig   (askdir (prompt #whereshowcgxconfig)
  297.                              (help   #whereshowcgxconfig)
  298.                          (default "SYS:Tools")
  299.              )
  300.     )
  301.  
  302.     (if (exists "tools/showcgxconfig")
  303.      (if (= (exists (tackon whereshowcgxconfig "CGXMode.info")) 0)
  304.       (copyfiles (source "tools/showcgxconfig")  (dest whereshowcgxconfig) (infos) (optional "nofail")) 
  305.       (copyfiles (source "tools/showcgxconfig")  (dest whereshowcgxconfig) (optional "nofail"))          
  306.      )
  307.     )
  308.  
  309.   )
  310. )
  311.  
  312.  
  313. ;*******************************************************************
  314. ;  END
  315. ;*******************************************************************
  316. (if (> (exists ("c:multiview")) 0) (set #mpath "c:") )
  317. (if (> (exists ("sys:Utilities/multiview")) 0) (set #mpath "sys:Utilities") )
  318.  
  319. (run (cat "run " #mpath "/multiview Changes.txt") )
  320.  
  321. (set @default-dest "sys:")
  322.  
  323. (set #done "Update Complete!")
  324. (if (= @language "deutsch") (set #done "Update fertig!") )
  325.  
  326. (exit #done)
  327.