home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Magazine / ActiveShareware / ArtPRO / Install < prev    next >
Text File  |  1998-08-27  |  6KB  |  334 lines

  1. ; ArtPRO installations Script
  2. ; © 1997 Defect Softworks All rights reserved.
  3. ; May only be distributed within the ArtPRO package
  4. ; Written by Frank Pagels /DFT
  5. ; Date: 27/Aug/98
  6.  
  7. (set falsekickmsg    "You need at least OS 3.00 to run ArtPRO!")    ;!!!
  8.  
  9. (set OS_VER (/ (getversion) 65536) )
  10.  
  11. (if(< OS_VER 39)
  12.   (abort falsekickmsg)
  13. )
  14.  
  15. (set cpu (database "cpu"))    ;check CPU Type
  16.  
  17. (if (or (= cpu 68020) (= cpu 68030)) (set #cpu 0))
  18. (if (= cpu 68040) (set #cpu 1))
  19. (if (> (exists ("libs:68060.library")) 0) (set #cpu 2) )
  20.  
  21. (set #doclang 0)
  22. (if (= @language "deutsch") (set #doclang 1))
  23.  
  24. (set progdir1
  25.  (askdir (prompt "In wich drawer should ArtPRO be installed?\n (a drawer will be created)")
  26.    (help @askdir-help)
  27.    (DEFAULT @default-dest)))
  28.  
  29. (    (makedir (tackon progdir1 "ArtPRO")) 
  30.     (copyfiles (source "Icons/ArtPRO.info")
  31.     (dest progdir1))
  32.  
  33.     (set progdir (tackon progdir1 "ArtPRO"))
  34. )
  35. ;--------------------------------------------------------------------------
  36. (
  37.     (copyfiles (source "ArtPRO")
  38.     (dest progdir))
  39.  
  40.     (copyfiles (source "installdata/ArtPRO.info")    ;!!!
  41.     (dest progdir))
  42.  
  43. )
  44.  
  45. ;------ Install Loader -------
  46. (
  47.     (makedir (tackon progdir "ALoaders"))
  48.     (copyfiles (source "Aloaders")
  49.     (dest (tackon progdir "ALoaders"))
  50.     (all))
  51. )
  52.  
  53. ;------ Install Saver --------
  54. (
  55.     (makedir (tackon progdir "ASavers"))
  56.     (copyfiles (source "ASavers")
  57.            (dest (tackon progdir "ASavers"))
  58.            (all)
  59.     )
  60.  
  61. )
  62.  
  63. ;------ Install Operator --------
  64. (
  65.     (makedir (tackon progdir "AOperators"))
  66.     (copyfiles (source "AOperators")
  67.            (dest (tackon progdir "AOperators"))
  68.            (all)
  69.     )
  70.  
  71. )
  72.  
  73. ;----- Copy needed Librarys 
  74.  
  75.     (copylib
  76.     (prompt "Copy ReqTools.library")
  77.     (help @copylib-help)
  78.     (source "libs/reqtools.library")
  79.     (dest "Libs:")
  80.     (confirm)
  81.     )
  82.  
  83.     
  84.     (Set #WhatLib
  85.     (cat  "Which version of the render.library do you want to install now ?"))
  86.  
  87.     (set InstallLib
  88.         (askchoice
  89.             (prompt #WhatLib)
  90.             (help @askoptions-help)
  91.             (choices
  92.                 "020"        ;Bit 0
  93.                 "040"        ;Bit 1
  94.                 "060")        ;Bit 2
  95.             (default #cpu)
  96.         )
  97.     )
  98.    
  99. (
  100.     (if (= InstallLib 0)
  101.  
  102.        (copylib 
  103.            (prompt "Copy Render.library")
  104.         (help @copylib-help)
  105.              (source "libs/render.library_68020")
  106.         (dest "Libs:")
  107.         (newname "render.library")
  108.         (confirm)
  109.        )
  110.     )
  111.  
  112.  
  113.  
  114.     (if (= InstallLib 1)
  115.  
  116.        (copylib 
  117.            (prompt "Copy Render.library")
  118.         (help @copylib-help)
  119.              (source "libs/render.library_68040")
  120.         (dest "Libs:")
  121.         (newname "render.library")
  122.         (confirm)
  123.        )
  124.     )
  125.          
  126.  
  127.  
  128.     (if (= InstallLib 2)
  129.  
  130.        (copylib 
  131.            (prompt "Copy Render.library")
  132.         (help @copylib-help)
  133.              (source "libs/render.library_68060")
  134.         (dest "Libs:")
  135.         (newname "render.library")
  136.         (confirm)
  137.        )
  138.     )
  139.     
  140. )
  141.  
  142. ;----------------------------------------------------------------
  143.     (Set #WhatLib
  144.     (cat  "Which version of the guigfx.library do you want to install now ?"))
  145.  
  146.     (set InstallLib
  147.         (askchoice
  148.             (prompt #WhatLib)
  149.             (help @askoptions-help)
  150.             (choices
  151.                 "020"        ;Bit 0
  152.                 "040"        ;Bit 1
  153.                 "060"        ;Bit 2
  154.                 "020+FPU")    ;Bit 3
  155.             (default #cpu)
  156.         )
  157.     )
  158.    
  159. (
  160.     (if (= InstallLib 0)
  161.  
  162.        (copylib 
  163.            (prompt "Copy Guigfx.library")
  164.         (help @copylib-help)
  165.              (source "libs/guigfx.library")
  166.         (dest "Libs:")
  167.         (newname "guigfx.library")
  168.         (confirm)
  169.        )
  170.     )
  171.  
  172.  
  173.     (if (= InstallLib 1)
  174.  
  175.        (copylib 
  176.            (prompt "Copy Guigfx.library")
  177.         (help @copylib-help)
  178.              (source "libs/guigfx.library_68040")
  179.         (dest "Libs:")
  180.         (newname "guigfx.library")
  181.         (confirm)
  182.        )
  183.     )
  184.          
  185.  
  186.     (if (= InstallLib 2)
  187.  
  188.        (copylib 
  189.            (prompt "Copy Guigfx.library")
  190.         (help @copylib-help)
  191.              (source "libs/guigfx.library_68060")
  192.         (dest "Libs:")
  193.         (newname "guigfx.library")
  194.         (confirm)
  195.        )
  196.     )
  197.  
  198.     (if (= InstallLib 3)
  199.  
  200.        (copylib 
  201.            (prompt "Copy Guigfx.library")
  202.         (help @copylib-help)
  203.              (source "libs/guigfx.library_FPU")
  204.         (dest "Libs:")
  205.         (newname "guigfx.library")
  206.         (confirm)
  207.        )
  208.     )
  209.     
  210. )
  211.  
  212. ;----- copy Dokumentation ------
  213.  
  214. (
  215.     (Set #Whatdoc
  216.     (cat  "What ArtPRO documentation would you like to install?\n"))
  217.  
  218.     (set Installdoc
  219.         (askchoice
  220.             (prompt #Whatdoc)
  221.             (help @askoptions-help)
  222.             (choices
  223.                 "English"        ;Bit 0
  224.                 "German")        ;Bit 1
  225.             (default #doclang)
  226.         )
  227.     )
  228.    
  229.     (set docdir
  230.         (askdir (prompt "Select a drawer for the Guide:")
  231.         (help @askdir-help)
  232.         (DEFAULT progdir)))
  233.  
  234.  
  235.     (if (= Installdoc 0)
  236.         (
  237.             (copyfiles (source "docs/english/ArtPRO.guide")        ;!!!
  238.                 (dest docdir))
  239.  
  240.             (copyfiles (source "installdata/ArtPRO.guide.info")    ;!!!
  241.                 (dest docdir))
  242.         )
  243.     )
  244.  
  245.     (if (= Installdoc 1)
  246.  
  247.                (copyfiles (source "docs/deutsch/ArtPRO.guide")
  248.                 (dest docdir))
  249.  
  250.             (copyfiles (source "docs/deutsch/ArtPRO.guide.info")
  251.                 (dest docdir))
  252.  
  253.     )
  254.  
  255.  
  256. )
  257.  
  258. ;---- Kopiere Icons ----
  259.  
  260. (
  261.     (makedir (tackon progdir "Icons"))
  262.     (copyfiles (source "Icons")
  263.         (dest (tackon progdir "Icons"))
  264.         (all))
  265.     (copyfiles (source "installdata/Icons.info")    ;!!!
  266.         (dest progdir))
  267.  
  268. )
  269.  
  270.  
  271. (
  272.   (set appdir
  273.   (askdir (prompt "In wich drawer should the external AppIcon be installed?")
  274.    (help @askdir-help)
  275.    (DEFAULT progdir)))
  276.  
  277.      (copyfiles (source "Installdata/AppIcon.info")
  278.         (dest appdir)
  279.     )
  280.         (Tooltype (dest (tackon progdir "ArtPRO"))
  281.         (Settooltype "APPICON" (tackon appdir "AppIcon"))
  282.     )
  283. )
  284.  
  285. (set @default-dest progdir)
  286.  
  287. ;-- lege tmp dir fest
  288.   (set tmpdir
  289.   (askdir (prompt "Wich drawer should be used for the undo files ?")
  290.    (help @askdir-help)
  291.    (DEFAULT "T:")))
  292.   
  293.     (Tooltype (dest (tackon progdir "ArtPRO"))
  294.     (Settooltype "TMPDIR" tmpdir ))
  295.  
  296.  (set level
  297.     (askstring (prompt "Enter number of undo levels")
  298.     (help @askstring-help)
  299.     (DEFAULT "3")))
  300.  
  301.     (Tooltype (dest (tackon progdir "ArtPRO"))
  302.     (Settooltype "UNDOLEVEL" level ))
  303.  
  304. (copyfiles (source "Orderform.doc")
  305.     (dest progdir)
  306. )
  307.  
  308. (copyfiles (source "Orderform.dok")
  309.     (dest progdir)
  310. )
  311.  
  312. (makedir "ENV:ArtPRO")
  313. (makedir "ENVARC:ArtPRO")
  314.  
  315.  
  316. (if (<> (exists ("sys:classes/codecs/jpeg.codec")) 1)  
  317.  (
  318.    (Set #Whatdoc
  319.     ( cat "Now installing the Jpeg Codec by\n Cristoph Feck. It is needed for\n the Jpeg loader/saver.\n")
  320.    )
  321.      (Message   #whatdoc)
  322.                 
  323.  
  324.    (set @execute-dir "jpeg-cdc_dist")
  325.    (run (safe) "sys:utilities/installer SCRIPT install APPNAME Jpeg_Codec")
  326.  )
  327. )
  328.  
  329. (exit "Note: ArtPRO is Shareware!\n\n"
  330.       "Render.library and Guigfx.library\n"
  331.       "are (C) by Timm Müller!\n\n"
  332.       "Enjoy this!") 
  333.