home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 12 / MA_Cover_12.iso / datatypes / rgfx-dt / install < prev    next >
Encoding:
Text File  |  1999-06-09  |  2.2 KB  |  134 lines

  1. ;$VER:rgfx.datatype Install 43.10
  2.  
  3. (set #dt-dir
  4.     (askdir
  5.         (prompt "Where do you store your datatypes ?")
  6.         (help @askdir-help)
  7.         (default "SYS:Classes/DataTypes")
  8.     )
  9. )
  10.  
  11. (set #dc-dir
  12.     (askdir
  13.         (prompt "Where do you store your descriptor files ?")
  14.         (help @askdir-help)
  15.         (default "DEVS:DataTypes")
  16.     )
  17. )
  18.  
  19. (set #ask
  20.     (askbool
  21.         (prompt "Do you want the converter DT2RGFX to be installed ?")
  22.         (default 1)
  23.         (help @askbool-help)
  24.     )
  25. )
  26.  
  27. (set #prefs-dir
  28.     (askdir
  29.         (prompt "Where do you store your preferences for datatypes ?")
  30.         (help @askdir-help)
  31.         (default "SYS:Prefs/DataTypes")
  32.     )
  33. )
  34.  
  35. (set #lib 0)
  36. (if (not (patmatch "68881|68882|FPU040" (database "fpu")))
  37.     (
  38.     (if (patmatch "68020|68030|68040" (database "cpu"))
  39.         (
  40.         (set #lib 1)
  41.         )
  42.     )
  43.     (if (patmatch "68060" (database "cpu"))
  44.         (
  45.         (set #lib 2)
  46.         )
  47.     )
  48.     )
  49. )
  50. (set #libname
  51.     (select
  52.         (askchoice
  53.             (prompt "Select the type of CPU/FPU combination for the render.library")
  54.             (choices "68020/030 without FPU" "68020/030 with FPU or 68040" "68060")
  55.             (default #lib)
  56.             (help @askchoice-help)
  57.         )
  58.     "render.library" "render.library_68040" "render.library_68060"
  59.     )
  60. )
  61.  
  62. (set #icon
  63.     (askchoice
  64.         (prompt "What type of icons do you want to use ?")
  65.         (help @askchoice-help)
  66.         (choices "MWB style (8 colors)" "NewIcons style")
  67.     )
  68. )
  69.  
  70. (copylib
  71.     (prompt "RGFX Datatype Version Checking")
  72.     (help @copylib-help)
  73.     (source "Classes/DataTypes/rgfx.datatype")
  74.     (dest #dt-dir)
  75.     (confirm)
  76. )
  77.  
  78. (copylib
  79.     (prompt "render.library Version Checking")
  80.     (source (tackon "Libs" #libname))
  81.     (dest "LIBS:")
  82.     (newname "render.library")
  83.     (help @copylib-help)
  84.     (confirm)
  85. )
  86.  
  87. (copyfiles
  88.     (source "Devs/DataTypes/RGFX")
  89.     (dest #dc-dir)
  90. )
  91.  
  92. (copyfiles
  93.     (source "Env/DataTypes/rgfx.prefs")
  94.     (dest "ENVARC:DataTypes")
  95. )
  96.  
  97. (copyfiles
  98.     (source "Env/DataTypes/rgfx.prefs")
  99.     (dest "ENV:DataTypes")
  100. )
  101.  
  102. (copyfiles
  103.     (source "Prefs/RGFXPrefs")
  104.     (dest #prefs-dir)
  105.     (infos)
  106. )
  107.  
  108. (if (= #icon 1)
  109.     (
  110.     (copyfiles
  111.         (source "NewIcons/Tool.info")
  112.         (dest #prefs-dir)
  113.         (newname "RGFXPrefs.info")
  114.     )
  115.     )
  116. )
  117.  
  118. (if (= #ask 1)
  119.     (
  120.     (set #c-dir
  121.         (askdir
  122.             (prompt "Where do you want the converter to be copied ?")
  123.             (help @askdir-help)
  124.             (default "C:")
  125.         )
  126.     )
  127.     (copyfiles
  128.         (source "C/DT2RGFX")
  129.         (dest #c-dir)
  130.     )
  131.     )
  132. )
  133.  
  134.