home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / comm / dfa122.lha / install-dfa < prev    next >
Text File  |  1993-05-03  |  13KB  |  578 lines

  1. ; $VER: DFA 1.00 (10.02.93)
  2. ; Script to install DFA V 1.2
  3.  
  4. (complete 0)
  5.  
  6. (set @default-dest "SYS:WBStartup")
  7.  
  8. (set dest2 (askdir  (prompt "Select the location to install the DFA executable")
  9.        (default @default-dest)
  10.           (help "Choose a destination partition or directory "
  11.                  "to contain the DFA executable.  The install "
  12.                   "program copies the DFA executable 'DFA' "
  13.                   "to the location you choose. "
  14.           )
  15.        )
  16. )
  17.  
  18. (set answer1
  19.     (askchoice
  20.         (prompt "Choose on which machine DFA is used")
  21.             (choices    "Amiga with MC68000"
  22.                         "Amiga with MC68020 and better"
  23.             )
  24.             (help    "Selecting the 'MC68020 and better' option will install "
  25.                     "the special version of DFA, which does NOT run on"
  26.                     "'vanilla' Amigas"
  27.             )
  28.  
  29.             (default 0)
  30.  
  31.     )
  32. )
  33.  
  34. (if (= answer1 0)
  35. (
  36.     ;install DFA 68000
  37.  
  38.     (message "DFA will be installed in " dest2 )
  39.  
  40.     (set error
  41.         (trap 4
  42.             (copyfiles (source "DFA/DFA") (dest dest2)  (infos))
  43.         )
  44.     )
  45.  
  46.     (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  47. )
  48. )
  49.  
  50. (if (= answer1 1)
  51. (
  52.     ;install DFA 68000
  53.     (message "DFA (for 68020 and better) will be installed in " dest2 )
  54.  
  55.     (set error
  56.         (trap 4
  57.             (copyfiles (source "DFA_020/DFA") (dest dest2)  (infos))
  58.         )
  59.     )
  60.     (if (> error 0)
  61.         (message ("Dos Error %ld detected" @ioerr))
  62.     )
  63. )
  64. )
  65.  
  66. (complete 15)
  67.  
  68. (if (exists "Locale:")
  69. (
  70.     (set language
  71.         (askoptions
  72.             (prompt "Which languages do you want to get installed?")
  73.             (choices    "Dansk"
  74.                         "German"
  75.                         "Italian"
  76.                         "Nederlands"
  77.                         "Svenska"
  78.             )
  79.             (help    "You may choose none, one or more languages. "
  80.                     "If you don't have an operation system that "
  81.                     "supports locale, please select no language "
  82.                     "at all. "
  83.                     "Locale support is given in Workbench 2.1 "
  84.                     "and better. "
  85.             )
  86.         )
  87.     )
  88.  
  89.     (if (IN language 0)
  90.     (
  91.         (copyfiles (source "Locale/catalogs/dansk/DFA.catalog")
  92.             (dest "Locale:catalogs/dansk") )
  93.     )
  94.     )
  95.  
  96.     (complete 17)
  97.  
  98.     (if (IN language 1)
  99.     (
  100.         (copyfiles (source "Locale/catalogs/deutsch/DFA.catalog")
  101.             (dest "Locale:catalogs/deutsch") )
  102.  
  103.     )
  104.     )
  105.  
  106.     (complete 19)
  107.  
  108.     (if (IN language 2)
  109.     (
  110.         (copyfiles (source "Locale/catalogs/italiano/DFA.catalog")
  111.             (dest "Locale:catalogs/italiano") )
  112.  
  113.     )
  114.     )
  115.  
  116.     (complete 21)
  117.  
  118.     (if (IN language 3)
  119.     (
  120.         (copyfiles (source "Locale/catalogs/nederlands/DFA.catalog")
  121.             (dest "Locale:catalogs/nederlands") )
  122.     )
  123.     )
  124.  
  125.     (complete 23)
  126.  
  127.     (if (IN language 4)
  128.     (
  129.         (copyfiles (source "Locale/catalogs/svenska/DFA.catalog")
  130.             (dest "Locale:catalogs/svenska") )
  131.     )
  132.     )
  133. )
  134. )
  135.  
  136. (complete 25)
  137.  
  138. (set installrexx
  139.     (askchoice
  140.         (prompt    "Do you want to install the example ARexx scripts?")
  141.         (choices    "Yes"
  142.                     "No"
  143.         )
  144.         (help    "The sample ARexx scripts can give you an idea "
  145.                 "how to use DFA in connection to ARexx and e.g. "
  146.                 "the Cygnus Ed (by ADSG). "
  147.         )
  148.  
  149.         (default 0)
  150.     )
  151. )
  152.  
  153. (if (= installrexx 0)
  154. (
  155.     ; Install ARexx scripts
  156.     (set rexxdest
  157.         (askdir
  158.             (prompt "Select the directory where to install the ARexx scripts")
  159.             (default "Rexx:")
  160.             (help    "If you want to *use* the Arexx scripts at once, "
  161.                     "select an directory that is already within your "
  162.                     "Arexx search path."
  163.             )
  164.         )
  165.     )
  166.  
  167.     (set error
  168.         (trap 4
  169.             (copyfiles (source "rexx") (dest rexxdest) (all) )
  170.         )
  171.     )
  172.  
  173.     (if (> error 0)
  174.         (message ("Dos Error %ld detected" @ioerr))
  175.     )
  176. )
  177. )
  178.  
  179. (complete 35)
  180.  
  181. (if (exists "s/DFA.key")
  182. (
  183.     (copyfiles (source "s/DFA.key") (dest "s:") (infos))
  184. )
  185. )
  186.  
  187. (complete 40)
  188.  
  189. (if (exists "s/DFA.key")
  190. (
  191.     (set installadrfile
  192.         (askchoice
  193.             (prompt    "Do you want to install the default address file (into s:) ?")
  194.             (choices    "Yes"
  195.                         "No"
  196.             )
  197.             (help    "The default address file is named 'adr.file' and "
  198.                     "will be copied into the 's:' drawer. "
  199.                     "It contains the author's address which could be "
  200.                     "useful in some cases (Bug reports etc.) "
  201.                     "However, if you do already have such a file within "
  202.                     "your 's:' drawer you may not want to overwrite it. "
  203.             )
  204.             (default 0)
  205.         )
  206.     )
  207.  
  208.     (if (= installadrfile 0)
  209.     (
  210.         (message "Default address file (adr.file) will be installed in 's:' ")
  211.  
  212.         (set error
  213.             (trap 4
  214.                 (copyfiles (source "s/adr.file") (dest "s:") (infos) )
  215.             )
  216.         )
  217.  
  218.         (if (> error 0)
  219.             (message ("Dos Error %ld detected" @ioerr))
  220.         )
  221.     )
  222.     )
  223. )
  224. else
  225. (
  226.     ; No Keyfile => public version => Must copy default address file
  227.  
  228.     (set error
  229.         (trap 4
  230.             (copyfiles (source "s/adr.file") (dest "s:") (infos) )
  231.         )
  232.     )
  233. )
  234. )
  235. (set doclanguage
  236.     (askchoice
  237.         (prompt "Choose which documentation you want to be installed")
  238.         (choices    "English documentation"
  239.                     "German documentation"
  240.         )
  241.         (help    "You may either select the English or the German "
  242.                 "documentation. "
  243.         )
  244.         (default 0)
  245.     )
  246. )
  247.  
  248. (if (= doclanguage 0)
  249. (
  250.     ; english
  251.     (if (exists "s/DFA.key")
  252.     (
  253.         (set docparts
  254.             (askoptions
  255.                 (prompt    "Choose the kind of documentation you would "
  256.                         "like to get installed"
  257.                 )
  258.                 (choices    "ASCII documentation "
  259.                             "AmigaGuide documentation "
  260.                             "TeX documentation (.DVI file) "
  261.                 )
  262.                 (help    "The ASCII documentation can be read by "
  263.                         "usual ASCII text readers. "
  264.                         ""
  265.                         "The AmigaGuide documentation will only "
  266.                         "be usefull, if you have an amigaguide "
  267.                         "reader like 'Amigaguide' or 'Multiview' "
  268.                         "The AmigaGuide file will be used from within "
  269.                         "the program as well, if it is present. "
  270.                         ""
  271.                         "The DVI file makes only sense if you have "
  272.                         "a TeX package or at least parts of it installed. "
  273.                 )
  274.             )
  275.         )
  276.  
  277.         (if (IN docparts 0)
  278.         (
  279.             ; ASCII docs
  280.             (set docdest
  281.                 (askdir
  282.                     (prompt "Select the location to install the ASCII documentation")
  283.                     (help    "Choose a destination partition or directory "
  284.                             "to contain the ASCII documentation. "
  285.                             "The install program will copy the ASCII documentation "
  286.                             "to this directory."
  287.                     )
  288.                     (default "Work:")
  289.                 )
  290.             )
  291.  
  292.             (working "Extracting ASCII documentation from archive")
  293.             (run "c/lha e Documentation/Documentation.lha dfa_english.doc %s" docdest)
  294.             (run "c/lha e Documentation/Documentation.lha dfa_english.doc.info %s" docdest)
  295.  
  296.             (complete 60)
  297.  
  298.         )
  299.         )
  300.  
  301.         (if (IN docparts 1)
  302.         (
  303.             ; AMIGAGUIDE docs
  304.             (set docdest
  305.                 (askdir
  306.                     (prompt "Select the location to install the Amigaguide documentation")
  307.                     (help    "Choose a destination partition or directory "
  308.                             "to contain the Amigaguide documentation. "
  309.                             "The install program will copy the Amigaguide documentation "
  310.                             "to this directory."
  311.                     )
  312.                     (default "Work:")
  313.                 )
  314.             )
  315.  
  316.             (working "Extracting Amigaguide documentation from archive")
  317.             (run "c/lha e Documentation/Documentation.lha dfa_english.guide %s" docdest)
  318.             (run "c/lha e Documentation/Documentation.lha dfa_english.guide.info %s" docdest)
  319.  
  320.             (complete 80)
  321.  
  322.         )
  323.         )
  324.  
  325.         (if (IN docparts 2)
  326.         (
  327.             ; DVI docs
  328.             (set docdest
  329.                 (askdir
  330.                     (prompt "Select the location to install the TeX documentation")
  331.                     (help    "Choose a destination partition or directory "
  332.                             "to contain the TeX documentation. "
  333.                             "The install program will copy the TeX documentation "
  334.                             "to this directory."
  335.                     )
  336.                     (default "Work:")
  337.                 )
  338.             )
  339.  
  340.             (working "Extracting TeX documentation from archive")
  341.             (run "c/lha e Documentation/Documentation.lha dfa_english.dvi %s" docdest)
  342.             (run "c/lha e Documentation/Documentation.lha dfa_english.dvi.info %s" docdest)
  343.         )
  344.         )
  345.  
  346.     )
  347.     (
  348.         ; else NO KEYFILE -> unregistered version without TeX
  349.         (set docparts
  350.             (askoptions
  351.                 (prompt    "Choose the kind of documentation you would "
  352.                         "like to get installed"
  353.                 )
  354.                 (choices    "ASCII documentation "
  355.                             "AmigaGuide documentation "
  356.                 )
  357.                 (help    "The ASCII documentation can be read by "
  358.                         "usual ASCII text readers. "
  359.                         ""
  360.                         "The AmigaGuide documentation will only "
  361.                         "be usefull, if you have an amigaguide "
  362.                         "reader like 'Amigaguide' or 'Multiview' "
  363.                         "The AmigaGuide file will be used from within "
  364.                         "the program as well, if it is present. "
  365.                 )
  366.             )
  367.         )
  368.  
  369.         (if (IN docparts 0)
  370.         (
  371.             ; ASCII docs
  372.             (set docdest
  373.                 (askdir
  374.                     (prompt "Select the location to install the ASCII documentation")
  375.                     (help    "Choose a destination partition or directory "
  376.                             "to contain the ASCII documentation. "
  377.                             "The install program will copy the ASCII documentation "
  378.                             "to this directory."
  379.                     )
  380.                     (default "Work:")
  381.                 )
  382.             )
  383.  
  384.             (copyfiles (source "Documentation/dfa_english.doc") (dest docdest) (infos) )
  385.  
  386.             (complete 70)
  387.         )
  388.         )
  389.  
  390.         (if (IN docparts 1)
  391.         (
  392.             ; AMIGAGUIDE docs
  393.             (set docdest
  394.                 (askdir
  395.                     (prompt "Select the location to install the Amigaguide documentation")
  396.                     (help    "Choose a destination partition or directory "
  397.                             "to contain the Amigaguide documentation. "
  398.                             "The install program will copy the Amigaguide documentation "
  399.                             "to this directory."
  400.                     )
  401.                     (default "Work:")
  402.                 )
  403.             )
  404.  
  405.             (copyfiles (source "Documentation/dfa_englishguide") (dest docdest) (infos) )
  406.  
  407.         )
  408.         )
  409.  
  410.     )
  411.     )
  412. )
  413. (
  414.     ; german doc wanted
  415.     (if (exists "s/DFA.key")
  416.     (
  417.         (set docparts
  418.             (askoptions
  419.                 (prompt    "Choose the kind of documentation you would "
  420.                         "like to get installed"
  421.                 )
  422.                 (choices    "ASCII documentation "
  423.                             "AmigaGuide documentation "
  424.                             "TeX documentation (.DVI file) "
  425.                 )
  426.                 (help    "The ASCII documentation can be read by "
  427.                         "usual ASCII text readers. "
  428.                         ""
  429.                         "The AmigaGuide documentation will only "
  430.                         "be usefull, if you have an amigaguide "
  431.                         "reader like 'Amigaguide' or 'Multiview' "
  432.                         "The AmigaGuide file will be used from within "
  433.                         "the program as well, if it is present. "
  434.                         ""
  435.                         "The DVI file makes only sense if you have "
  436.                         "a TeX package or at least parts of it installed. "
  437.                 )
  438.             )
  439.         )
  440.  
  441.         (if (IN docparts 0)
  442.         (
  443.             ; ASCII docs
  444.             (set docdest
  445.                 (askdir
  446.                     (prompt "Select the location to install the ASCII documentation")
  447.                     (help    "Choose a destination partition or directory "
  448.                             "to contain the ASCII documentation. "
  449.                             "The install program will copy the ASCII documentation "
  450.                             "to this directory."
  451.                     )
  452.                     (default "Work:")
  453.                 )
  454.             )
  455.  
  456.             (working "Extracting ASCII documentation from archive")
  457.             (run "c/lha e Anleitung/Anleitung.lha dfa.dok %s" docdest)
  458.             (run "c/lha e Anleitung/Anleitung.lha dfa.dok.info %s" docdest)
  459.  
  460.             (complete 60)
  461.         )
  462.         )
  463.  
  464.         (if (IN docparts 1)
  465.         (
  466.             ; AMIGAGUIDE docs
  467.             (set docdest
  468.                 (askdir
  469.                     (prompt "Select the location to install the Amigaguide documentation")
  470.                     (help    "Choose a destination partition or directory "
  471.                             "to contain the Amigaguide documentation. "
  472.                             "The install program will copy the Amigaguide documentation "
  473.                             "to this directory."
  474.                     )
  475.                     (default "Work:")
  476.                 )
  477.             )
  478.  
  479.             (working "Extracting Amigaguide documentation from archive")
  480.             (run "c/lha e Anleitung/Anleitung.lha dfa.guide %s" docdest)
  481.             (run "c/lha e Anleitung/Anleitung.lha dfa.guide.info %s" docdest)
  482.  
  483.             (complete 80)
  484.         )
  485.         )
  486.  
  487.         (if (IN docparts 2)
  488.         (
  489.             ; DVI docs
  490.             (set docdest
  491.                 (askdir
  492.                     (prompt "Select the location to install the TeX documentation")
  493.                     (help    "Choose a destination partition or directory "
  494.                             "to contain the TeX documentation. "
  495.                             "The install program will copy the TeX documentation "
  496.                             "to this directory."
  497.                     )
  498.                     (default "Work:")
  499.                 )
  500.             )
  501.  
  502.             (working "Extracting TeX documentation from archive")
  503.             (run "c/lha e Anleitung/Anleitung.lha dfa.dvi %s" docdest)
  504.             (run "c/lha e Anleitung/Anleitung.lha dfa.dvi.info %s" docdest)
  505.         )
  506.         )
  507.  
  508.     )
  509.     (
  510.         ; else
  511.         (set docparts
  512.             (askoptions
  513.                 (prompt    "Choose the kind of documentation you would "
  514.                         "like to get installed"
  515.                 )
  516.                 (choices    "ASCII documentation "
  517.                             "AmigaGuide documentation "
  518.                 )
  519.                 (help    "The ASCII documentation can be read by "
  520.                         "usual ASCII text readers. "
  521.                         ""
  522.                         "The AmigaGuide documentation will only "
  523.                         "be usefull, if you have an amigaguide "
  524.                         "reader like 'Amigaguide' or 'Multiview' "
  525.                         "The AmigaGuide file will be used from within "
  526.                         "the program as well, if it is present. "
  527.                 )
  528.             )
  529.         )
  530.         (if (IN docparts 0)
  531.         (
  532.             ; ASCII docs
  533.             (set docdest
  534.                 (askdir
  535.                     (prompt "Select the location to install the ASCII documentation")
  536.                     (help    "Choose a destination partition or directory "
  537.                             "to contain the ASCII documentation. "
  538.                             "The install program will copy the ASCII documentation "
  539.                             "to this directory."
  540.                     )
  541.                     (default "Work:")
  542.                 )
  543.             )
  544.  
  545.             (copyfiles (source "Anleitung/dfa.dok") (dest docdest) (infos) )
  546.  
  547.             (complete 70)
  548.         )
  549.         )
  550.  
  551.         (if (IN docparts 1)
  552.         (
  553.             ; AMIGAGUIDE docs
  554.             (set docdest
  555.                 (askdir
  556.                     (prompt "Select the location to install the Amigaguide documentation")
  557.                     (help    "Choose a destination partition or directory "
  558.                             "to contain the Amigaguide documentation. "
  559.                             "The install program will copy the Amigaguide documentation "
  560.                             "to this directory."
  561.                     )
  562.                     (default "Work:")
  563.                 )
  564.             )
  565.  
  566.             (copyfiles (source "Anleitung/dfa.guide") (dest docdest) (infos) )
  567.  
  568.         )
  569.         )
  570.  
  571.     )
  572.     )
  573. )
  574. )
  575.  
  576. (complete 100)
  577.  
  578.