; documentation now gets bunged in the same directory
; as Heddley for the sake of on-line help support
;
(set @askmagichelp "If you use the MagicWB icons and backdrops you will probably want to use the MagicWB style icons for Heddley and def_guide.info. This install script will copy a MagicWB style icon to ENVARC:sys/def_guide.info.")
(set @askrexx-help "The ARexx scripts are usually placed in the REXX: drawer")
(set hdestdir
(askdir
(prompt "Give Heddley a home...")
(help @askdir-help)
(default "SYS:Tools")
)
)
(complete 10)
(set magicwb
(askbool
(prompt "Do you want to install MagicWB icons?")
(help @askmagichelp)
)
)
(complete 20)
(if (= magicwb 1)
(
(set hicon "Archive/Heddley.info")
(set guideicon "Archive/def_guide.info")
(set dicon "Archive/def_doc.info")
)
(
(set hicon "Archive/Heddley_old_unsnap.info")
(set guideicon "Archive/def_guide_old.info")
(set dicon "Archive/def_doc_old.info")
)
)
(complete 30)
(copyfiles
(prompt "Copying Heddley...")
(source "Archive/Heddley")
(dest hdestdir)
)
(complete 40)
(copyfiles
(prompt "Copying icon...")
(source hicon)
(dest hdestdir)
(newname "Heddley.info")
)
(complete 50)
(copyfiles
(prompt "Copying documentation...")
(source "Archive/")
(choices ("Heddley.guide") ("edd.gif"))
(dest hdestdir)
)
(complete 52)
(copyfiles
(prompt "Copying manual page...")
(source "Archive/Heddley.man")
(dest hdestdir)
)
(complete 55)
(set hpdestdir
("%s/Pictures" hdestdir)
)
(makedir
(hpdestdir)
)
(copyfiles
(prompt "Copying pictures...");
(source "Archive/Pictures")
(all)
(dest hpdestdir)
)
(complete 60)
(copyfiles
(prompt "Copying default guide icon...")
(source guideicon)
(dest "ENVARC:sys/")
(newname "def_guide.info")
)
(complete 70)
(copyfiles
(prompt "Copying documentation icon...")
(source guideicon)
(dest hdestdir)
(newname "Heddley.guide.info")
)
(complete 75)
(copyfiles
(prompt "Copying manual page icon...")
(source dicon)
(dest hdestdir)
(newname "Heddley.man.info")
)
(complete 80)
(set rdestdir
(askdir
(prompt "Choose where to put the ARexx scripts")
(help @askrexx-help)
(default "REXX:")
(newpath)
)
)
(complete 90)
(copyfiles
(prompt "Copying ARexx scripts...")
(pattern "#?.rexx")
(source "Archive/")
(dest rdestdir)
)
(set @default-dest hdestdir)
(complete 100)
(exit
("ARexx support scripts can be found in the ")
(rdestdir)
(" drawer (or partition). ")
("Documentation can be found in the ")
(hdestdir)
(" drawer (or partition). Enjoy using Heddley!")
(" Please mail any bugs or suggestions to the author at")
(" ejad-a@minster.york.ac.uk (see documentation).")