home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / fish / 871-880 / ff874 / dfa / install-dfa < prev    next >
Text File  |  1993-05-23  |  11KB  |  498 lines

  1. ; $VER: DFA 1.22 (20.05.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 ((NOT (= (getassign "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.                         "Suomi"
  78.                         "Svenska"
  79.             )
  80.             (help    "You may choose none, one or more languages. "
  81.                     "If you don't have an operation system that "
  82.                     "supports locale, please select no language "
  83.                     "at all. "
  84.                     "Locale support is given in Workbench 2.1 "
  85.                     "and better. "
  86.             )
  87.         )
  88.     )
  89.  
  90.     (if (IN language 0)
  91.     (
  92.         (copyfiles (source "Locale/catalogs/dansk/DFA.catalog")
  93.             (dest "Locale:catalogs/dansk") )
  94.     )
  95.     )
  96.  
  97.     (complete 17)
  98.  
  99.     (if (IN language 1)
  100.     (
  101.         (copyfiles (source "Locale/catalogs/deutsch/DFA.catalog")
  102.             (dest "Locale:catalogs/deutsch") )
  103.  
  104.     )
  105.     )
  106.  
  107.     (complete 19)
  108.  
  109.     (if (IN language 2)
  110.     (
  111.         (copyfiles (source "Locale/catalogs/italiano/DFA.catalog")
  112.             (dest "Locale:catalogs/italiano") )
  113.  
  114.     )
  115.     )
  116.  
  117.     (complete 20)
  118.  
  119.     (if (IN language 3)
  120.     (
  121.         (copyfiles (source "Locale/catalogs/nederlands/DFA.catalog")
  122.             (dest "Locale:catalogs/nederlands") )
  123.     )
  124.     )
  125.  
  126.     (complete 21)
  127.  
  128.     (if (IN language 4)
  129.     (
  130.         (copyfiles (source "Locale/catalogs/suomi/DFA.catalog")
  131.             (dest "Locale:catalogs/suomi") )
  132.  
  133.         (copyfiles (source "Locale/Languages/suomi.language")
  134.             (dest "Locale:Languages") )
  135.     )
  136.     )
  137.  
  138.     (complete 24)
  139.  
  140.     (if (IN language 5)
  141.     (
  142.         (copyfiles (source "Locale/catalogs/svenska/DFA.catalog")
  143.             (dest "Locale:catalogs/svenska") )
  144.     )
  145.     )
  146. )
  147. )
  148.  
  149. (complete 25)
  150.  
  151. (set installrexx
  152.     (askchoice
  153.         (prompt    "Do you want to install the example ARexx scripts?")
  154.         (choices    "Yes"
  155.                     "No"
  156.         )
  157.         (help    "The sample ARexx scripts can give you an idea "
  158.                 "how to use DFA in connection to ARexx and e.g. "
  159.                 "the Cygnus Ed (by ADSG). "
  160.         )
  161.  
  162.         (default 1)
  163.     )
  164. )
  165.  
  166. (if (= installrexx 0)
  167. (
  168.     ; Install ARexx scripts
  169.     (set rexxdest
  170.         (askdir
  171.             (prompt "Select the directory where to install the ARexx scripts")
  172.             (default "Rexx:")
  173.             (help    "If you want to *use* the Arexx scripts at once, "
  174.                     "select an directory that is already within your "
  175.                     "Arexx search path."
  176.             )
  177.         )
  178.     )
  179.  
  180.     (set error
  181.         (trap 4
  182.             (copyfiles (source "rexx") (dest rexxdest) (all) )
  183.         )
  184.     )
  185.  
  186.     (if (> error 0)
  187.         (message ("Dos Error %ld detected" @ioerr))
  188.     )
  189. )
  190. )
  191.  
  192. (complete 35)
  193.  
  194. (if (exists "s/DFA.key")
  195. (
  196.     (copyfiles (source "s/DFA.key") (dest "s:") (infos))
  197. )
  198. )
  199.  
  200. (complete 40)
  201.  
  202. (set installadrfile
  203.     (askchoice
  204.         (prompt    "Do you want to install the default address file (into s:) ?")
  205.         (choices    "Yes"
  206.                     "No"
  207.         )
  208.         (help    "The default address file is named 'adr.file' and "
  209.                 "will be copied into the 's:' drawer. "
  210.                 "It contains the author's address which could be "
  211.                 "useful in some cases (Bug reports etc.) "
  212.                 "However, if you do already have such a file within "
  213.                 "your 's:' drawer you may not want to overwrite it. "
  214.         )
  215.         (default 0)
  216.     )
  217. )
  218.  
  219. (if (= installadrfile 0)
  220. (
  221.     (message "Default address file (adr.file) will be installed in 's:' ")
  222.  
  223.     (set error
  224.         (trap 4
  225.             (copyfiles (source "s/adr.file") (dest "s:") (infos) )
  226.         )
  227.     )
  228.  
  229.     (if (> error 0)
  230.         (message ("Dos Error %ld detected" @ioerr))
  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.  
  252.     (set docparts
  253.         (askoptions
  254.             (prompt    "Choose the kind of documentation you would "
  255.                     "like to get installed"
  256.             )
  257.             (choices    "ASCII documentation "
  258.                         "AmigaGuide documentation "
  259.                         "TeX documentation (.DVI file) "
  260.             )
  261.             (help    "The ASCII documentation can be read by "
  262.                     "usual ASCII text readers. "
  263.                     ""
  264.                     "The AmigaGuide documentation will only "
  265.                     "be usefull, if you have an amigaguide "
  266.                     "reader like 'Amigaguide' or 'Multiview' "
  267.                     "The AmigaGuide file will be used from within "
  268.                     "the program as well, if it is present. "
  269.                     ""
  270.                     "The DVI file makes only sense if you have "
  271.                     "a TeX package or at least parts of it installed. "
  272.             )
  273.         )
  274.     )
  275.  
  276.     (if (IN docparts 0)
  277.     (
  278.         ; ASCII docs
  279.         (set docdest
  280.             (askdir
  281.                 (prompt "Select the location to install the ASCII documentation")
  282.                 (help    "Choose a destination partition or directory "
  283.                         "to contain the ASCII documentation. "
  284.                         "The install program will copy the ASCII documentation "
  285.                         "to this directory."
  286.                 )
  287.                 (default "Work:")
  288.             )
  289.         )
  290.  
  291.         (working "Extracting ASCII documentation from archive")
  292.  
  293.         (if (OR (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) ":" ))
  294.                 (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) "/" )))
  295.         (
  296.             ; Destination ends not in ":" or "/", append "/"
  297.             (set docdest (cat docdest "/"))
  298.         )
  299.         )
  300.  
  301.         (run "c/lha e Documentation/Documentation.lha dfa_english.doc %s" docdest)
  302.         (run "c/lha e Documentation/Documentation.lha dfa_english.doc.info %s" docdest)
  303.  
  304.         (complete 60)
  305.  
  306.     )
  307.     )
  308.  
  309.     (if (IN docparts 1)
  310.     (
  311.         ; AMIGAGUIDE docs
  312.         (set docdest
  313.             (askdir
  314.                 (prompt "Select the location to install the Amigaguide documentation")
  315.                 (help    "Choose a destination partition or directory "
  316.                         "to contain the Amigaguide documentation. "
  317.                         "The install program will copy the Amigaguide documentation "
  318.                         "to this directory."
  319.                 )
  320.                 (default "Work:")
  321.             )
  322.         )
  323.  
  324.         (working "Extracting Amigaguide documentation from archive")
  325.  
  326.         (if (OR (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) ":" ))
  327.                 (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) "/" )))
  328.         (
  329.             ; Destination ends not in ":" or "/", append "/"
  330.             (set docdest (cat docdest "/"))
  331.         )
  332.         )
  333.  
  334.         (run "c/lha e Documentation/Documentation.lha dfa_english.guide %s" docdest)
  335.         (run "c/lha e Documentation/Documentation.lha dfa_english.guide.info %s" docdest)
  336.  
  337.         (complete 80)
  338.  
  339.     )
  340.     )
  341.  
  342.     (if (IN docparts 2)
  343.     (
  344.         ; DVI docs
  345.         (set docdest
  346.             (askdir
  347.                 (prompt "Select the location to install the TeX documentation")
  348.                 (help    "Choose a destination partition or directory "
  349.                         "to contain the TeX documentation. "
  350.                         "The install program will copy the TeX documentation "
  351.                         "to this directory."
  352.                 )
  353.                 (default "Work:")
  354.             )
  355.         )
  356.  
  357.         (working "Extracting TeX documentation from archive")
  358.  
  359.         (if (OR (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) ":" ))
  360.                 (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) "/" )))
  361.         (
  362.             ; Destination ends not in ":" or "/", append "/"
  363.             (set docdest (cat docdest "/"))
  364.         )
  365.         )
  366.  
  367.         (run "c/lha e Documentation/Documentation.lha dfa_english.dvi %s" docdest)
  368.         (run "c/lha e Documentation/Documentation.lha dfa_english.dvi.info %s" docdest)
  369.     )
  370.     )
  371.  
  372. )
  373. (
  374.     ; german doc wanted
  375.     (set docparts
  376.         (askoptions
  377.             (prompt    "Choose the kind of documentation you would "
  378.                     "like to get installed"
  379.             )
  380.             (choices    "ASCII documentation "
  381.                         "AmigaGuide documentation "
  382.                         "TeX documentation (.DVI file) "
  383.             )
  384.             (help    "The ASCII documentation can be read by "
  385.                     "usual ASCII text readers. "
  386.                     ""
  387.                     "The AmigaGuide documentation will only "
  388.                     "be usefull, if you have an amigaguide "
  389.                     "reader like 'Amigaguide' or 'Multiview' "
  390.                     "The AmigaGuide file will be used from within "
  391.                     "the program as well, if it is present. "
  392.                     ""
  393.                     "The DVI file makes only sense if you have "
  394.                     "a TeX package or at least parts of it installed. "
  395.             )
  396.         )
  397.     )
  398.  
  399.     (if (IN docparts 0)
  400.     (
  401.         ; ASCII docs
  402.         (set docdest
  403.             (askdir
  404.                 (prompt "Select the location to install the ASCII documentation")
  405.                 (help    "Choose a destination partition or directory "
  406.                         "to contain the ASCII documentation. "
  407.                         "The install program will copy the ASCII documentation "
  408.                         "to this directory."
  409.                 )
  410.                 (default "Work:")
  411.             )
  412.         )
  413.  
  414.         (working "Extracting ASCII documentation from archive")
  415.  
  416.         (if (OR (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) ":" ))
  417.                 (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) "/" )))
  418.         (
  419.             ; Destination ends not in ":" or "/", append "/"
  420.             (set docdest (cat docdest "/"))
  421.         )
  422.         )
  423.  
  424.         (run "c/lha e Anleitung/Anleitung.lha dfa.dok %s" docdest)
  425.         (run "c/lha e Anleitung/Anleitung.lha dfa.dok.info %s" docdest)
  426.  
  427.         (complete 60)
  428.     )
  429.     )
  430.  
  431.     (if (IN docparts 1)
  432.     (
  433.         ; AMIGAGUIDE docs
  434.         (set docdest
  435.             (askdir
  436.                 (prompt "Select the location to install the Amigaguide documentation")
  437.                 (help    "Choose a destination partition or directory "
  438.                         "to contain the Amigaguide documentation. "
  439.                         "The install program will copy the Amigaguide documentation "
  440.                         "to this directory."
  441.                 )
  442.                 (default "Work:")
  443.             )
  444.         )
  445.  
  446.         (working "Extracting Amigaguide documentation from archive")
  447.  
  448.         (if (OR (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) ":" ))
  449.                 (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) "/" )))
  450.         (
  451.             ; Destination ends not in ":" or "/", append "/"
  452.             (set docdest (cat docdest "/"))
  453.         )
  454.         )
  455.  
  456.         (run "c/lha e Anleitung/Anleitung.lha dfa.guide %s" docdest)
  457.         (run "c/lha e Anleitung/Anleitung.lha dfa.guide.info %s" docdest)
  458.  
  459.         (complete 80)
  460.     )
  461.     )
  462.  
  463.     (if (IN docparts 2)
  464.     (
  465.         ; DVI docs
  466.         (set docdest
  467.             (askdir
  468.                 (prompt "Select the location to install the TeX documentation")
  469.                 (help    "Choose a destination partition or directory "
  470.                         "to contain the TeX documentation. "
  471.                         "The install program will copy the TeX documentation "
  472.                         "to this directory."
  473.                 )
  474.                 (default "Work:")
  475.             )
  476.         )
  477.  
  478.         (working "Extracting TeX documentation from archive")
  479.  
  480.         (if (OR (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) ":" ))
  481.                 (NOT (= (substr docdest (- (strlen docdest) 1 ) 1 ) "/" )))
  482.         (
  483.             ; Destination ends not in ":" or "/", append "/"
  484.             (set docdest (cat docdest "/"))
  485.         )
  486.         )
  487.  
  488.         (run "c/lha e Anleitung/Anleitung.lha dfa.dvi %s" docdest)
  489.         (run "c/lha e Anleitung/Anleitung.lha dfa.dvi.info %s" docdest)
  490.  
  491.     )
  492.     )
  493. )
  494. )
  495.  
  496. (complete 100)
  497.  
  498.