home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d9xx
/
d993
/
muiffr.lha
/
MUIFFR
/
Install
/
Install_MUIFFR
< prev
Wrap
Text File
|
1994-04-05
|
6KB
|
257 lines
;
; Install script for MUI Fido File Request
;
; $VER: Installation MUIFFR V1.1 (14.02.94)
;
(set @default-dest "")
;=============================================================================
; English strings
(set default_lang 1)
(set #bad-kick "MUIFFR only runs under OS 2.04 or higher!\n")
(set #install-msg
(cat "\n\nMUI Fido File Request installation script.\n"
"This script installs MUIFFR on your Amiga.\n\n"
"Read the documentation for\n"
"further information on MUIFFR.\n\n"
"MUI Fido File Request © 1994 Martin Steppler\n"
"All rights reserved."
)
)
(set #ask-destination
(cat "Enter the name of the destination-directory!"
)
)
(set #ask-destination-msg
(cat "\nEnter the name of the directory, you wish to\n"
"install MUIFFR to. A directory called MUIFFR will\n"
"automatically be created in this directory\n"
"All other files will be stored in the directory MUIFFR.\n\n"
"This is why you do not have to create a directory\n"
"on your own.\n"
)
)
(set #which-language
(cat "Which languages (incl. documentation) are to\n"
"be installed?\n"
)
)
(set #ask-font
(cat "Do you want to install an IBM font, too?")
)
(set #ask-dest_font
(cat "Where do you want to install the IBM font to?")
)
(set #yes "Yes")
(set #no "No")
;=============================================================================
; German strings
(if (= @language "deutsch")
(
(set default_lang 2)
(set #bad-kick "MUIFFR läuft nur unter OS 2.04 oder besser!\n")
(set #install-msg
(cat "\n\nMUI Fido File Request Installationsskript.\n"
"Diese Befehlsdatei installiert MUIFFR auf Ihrem\n"
"Amiga. Lesen Sie die Dokumentation für\n"
"weitere Informationen über MUIFFR.\n\n"
"MUI Fido File Request © 1994 Martin Steppler\n"
"All rights reserved."
)
)
(set #ask-destination
(cat "Geben Sie das Zielverzeichnis an!"
)
)
(set #ask-destination-msg
(cat "\nGeben Sie den Namen des Verzeichnisses an, wohin\n"
"MUIFFR installiert werden soll. In diesem\n"
"Verzeichnis wird automatisch ein Verzeichnis MUIFFR\n"
" erzeugt, in dem die weiteren Dateien abgelegt werden.\n\n"
"Sie brauchen also kein Verzeichnis selbst anlegen."
)
)
(set #which-language
(cat "Welche Sprachen (inkl. Dokumentation) sollen\n"
"installiert werden?\n"
)
)
(set #ask-font
(cat "Soll der IBM-Zeichensatz ebenfalls installiert werden?")
)
(set #ask-dest_font
(cat "Wohin soll der IBM-Zeichensatz installiert werden?")
)
(set #yes "Ja")
(set #no "Nein")
))
;=============================================================================
;=============================================================================
; make sure we are running under a 2.04 ROM
(complete 0)
(if (< (/ (getversion) 65536) 37)
(
(abort #bad-kick)
))
;=============================================================================
(message #install-msg)
(complete 5)
(message #ask-destination-msg)
(complete 10)
; ask user where to install MUIFFR to
(set @default-dest
(tackon
(askdir
(prompt #ask-destination)
(help @askdir-help)
(default "Work:")
)
"MUIFFR"
)
)
(complete 20)
; ask user which languages are to be installed
(set lang
(askoptions
(prompt #which-language)
(help @askoptions-help)
(choices "english"
"deutsch"
)
(default default_lang)
)
)
(complete 30)
(set inst_font
(askbool
(prompt #ask-font)
(help @askbool-help)
(choices #yes #no)
)
)
(complete 35)
(if (= 1 inst_font)
(
(set dest_font
(askdir
(prompt #ask-dest_font)
(help @askdir-help)
(default "Fonts:")
)
)
))
(complete 40)
;-----------------------------------------------------------------------------
; copy all language non-specific files
(copyfiles
(source "/")
(dest @default-dest)
(pattern "(MUIFidoFileRequest|muiffr.config|List)#?")
(infos)
)
(complete 60)
; no catalogs, if only "deutsch" or nothing was specified
(if ((AND (<> 2 lang) (<> 0 lang)))
(
(makedir (cat @default-dest "/Catalogs"))
))
(complete 70)
; copy all language specific files
(set n 0)
(while
(set language
(select n "english"
"deutsch"
""
)
)
(
(if (IN lang n)
(
; copy Catalog files
(if (<> 1 n)
(
(copyfiles
(source
(cat "/Catalogs/" language)
)
(dest
(cat @default-dest "/Catalogs/" language)
)
(all)
)
))
; copy readme file
(copyfiles
(source
(select n "/ReadMe"
"/LiesMich"
)
)
(dest @default-dest)
(infos)
)
))
(set n (+ n 1))
))
(complete 90)
; install IBM fonts
(if (= 1 inst_font)
(
(copyfiles
(source "/Fonts")
(dest dest_font)
(pattern "IBM")
(fonts)
)
))
; so long and thanks for all the fish
(complete 100)