home *** CD-ROM | disk | FTP | other *** search
- ; Install_Phoenix -- Installer script for PhoEniX-AmIRC
- ; $VER: Install_Phoenix 1.21 (05.02.96) by |Paladin|
- ;
- (set #ver "1.21"
- #app-name (cat @app-name " v"#ver)
- )
- (complete 0)
- (welcome "\nWelcome to the "#app-name" installer.")
- (if (< 39 (/ 65536 (getversion "exec.library" (resident))))
- (abort (#app-name" requires AmigaOS 3.0 (V39) or later."))
- )
- (message
- "-- WARNING --\n\n"
- "Existing files will be over-written. If you wish to make a backup"
- " of any of your old Phoenix installation abort now and do so.\n\n\n"
- "This script was designed for use with:\n\nInstaller 43.3 (04/30/96)"
- )
- (set
- @copylib-help "Experts don't need help with this."
- @copyfiles-help (@copylib-help)
- #source-dir (if (= 1 (exists @icon)) (pathonly @icon) (@icon))
- #default-dir (if (= 2 (exists "AmiTCP:" (noreq))) ("AmiTCP:") ("SYS:"))
- @default-dest (askdir
- (prompt "Where is AmIRC installed?")
- (help " Choose the directory where your existing install"
- " of AmIRC is located. This directory should contain"
- " a rexx/ subdirectory where most of "@app-name"will "
- "be installed."
- )
- (default #default-dir)
- )
- #dest-rexx (tackon @default-dest "rexx")
- #dest-snd (tackon @default-dest "Sounds")
- #dest-libs (if (= 2 @user-level)
- (askdir
- (prompt "Where should Libraries be installed?")
- (help " Choose a directory to install the libraries used"
- " by "@app-name". Version numbers will be checked before"
- " overwriting existing files."
- )
- (default "LIBS:")
- )
- ("LIBS:")
- )
- #dest-rexxc (if (= 2 @user-level)
- (askdir
- (prompt "Where are your ARexx commands located?")
- (help " Choose a directory to install general ARexx commands"
- " used by RexxPlus and ARexx. Version numbers will be checked before"
- " overwriting existing files."
- )
- (default "SYS:rexxc")
- )
- ("SYS:rexxc")
- )
- #dest-mui (if (= 2 (exists "MUI:" (noreq))) ("MUI:")
- (askdir
- (prompt "Where is MUI installed?")
- (help " Choose the root directory where MUI is installed."
- " Normally there should be an assigned MUI:, but it is"
- " not currently visible to this installer."
- )
- (default #default-dir)
- )
- )
- )
- (complete 5)
- (foreach "Libs" "#?"
- (copylib
- (source (cat "Libs/" @each-name))
- (dest #dest-libs)
- (if (= 2 @user-level)
- (
- (prompt "Copying "@each-name"...")
- (help @copylib-help)
- (confirm)
- )
- )
- )
- )
- (complete 10)
- (if (< 2 (exists #dest-snd (noreq)))
- (set #dest-snd
- (askdir
- (prompt "Where are your Sounds installed?")
- (help " Select the same Sound directory that you have AmIRC"
- " configured to use. If you don't have a Sounds/ directory"
- " then create one."
- )
- (default @default-dest)
- )
- )
- )
- (complete 20)
- (copyfiles
- (source "bin/Sounds")
- (dest #dest-snd)
- (all)
- )
- (complete 30)
- (copyfiles
- (source "bin/rexx")
- (dest #dest-rexx)
- (all)
- )
- (complete 40)
- (copyfiles
- (source "RexxC")
- (dest #dest-rexxc)
- (all)
- )
- (complete 50)
- (if (= 1 (askbool
- (prompt "Install documentation?")
- (help "If you've never used "@app-name" before you'll be a typing"
- " monkey without first reading the docs."
- )
- ) )
- (copyfiles
- (source #source-dir)
- (dest @default-dest)
- (pattern "Phoenix.#?")
- (files)
- (infos)
- (noposition)
- )
- )
- (complete 60)
- (copyfiles
- (source "bin")
- (dest @default-dest)
- (pattern "#?")
- (files)
- (infos)
- (noposition)
- )
- (complete 70)
- (copyfiles
- (source "MUI")
- (dest #dest-mui)
- (all)
- (if (= 2 @user-level)
- (
- (prompt "MUI utilities")
- (help " MUIRexx is required by "@app-name" for the "
- "/CONFIG plus other GUI commands and is highly recommended."
- )
- (confirm)
- )
- )
- )
- (complete 80)
- (copyfiles
- (source "WBStartup")
- (dest "SYS:WBStartup")
- (all)
- (infos)
- (noposition)
- (if (= 2 @user-level)
- (
- (prompt "Programs that need to start on bootup in WBStartup")
- (help " RPStart is the RexxMast of RexxPlus, it is"
- " required for "@app-name" to run."
- )
- (confirm)
- )
- )
- )
- (complete 90)
- (if (= 2 @user-level)
- (
- (set
- #yes (askbool
- (prompt "Make changes to Phoenix.amirx? (RECOMMENDED)")
- (help " This will overwrite the stock communication script"
- " with one that uses the same directories that you selected"
- " during this install."
- )
- )
- )
- )
- (set #yes 1)
- )
- (if (= 1 #yes)
- (
- (textfile
- (dest (cat #dest-rexx "/Phoenix.amirx"))
- (append
- (cat
- "/*\\\n"
- " * Phoenix.amirx -- AmIRC to Phoenix interface\n"
- " * Usage : change your Event ANY/JOIN/KICK/MODE/INVITE settings to\n"
- " * : \"phoenix.amirx %p\" & edit .phoenix.cfg to suit your needs.\n"
- " * $VER: PhoEniX.amirx "#ver" (01.02.97) by |Paladin|\n"
- "\\*/\n"
- "options results;parse arg line;p=address();parse var p .\'.\'p2\n"
- "tp=pragma(\'p\',0);pragma(\'p\',tp);n=\'PHOENIX.\'p2\n"
- "if ~show(\'P\',n) then do;address(n)\n"
- "p line\n"
- "exit;end\n"
- "else if getclip(\'phx_\'p2)~=p2 then do;pragma(\'p\',tp+2)\n"
- "if ~show(\'L\',\'rexxsupport.library\') then if ~addlib(\'rexxsupport.library\',0,-30,0) then do;"
- "\'echo P=\'phx\' \'d2c(2)\'FATAL ERROR:\'d2c(2)\' Unable to load rexxsupport.library.\'\n"
- "exit;end;forbid();address command;\'run >nil: "#dest-rexx"/Phoenix >>T:Phoenix.err \'p2\n"
- "\'waitforport \'n\n"
- "address;if ~show(\'P\',n) then \'echo P=\'d2c(27)\'b½PhoEniX╗ Unable to start Phoenix\'\n"
- "permit();end\n"
- )
- )
- )
- )
- )
- (complete 100)
- (exit
- "\nInstallation Complete!\n"
- #app-name" may be found in your "@default-dest" directory (or partition).\n\n"
- "Please read the docs for configuration instructions.\n\n"
- "If this is your first install of "@app-name" or you are updating from "
- "a pre-1.14 version, then a reboot will be required before "@app-name" "
- "will run correctly."
- (quiet)
- )
-