home *** CD-ROM | disk | FTP | other *** search
/ Dream 41 / Amiga_Dream_41.iso / Amiga / Programmation / gui / guicreator20.lha / GUICreator2.0 / Install < prev    next >
Text File  |  1996-06-12  |  5KB  |  177 lines

  1. ;  *** GUICreator installation scipt ***
  2.  
  3.  
  4. ; *** Set some useful messages ***
  5.  
  6.    (set #install-msg (cat  "\n\nGUICreator installation script.\n"
  7.                            "This script installs GUICreator on your Amiga.\n\n"
  8.                            "Read the documentation for\n"
  9.                            "more information on the distribution\n"
  10.                            "and commercial usage of GUICreator.\n\n"
  11.                            "GUICreator ⌐ 1995/96 Markus Hillenbrand\n"
  12.                            "All rights reserved."))
  13.    (set #welcome-msg       "Welcome to the GUICreator installation!")
  14.    (set #bad-kick          "You must be using Kickstart 3.0 to use this program!")
  15.    (set #bad-installer     "You must be using Installer 43.x to install GUICreator!")
  16.    (set #ask-program-dir   "Where shall I install the program ?\n(A drawer will NOT be created)")
  17.    (set #ask-doc-dir       "Where shall I install the docs ?")
  18.    (set #comp              "Which C compiler(s) do you use ?")
  19.    (set #comp-help         "\nIf you choose a compiler, I will update some includes for use with textfield gadget\n\n")
  20.    (set #copyfiles         "Copying files to harddisk ...")
  21.    (set #dice-msg          "\nAttention DICE users:\n\nYou will have to install textfield-gadget yourself!")
  22.    (set #install-textfield "Installing Textfield.Gadget to your system")
  23.  
  24. ; *** Welcome the user to the installation
  25.  
  26.    (message #install-msg)
  27.  
  28. ; *** Check for Kickstart version ***
  29.  
  30.    (if (< (/ (getversion) 65536) 39)
  31.       (
  32.       (abort #bad-kick)
  33.       )
  34.    )
  35.  
  36. ; *** Check for Installer-Version ***
  37.  
  38.    (if (< (/ @installer-version 65536) 43)
  39.       (
  40.       (abort #bad-installer)
  41.       )
  42.    )
  43.  
  44.  
  45. ; *** Ask the user for the default-destinations ***
  46.  
  47.   (set #prog-dest (askdir (prompt #ask-program-dir)
  48.                            (help @askdir-help)
  49.                            (default "Work:")
  50.                            (disk)
  51.                    )
  52.    )
  53.    (set #doc-dest  (askdir (prompt #ask-doc-dir)
  54.                            (help @askdir-help)
  55.                            (default #prog-dest)
  56.                    )
  57.    )
  58.    (set #compilers (askoptions (prompt #comp)
  59.                                (help #comp-help @askoptions-help)
  60.                                (choices "Maxon C/C++ 3.x" "GNU C" "DICE C" "StormC")
  61.                                (default 0)
  62.                    )
  63.    )
  64.    (set #copy-tutor (askbool (prompt "Do you want to install the tutorial C sources ?")
  65.                              (help @askbool-help)
  66.                              (default 1)
  67.                     )
  68.    )
  69.  
  70.  
  71. ; *** Install the textfield gadget ***
  72.  
  73.    (copylib (prompt #install-textfield)
  74.             (help @copylib-help)
  75.             (source "textfield.gadget")
  76.             (dest "SYS:Classes/Gadgets")
  77.             (confirm)
  78.    )
  79.  
  80.  
  81. ; *** Copy the program ***
  82.  
  83.    (copyfiles (prompt #copyfiles)
  84.               (source "")
  85.               (dest   #prog-dest)
  86.               (choices "GUICreatorWB" "GUICreatorWB.info" "GUICreatorPrefs" "GUICreatorPrefs.info" ".prefs" ".windowpos" "About.IFF" "c" "Data" "Data.info")
  87.    )
  88.  
  89.  
  90. ; *** Copy the docs ***
  91.  
  92.    (copyfiles (prompt #copyfiles)
  93.               (source "")
  94.               (dest   #doc-dest)
  95.               (choices "GUICreatorWB.guide" "GUICreatorWB.guide.info" "DOC")
  96.    )
  97.  
  98.  
  99. ; *** Copy the tutorial sources
  100.  
  101.    (if (= #copy-tutor 1)
  102.        (
  103.        (copyfiles (prompt #copyfiles)
  104.                   (source "")
  105.                   (dest   #prog-dest)
  106.                   (choices "Demos" "Demos.info")
  107.        )
  108.        )
  109.    )
  110.  
  111.  
  112. ; *** Update the Maxon C++ compiler ***
  113.  
  114.    (if (IN #compilers 0)
  115.        (
  116.        (copyfiles (prompt @copyfiles-help)
  117.                   (source "Compilers/Maxon")
  118.                   (dest "MCPP:")
  119.                   (choices "lib")
  120.        )
  121.        (copyfiles (prompt @copyfiles-help)
  122.                   (source "Compilers/Maxon")
  123.                   (dest "MCPP:")
  124.                   (choices "include")
  125.        )
  126.        )
  127.    )
  128.  
  129.  
  130. ; *** Update the GNU compiler ***
  131.  
  132.    (if (IN #compilers 1)
  133.        (
  134.        (copyfiles (prompt @copyfiles-help)
  135.                   (source "Compilers/GNU")
  136.                   (dest "GNU:")
  137.                   (choices "os-include")
  138.        )
  139.        )
  140.    )
  141.  
  142. ; *** Update DICE compiler ***
  143.  
  144.    (if (IN #compilers 2)
  145.        (
  146.        (message #dice-msg)
  147.        )
  148.    )
  149.  
  150.  
  151. ; *** Update STORM compiler ***
  152.  
  153.    (if (IN #compilers 3)
  154.        (
  155.        (copyfiles (prompt @copyfiles-help)
  156.                   (source "Compilers/Storm")
  157.                   (dest "STORMC:Include")
  158.                   (choices "clib" "pragma" "pragmas" "gadgets" "proto")
  159.        )
  160.        )
  161.    )
  162.  
  163.  
  164. ; *** Keyfile installlieren ***
  165.  
  166.    (if (exists "GUICreator_InstallDisk:Keyfiles/.keyfile" (NOREQ) )
  167.        (
  168.        (copyfiles (prompt @copyfiles-help)
  169.                   (source "GUICreator_InstallDisk:Keyfiles")
  170.                   (dest #prog-dest)
  171.                   (choices ".keyfile")
  172.        )
  173.        )
  174.    )
  175.  
  176.  
  177.