home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 10 / Fresh_Fish_10_2352.bin / new / comm / tcp / netinput / install < prev    next >
Encoding:
Text File  |  1995-07-22  |  5.3 KB  |  184 lines

  1. ;
  2. ; $VER: install 34.1 (22 Jul 1995)
  3. ;
  4. ; Installer script for NetInput package.
  5. ;
  6. ; (C) Copyright 1995 Marius Gröger
  7. ;     All Rights Reserved.
  8. ;
  9. ; $HISTORY:
  10. ;
  11. ; 22 Jul 1995 : 034.001 :  initial
  12. ;
  13.  
  14. (set #cpu (database "cpu"))
  15. (set #level @user-level)
  16. (set #server        "netinputd")
  17. (set #client        "netinput")
  18. (set #helpfile      "NetInput.guide")
  19. (set #more          "RUN SYS:Utilities/More")
  20. (set #install-notes "\"Installation Notes\"")
  21.  
  22. ; -------------------------- Installation mode ---------------------------
  23.  
  24. ; (The installer documentation says not to use this call
  25. ; final distribtions, but I know no way to let the next decision
  26. ; popping up in novice mode. If you do, please mail to
  27. ; mag@sysgo.de. Thanks.)
  28. (user 2)
  29. (set mode
  30.      (askoptions
  31.          (prompt "Which parts should be installed ?")
  32.          (choices "NetInput client" "NetInput server" "AmigaGuide® documentation")
  33.          (help @askoptions-help)
  34.      )
  35. )
  36. (user #level)
  37.  
  38. (set #installclient (IN mode 0))
  39. (set #installserver (IN mode 1))
  40. (set #installguide (IN mode 2))
  41.  
  42. ; -------------------------- Installtion setup ---------------------------
  43.  
  44. (if #installserver
  45.    (set #serverdir
  46.        (askdir
  47.                (prompt "Please locate the directory for IP services:")
  48.                (help (cat "   Select here the directory where you keep "\
  49.                           "your IP clients.\n\n"
  50.                           @askdir-help
  51.                      )
  52.                )
  53.                (default "AmiTCP:serv")
  54.        )
  55.    )
  56. )
  57.  
  58. (if #installclient
  59.    (set #clientdir
  60.        (askdir
  61.                (prompt "Please locate the directory for IP clients:")
  62.                (help (cat "   Select here the directory where you keep "\
  63.                           "your IP servers.\n\n"
  64.                           @askdir-help
  65.                      )
  66.                )
  67.                (default "AmiTCP:bin")
  68.        )
  69.    )
  70. )
  71.  
  72. (if #installguide
  73.    (set helpdir
  74.            (askdir
  75.                    (prompt "Please locate the directory for AmigaGuide®-Documents:")
  76.                    (help (cat "   Select here the directory where you keep your "\
  77.                               "AmigaGuide® online help documents.\n\n"
  78.                                @askdir-help
  79.                          )
  80.                    )
  81.                    (default "HELP:english")
  82.            )
  83.    )
  84. )
  85.  
  86. ; ------------------------- Server Installation --------------------------
  87.  
  88. (if #installserver
  89.    (
  90.       (set #proc
  91.         (askchoice
  92.            (prompt (cat "There are diffent versions of \"" #server "\", each one optimized "
  93.                         "for a specific CPU type. Please select one: "))
  94.            (choices  "MC68000"
  95.                      "MC68020"
  96.            ;         "MC68040"
  97.            )
  98.            (help (cat "  Select here the CPU type that is installed in your system. "
  99.                  "\n\n  Currently, this is a MC" #cpu ".\n\n  If you select a certain CPU type "
  100.                  "in the choice box, \"" #server "\" will run on any CPU which "
  101.                  "type is higher or equal to the selection. However, it won't "
  102.                  "run on a system equipped with a lower type.\n\n"
  103.                  @askchoice-help)
  104.            )
  105.            (default 0)
  106.         )
  107.       )
  108.  
  109.       (copylib
  110.          (prompt (cat "Copying the server"))
  111.          (help @copylib-help)
  112.          (source (cat (tackon "serv" #server)
  113.                     (if (= 0 proc) ".000")
  114.                     (if (= 1 proc) ".020")
  115.                     (if (= 2 proc) ".040")
  116.          ))
  117.          (dest #serverdir)
  118.          (newname #server)
  119.          (confirm)
  120.       )
  121.    )
  122. )
  123.  
  124. ; ------------------------- Client Installation --------------------------
  125.  
  126. (if #installclient
  127.    (
  128.       (set proc
  129.         (askchoice
  130.            (prompt (cat "There are diffent versions of \"" #client "\", each one optimized "
  131.                         "for a specific CPU type. Please select one: "))
  132.            (choices  "MC68000"
  133.                      "MC68020"
  134.            ;         "MC68040"
  135.            )
  136.            (help (cat "  Select here the CPU type that is installed in your system. "
  137.                  "\n\n  Currently, this is a MC" #cpu ".\n\n  If you select a certain CPU type "
  138.                  "in the choice box, \"" #client "\" will run on any CPU which "
  139.                  "type is higher or equal to the selection. However, it won't "
  140.                  "run on a system equipped with a lower type.\n\n"
  141.                  @askchoice-help)
  142.            )
  143.            (default 0)
  144.         )
  145.       )
  146.  
  147.       (copylib
  148.          (prompt (cat "Copying the client"))
  149.          (help @copylib-help)
  150.          (source (cat (tackon "bin" #client)
  151.                     (if (= 0 proc) ".000")
  152.                     (if (= 1 proc) ".020")
  153.                     (if (= 2 proc) ".040")
  154.          ))
  155.          (dest #clientdir)
  156.          (newname #client)
  157.          (confirm)
  158.       )
  159.    )
  160. )
  161.  
  162. ; ------------------------- Guide Installation --------------------------
  163.  
  164. ; install AmigaGuide file
  165. (if #installguide
  166.    (
  167.       (copyfiles
  168.               (prompt "Copying AmigaGuide file")
  169.               (help @copyfiles-help)
  170.               (source "help")
  171.               (dest helpdir)
  172.               (pattern (cat #helpfile "(%|.info)"))
  173.               (confirm)
  174.       )
  175.    )
  176. )
  177.  
  178. ; --------------------- Display Installation Notes -----------------------
  179.  
  180. (if (OR #installclient #installserver)
  181.    (run #more #install-notes)
  182. )
  183.  
  184.