home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 9
/
FreshFishVol9-CD2.bin
/
bbs
/
util
/
smenu-1.0.lha
/
SMenu
/
SMenu.install
< prev
next >
Wrap
Text File
|
1994-06-03
|
2KB
|
137 lines
; find SMenu version in distribution
(set vernum-SMenu (getversion "SMenu"))
(set version-SMenu (/ vernum-SMenu 65536))
(set revision-SMenu (- vernum-SMenu (* version-SMenu 65536) ) )
(set @default-dest "")
(set @doc-dest "")
(set #bad-kick "SMenu needs Kickstart 2.04 at least to run !")
(set #install-SMenu-msg
("Please select the Directory where you would like to install SMenu...")
)
(set #install-msg
(cat ("\n\n SMenu %ld.%ld installation script.\n\n\n" version-SMenu revision-SMenu)
" This script installs SMenu and related files on your Amiga.\n\n")
)
(set #install-guide
(cat "Where would you like to install the documentation for SMenu which is in amigaguide format?")
)
(set #arexx-prompt "Which ARexx-scripts should be installed?")
(set #arexx-help
(cat " These are scripts which make SMenu able to quit other programs.\n"
" You should install those scripts which supports programs in your system.\n\n")
)
; BEGINNING OF INSTALLATION
; MAKE SURE WE ARE RUNNING UNDER A 2.04 ROM AT LEAST
(if (< (/ (getversion) 65536) 37)
(
(abort #bad-kick)
)
)
(message #install-msg)
; ASK WHERE TO INSTALL SMenu
(set @default-dest
(askdir
(prompt #install-SMenu-msg)
(help @askdir-help)
(default "SYS:WBStartup")
)
)
(copyfiles
(prompt "")
(source "SMenu")
(dest @default-dest)
(infos)
)
; INSTALL AREXX-SCRIPT
(set lang
(askoptions (prompt #arexx-prompt)
(help #arexx-help)
(choices
"ADPro"
"CygnusED"
"DiskMaster"
"DOpus"
"EDGE"
"FinalWriter"
"GoldED"
"NComm"
"PPage"
"ProCalc"
"Thor"
)
)
)
(makedir "REXX:SMenu")
(set n 0)
(while (set language (select n
"ADPro_quit.rexx"
"CED_quit.rexx"
"DM_quit.rexx"
"DOpus_quit.rexx"
"EDGE_quit.rexx"
"FinalW_quit.rexx"
"GED_quit.rexx"
"NComm_quit.rexx"
"PPage_quit.rexx"
"ProCalc_quit.rexx"
"Thor_quit.rexx"
""))
(
(if (IN lang n)
(
(if (<> 1 n)
(
(copyfiles (source (cat "arexx/" language))
(dest "REXX:SMenu/")
)
)
)
)
)
)
(set n (+ n 1))
)
; INSTALL SMenu.GUIDE
(if (askbool
(prompt "Do you want to install the documentation ?")
(help @askbool-help)
)
; Then
(
(set @doc-dest
(askdir
(prompt #install-guide)
(help @askdir-help)
(default "SYS:Help/")
)
)
(copyfiles
(prompt "")
(source "SMenu.Guide")
(dest @doc-dest)
(infos)
)
)
)