home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 113 / EnigmaAmiga113CD.iso / software / on-line / amirsay / install_amirsay < prev    next >
Encoding:
Text File  |  2000-06-10  |  3.7 KB  |  146 lines

  1. ; Script created by Bruce Steers bsteers@btinternet.com
  2.  
  3. (set ver "$VER: Install_AmIRSay 4.6 (11.06.00)")
  4.                      (set verN "4.6")
  5.  
  6. (set v39 (>= (/ (getversion "exec.library" (resident)) 65536) 39))
  7. (set srcdir (pathonly @icon))
  8.  
  9. (welcome "\nWelcome to the Install_AmIRSay "verN" Script\nThis script will install all AmIRSay related files and offer to create a few handy ALIAS's")
  10.  
  11. (set @default-dest (expandpath "miami:/amirc"))
  12.  (set dst
  13.   (askdir
  14.   (default @default-dest)
  15.   (newpath @default-dest)
  16.   (prompt "\n\"AmIRC/\" dir ?\n Select AmIRC Program Dir")
  17.   (help "\n\nYOU MUST point the way to AmIRC\'s Drawer")
  18.   )
  19.  )
  20.  
  21. (if (not (exists (tackon dst "AmIRC")))
  22. (abort "Sorry but AmIRC did not exist\nin the drawer you chose ???\n\n YOU MUST point the way to AmIRC\'s Drawer")
  23. )
  24.  
  25. (complete 10)
  26.  
  27. (set @default-dest (expandpath dst))
  28.  
  29.   (copyfiles
  30.   (source "AmIRSayPrefs")
  31.   (dest @default-dest)
  32.   (prompt "Install AmIRSayPrefs to your "@default-dest" dir ?\n")
  33.   (help "")
  34.   (confirm)
  35.   (infos)
  36.   )
  37.  
  38.   (copyfiles
  39.   (source "rexx/AmIRSay.amirx")
  40.   (dest (tackon @default-dest "rexx/"))
  41.   (prompt "Install AmIRSay.amirx to your \"AmIRC/rexx\" dir ?")
  42.   (help "")
  43.   (confirm)
  44.   (infos)
  45.   )
  46.  
  47.   (copyfiles
  48.   (source "amirsay.readme")
  49.   (dest @default-dest)
  50.   (prompt "Install AmIRSay.readme to your \"AmIRC/\" dir ?")
  51.   (help "")
  52.   (confirm)
  53.   (infos)
  54.   )
  55.  
  56.     (set guideDST (select
  57.                         (askchoice
  58.                         (prompt "Where do you want the Guide Installed ?")
  59.                         (choices @default-dest "Help:" "Help:English")
  60.                         (help "Choose 1 of the 3 destinations for the AmIRSay.guide\n\nInstalling guide will make the HELP key load the guide relevant to where the mouse is or what page is open in the GUI")
  61.                         (default 0)
  62.                         )
  63.                   @default-dest "Help:" "Help:English/"
  64.                   )
  65.     )
  66.    (copyfiles
  67.    (source "AmIRSay.guide")
  68.    (dest guideDST)
  69.    (infos)
  70.    )
  71.  
  72.  
  73.  
  74.  
  75. (set lang
  76.     (askoptions
  77.         (prompt "Select Language catalogs to install\nEnglish is Built in.\n")
  78.         (help @askchoice-help)
  79.         (choices "Deutsch" "Français" "Dansk")
  80.         (default 0)
  81.     )
  82. )
  83.  
  84.  (if (or (= lang 1) (or (= lang 3) (or (= lang 5) (= lang 7))))
  85.   (
  86.   (set cata (tackon srcdir "catalogs/deutsch/"))
  87.     (copyfiles
  88.     (source cata)
  89.     (dest "LOCALE:Catalogs/deutsch/")
  90.     (all)
  91.     )
  92.   )
  93.  )
  94.  
  95.  
  96.  (if (or (= lang 2) (or (= lang 3) (or (= lang 6) (= lang 7))))
  97.   (
  98.   (set cata (tackon srcdir "catalogs/français/"))
  99.     (copyfiles
  100.     (source cata)
  101.     (dest "LOCALE:Catalogs/français/")
  102.     (all)
  103.     )
  104.   )
  105. )
  106.  
  107.  (if (or (= lang 4) (or (= lang 5) (or (= lang 6) (= lang 7))))
  108.   (
  109.   (set cata (tackon srcdir "catalogs/dansk/"))
  110.     (copyfiles
  111.     (source cata)
  112.     (dest "LOCALE:Catalogs/dansk/")
  113.     (all)
  114.     )
  115.   )
  116. )
  117.  
  118.  (set cfg (tackon @default-dest "Default.AmIRCfg"))
  119.  
  120.    (run "rx rexx/add2amirc.rexx "cfg""
  121.    (prompt "I can add some usefull aliases to your Default.AmIRCfg (Reccomended)\n\n"
  122.  
  123. "these alias commands have not changed\n"
  124. "since version 4.0 with /SAY# .\n\n"
  125. "See Help for a more detailed explanation.\n\n"
  126. "Also i will ask to backup Default.AmIRCfg .")
  127.    (help "These Usefull aliases will be added  to your Default.AmIRCfg file\n\n"
  128. "/SAYS = Start AmIRSay        \n"
  129. "/SAYV = Get AmIRSay Version  \n"
  130. "/SAYN = Check for New Version\n"
  131. "/SAYG = load GUI             \n"
  132. "/SAYU = Update Preferences   \n"
  133. "/SAYQ = QUIT AmIRSay         \n"
  134. "/SAY# = Silence/Hear Channels\n"
  135. "/SAY? = Call Help            \n\n"
  136.  
  137.    )
  138.    (confirm)
  139.    )
  140.  
  141.  
  142. (complete 99)
  143. (set @default-dest (expandpath dst))
  144. (complete 100)
  145. (exit  "\n\n" @app-name " Installaton is now over.\n\nPlease Read the Docs to understand how to use AmIRSay\n\n()_\\\n() /")
  146.