home *** CD-ROM | disk | FTP | other *** search
- ; -------------------------------------------------------------------------
- ; Euterpe Installation script
- ; ===========================
- ;
- ;$VER: Install 1.16 (8.3.98)
- ; -------------------------------------------------------------------------
-
- (complete 0)
-
- ; -------------------------------------------------------------------------
- ; default msgs setting
- ; -------------------------------------------------------------------------
-
- (set #introduction
- (cat "\n\nInstallation of Euterpe.\n"
- ))
-
- (set #quel-disque
- (cat "Where do you want to install Euterpe\n(A drawer will be created) ?"
- ))
-
- (set #quel-disque-aide
- (cat "Select the drawer or volume where the installation should be made."
- ))
- (set #oui-prompt
- (cat "Installation of OBJECT USER INTERFACE catalog files."
- ))
- (set #asyncio-prompt
- (cat "Installation of AsyncIO.library."
- ))
-
- (set #startup-prompt
- (cat "Adding Assign Euterpe: in user-startup."
- ))
-
- (set #fix-error-asyncio
- (cat "Fixing previous incorrect installation of AsyncIO.library."
- ))
-
- (set #docs-msg
- (cat "Do you want to install the docs files ?"
- ))
-
- (set #docs-help
- (cat "The docs files are produced by a conversion of the guide files and "
- "are ANSI text files.\n"
- "Select \"Yes\" if your version of amigaguide is unable to display "
- "the help or if you want to print the doc."
- ))
- (set #developer-msg
- (cat "Do you want to install the developer files ?"
- ))
- (set #developer-help
- (cat "The developer files are provided for people interested in the development of XApps."
- ))
-
- (set #camd-default
- (cat "Do you want to use camd.library for MIDI accesses ?"
- ))
- (set #camd-help
- (cat "Installer has recognised the camd.library (Midi support routines).\n"
- "Select \"Yes\" if you want to use it by default.\n"
- "Select \"No\" if you want to use a serial device.\n"
- "Note that this is only of interest for the default settings.\n"
- "Midi instruments settings are independent from this choice.\n"
- ))
-
- (set #help-sel
- (cat "Select one or more languages for the online help."
- ))
-
- (set #doc-sel
- (cat "Select one or more languages for the doc files."
- ))
-
- (set #msg-mkdir
- (cat "Creating directory structure."
- ))
-
- (set #prg-sel
- (cat "Select the executable files wanted."
- ))
-
- (set #prg-help
- (cat "If you are not a registered user, you may only choose Euterpe.\n"
- "Other choices are optimized versions of Euterpe."
- ))
-
- (set #metro-msg
- (cat "Install the example voice metronome files ?"
- ))
-
- (set #metro-help
- (cat "For demonstrating how to use the metronome instruments one example "
- "is provided which count the beats with human voice.\n"
- "Select \"Yes\" if you are interested."
- ))
-
- (set #rexx-msg
- (cat "Select the additional REXX scripts to install."
- ))
-
- (set #rexx-help
- (cat "The scripts needed by Euterpe are already installed. "
- "You can choose here other scripts provided as examples."
- ))
-
- (set #cat-sel
- (cat "Select one or more languages for the catalogs."
- ))
- (set #cat-msg
- (cat "Do you wish to install the translator files ?"
- ))
- (set #cat-help
- (cat "These files are not necessary for using Euterpe but are needed by translators."
- ))
-
- ; -------------------------------------------------------------------------
- ; french msgs setting
- ; -------------------------------------------------------------------------
-
- (if (= @language "français")
- (
- (set #introduction
- (cat "\n\nInstallation d'Euterpe.\n"
- ))
-
- (set #quel-disque
- (cat "Où voulez-vous installer Euterpe\n(Un répertoire sera créé) ?"
- ))
-
- (set #quel-disque-aide
- (cat "Sélectionnez le disque ou répertoire où l'installation doit être effectuée."
- ))
-
- (set #oui-prompt
- (cat "Installation des catalogues pour l'interface OUI."
- ))
-
- (set #asyncio-prompt
- (cat "Installation de l'AsyncIO.library."
- ))
-
- (set #startup-prompt
- (cat "Ajout de l'assignation Euterpe: dans le fichier user-startup."
- ))
-
- (set #fix-error-asyncio
- (cat "Correction d'une installation précédente erronée de l'AsyncIO.library."
- ))
-
- (set #docs-msg
- (cat "Voulez-vous installer la documentation ?"
- ))
- (set #docs-help
- (cat "La documentation est une conversion du fichier d'aide au "
- "format texte ANSI.\n"
- "Choisissez \"Oui\" si votre version d'amigaguide est incapable "
- "d'afficher l'aide en ligne ou bien si vous désirez "
- "imprimer la documentation."
- ))
- (set #developer-msg
- (cat "Voulez-vous installer les fichiers développeurs ?"
- ))
- (set #developer-help
- (cat "Les fichiers développeurs sont nécessaire à ceux qui sont intéressés par la conception de XApps."
- ))
-
- (set #camd-default
- (cat "Voulez-vous utiliser la camd.library pour vos accès MIDI ?"
- ))
- (set #camd-help
- (cat "Installer a détecté la présence de la camd.library (routines de support MIDI).\n"
- "Choisissez \"Oui\" pour que les accès Midi par défaut l'utilisent.\n"
- "Choisissez \"Non\" pour que vos accès par défaut utilisent un serial.device.\n"
- "Remarquez que ceci ne concerne que les accès par défaut.\n"
- "Les instruments Midi peuvent être réglés indépendamment de ce choix.\n"
- ))
-
- (set #help-sel
- (cat "Sélectionnez une ou plusieurs langues pour l'aide en ligne."
- ))
-
- (set #doc-sel
- (cat "Sélectionnez une ou plusieurs langues pour la documentation."
- ))
-
- (set #msg-mkdir
- (cat "Création de l'arborescence des répertoires."
- ))
- (set #prg-sel
- (cat "Sélectionnez les fichiers exécutables désirés\n"
- ))
-
- (set #prg-help
- (cat "Si vous n'êtes pas un utilisateur enregistré, seul le programme "
- "Euterpe sera utilisable.\n"
- "Les autres choix correspondent à des versions optimisées du logiciel."
- ))
-
- (set #metro-msg
- (cat "Installation des fichiers du métronome vocal ?"
- ))
-
- (set #metro-help
- (cat "Pour vous montrer comment utiliser les instruments métronome, "
- "un exemple est fourni qui compte les temps avec la voix.\n"
- "Sélectionnez \"Oui\" si vous êtes intéressé."
- ))
-
- (set #rexx-msg
- (cat "Sélectionnez les scripts REXX additionnels à installer."
- ))
-
- (set #rexx-help
- (cat "Les scripts utilisés par Euterpe sont séjà installés. "
- "Vous pouvez choisir ici des scripts additionnels fournis comme exemples."
- ))
-
- (set #cat-sel
- (cat "Sélectionnez une ou plusieurs langues pour les catalogues."
- ))
- (set #cat-msg
- (cat "Voulez-vous installer les fichiers traducteur ?"
- ))
- (set #cat-help
- (cat "Ces fichiers ne sont pas nécessaires pour l'utilisation d'Euterpe mais "
- "sont utiles aux traducteurs."
- ))
- ))
-
- ; -------------------------------------------------------------------------
- ; german msgs setting
- ; -------------------------------------------------------------------------
-
- (if (= @language "deutsch")
- (
- (set #introduction
- (cat "\n\nInstallation von Euterpe.\n"
- ))
-
- (set #quel-disque
- (cat "Wohin möchtest du Euterpe installieren\n(Ein Verzeichnis wird erstellt) ?"
- ))
-
- (set #quel-disque-aide
- (cat "Wähle eine Schublade oder ein Laufwerk für die Installation."
- ))
- (set #oui-prompt
- (cat "Installation der OBJECT USER INTERFACE Kataloge."
- ))
- (set #asyncio-prompt
- (cat "Installation der AsyncIO.library."
- ))
-
- (set #startup-prompt
- (cat "Assign Euterpe: wird in die user-startup aufgenommen."
- ))
-
- (set #fix-error-asyncio
- (cat "Frühere fehlerhafte Installation der AsyncIO.library wird bereinigt."
- ))
-
- (set #docs-msg
- (cat "Möchtest du die Dok-Dateien installieren ?"
- ))
-
- (set #docs-help
- (cat "Die Dok-Dateien sind durch Konvertieren der Guide-Dateien "
- "in ANSI Texte entstanden.\n"
- "Wähle \"Ja\", wenn deine Version von Amigaguide die Online-Hilfe "
- "nicht darstellen kann oder du die Dokumentation ausdrucken möchtest."
- ))
- (set #developer-msg
- (cat "Möchtest du die Entwicklerdateien installieren ?"
- ))
- (set #developer-help
- (cat "Die Entwicklerdateien sind für Leute interessant, welche XApps entwickeln wollen."
- ))
-
- (set #camd-default
- (cat "Möchtest du die camd.library für den MIDI-Zugriff benutzen ?"
- ))
- (set #camd-help
- (cat "Der Installer hat die camd.library (Midi-Unterstützungsroutine) erkannt.\n"
- "Wähle \"Ja\", wenn du diese als Standard nutzen möchtest.\n"
- "Wähle \"Nein\", wenn du stattdessen das serial device nutzen möchtest.\n"
- "Beachte, daß dies nur für die Standardeinstellungen von Interesse ist.\n"
- "Die Einstellungen der Midi-Instrumente sind davon unabhängig.\n"
- ))
-
- (set #help-sel
- (cat "Wähle eine oder mehrere Sprachen für die Online-Hilfe."
- ))
-
- (set #doc-sel
- (cat "Wähle eine oder mehrere Sprachen für die Dok-Dateien."
- ))
-
- (set #msg-mkdir
- (cat "Erstelle die Verzeichnisstruktur..."
- ))
-
- (set #prg-sel
- (cat "Wähle die gewünschten Dateien."
- ))
-
- (set #prg-help
- (cat "Falls du nicht registrierter Nutzer bist, kannst du nur Euterpe benutzen.\n"
- "Die optimierten Versionen bleiben den registrierten Nutzern vorbehalten."
- ))
-
- (set #metro-msg
- (cat "Sollen die Beispieldateien für Voice Metronome installiert werden ?"
- ))
-
- (set #metro-help
- (cat "Zur Demonstration, wie Metronome-Instrumente zu benutzen sind, steht ein Beispiel,"
- "welches die Schläge einer menschlichen Stimme zählt, zur Verfügung.\n"
- "Wähle \"Ja\", falls es dich interessiert."
- ))
-
- (set #rexx-msg
- (cat "Wähle die zusätzlich zu installierenden REXX-Skripte."
- ))
-
- (set #rexx-help
- (cat "Die von Euterpe benötigten Skripte wurden bereits installiert. "
- "Du kannst hier noch weitere auswählen, welche als Beispiele gedacht sind."
- ))
-
- (set #cat-sel
- (cat "Wähle eine oder mehrere Sprachen für die Kataloge."
- ))
- (set #cat-msg
- (cat "Möchtest du die Übersetzerdateien installieren ?"
- ))
- (set #cat-help
- (cat "Diese Dateien sind für die Benutzung von Euterpe nicht notwendig, aber für die Übersetzung der Kataloge."
- ))
- ))
-
- ; -------------------------------------------------------------------------
- ; path settings
- ; -------------------------------------------------------------------------
-
- (set #installLoc (pathonly @icon)
- #installEuterpe (tackon #installLoc "Euterpe")
- #installInstruments (tackon #installEuterpe "Instruments")
- #installRexx (tackon #installEuterpe "Rexx")
- #installDeveloper (tackon #installLoc "Developer")
- #installDocs (tackon #installLoc "Docs")
- #installHelp (tackon #installLoc "Help")
- #installFonts (tackon #installLoc "fonts")
- #installCat (tackon #installLoc "Catalogs")
- #installLibs (tackon #installLoc "Libs/AsyncIO.library")
- #installOuiCat (tackon (tackon (tackon #installLoc "OUI_Catalogs") @language) "oui.catalog")
- #targetOuiCat (tackon "LOCALE:Catalogs" @language)
- #targetLibs "LIBS:"
- )
-
- ; -------------------------------------------------------------------------
- ; intro
- ; -------------------------------------------------------------------------
-
- (message #introduction)
- (welcome)
-
- ; -------------------------------------------------------------------------
- ; destination settings
- ; -------------------------------------------------------------------------
-
- (set #target (tackon (askdir (prompt #quel-disque)
- (help #quel-disque-aide)
- (default @default-dest)
- (disk)
- ) "Euterpe")
- )
- (makedir #target (infos))
-
- ; -------------------------------------------------------------------------
- ; optional path settings
- ; -------------------------------------------------------------------------
-
- (set #targetDeveloper (tackon #target "Developer"))
- (set #targetDocs (tackon #target "Docs"))
- (set #targetHelp (tackon #target "Help"))
- (set #targetInstruments (tackon #target "Instruments"))
- (set #targetRexx (tackon #target "Rexx"))
- (set #targetCat (tackon #target "Catalogs"))
- (set #targetFonts (tackon #target "fonts"))
-
- (set @default-dest #target)
- (complete 10)
-
- ; -------------------------------------------------------------------------
- ; main files copy
- ; -------------------------------------------------------------------------
-
- (working #msg-mkdir)
- (makedir (tackon #target "Sequences") (infos))
- (makedir (tackon #target "Tracks") (infos))
- (makedir (tackon #target "Patterns") (infos))
- (makedir (tackon #target "Samples") (infos))
- (makedir (tackon #target "SoundBanks") (infos))
- (makedir (tackon #target "XApps") (infos))
- (makedir (tackon #target "Rexx") (infos))
- (makedir (tackon #target "Pictures") (infos))
- (makedir #targetFonts)
- (makedir #targetInstruments (infos))
- (makedir (tackon #targetInstruments "Midi") (infos))
- (makedir (tackon #targetInstruments "DrumKits") (infos))
- (makedir (tackon #targetInstruments "Audio") (infos))
- (makedir (tackon #targetInstruments "DrumAudio") (infos))
- (makedir (tackon #targetInstruments "Pictures") (infos))
- (makedir (tackon #targetInstruments "Texts") (infos))
- (makedir (tackon #targetInstruments "ARexx") (infos))
- (makedir #targetRexx (infos))
- (complete 20)
-
- (copyfiles (source #installEuterpe)
- (dest #target)
- (pattern "Euterpe#?")
- (infos)
- (files)
- (confirm)
- (prompt #prg-sel)
- (help #prg-help)
- )
- (complete 25)
- (copyfiles (source #installEuterpe)
- (dest #target)
- (pattern "Registration")
- (infos)
- (files)
- )
- (complete 30)
-
- (if (askbool (prompt #metro-msg)
- (help #metro-help)
- (default 1)
- )
- (
- (copyfiles (source (tackon #installEuterpe "SoundBanks"))
- (dest (tackon #target "SoundBanks"))
- (pattern "#?")
- (infos)
- (files)
- )
- (copyfiles (source (tackon #installInstruments "DrumAudio"))
- (dest (tackon #targetInstruments "DrumAudio"))
- (pattern "Metronome")
- (infos)
- (files)
- )
- ))
- (complete 35)
- (copyfiles (source #installRexx)
- (dest #targetRexx)
- (choices "default.muse" "shell.muse")
- (infos)
- (files)
- )
-
- (complete 40)
- (copyfiles (source #installRexx)
- (dest #targetRexx)
- (pattern "~(default|shell).muse")
- (confirm)
- (prompt #rexx-msg)
- (help #rexx-help)
- (infos)
- (files)
- )
-
- (copyfiles (source #installFonts)
- (dest #targetFonts)
- (all)
- )
-
- (copyfiles (source (tackon #installInstruments "Midi"))
- (dest (tackon #targetInstruments "Midi"))
- (pattern "#?")
- (infos)
- (files)
- )
- (copyfiles (source (tackon #installEuterpe "XApps"))
- (dest (tackon #target "XApps"))
- (pattern "#?")
- (infos)
- (files)
- )
- (complete 45)
-
- ; -------------------------------------------------------------------------
- ; previous installation bug correction
- ; -------------------------------------------------------------------------
-
- (if (exists "libs:asyncio.library/asyncio.library")
- (
- (message #fix-error-asyncio)
- (rename "libs:asyncio.library" "libs:asynciodir" (safe))
- (rename "libs:asynciodir/AsyncIO.library" "libs:AsyncIO.library" (safe))
- (delete "libs:asynciodir" (optional (safe)))
- )
- )
- (complete 50)
-
- ; -------------------------------------------------------------------------
- ; asyncio installation
- ; -------------------------------------------------------------------------
-
- (copylib (prompt #asyncio-prompt)
- (source #installLibs)
- (dest #targetLibs)
- (confirm)
- (help @copylib-help)
- )
- (complete 55)
-
- ; -------------------------------------------------------------------------
- ; OUI catalogs installation
- ; -------------------------------------------------------------------------
-
- (copylib (prompt #oui-prompt)
- (source #installOuiCat)
- (dest #targetOuiCat)
- (confirm)
- (optional nofail askuser)
- (help @copylib-help)
- )
- (complete 60)
-
-
- ; -------------------------------------------------------------------------
- ; catalogs installation
- ; -------------------------------------------------------------------------
-
- (set #cat-lang (askoptions (prompt #cat-sel)
- (help @askoptions-help)
- (choices "français" "deutsch")
- ))
-
- (if (> #cat-lang 0)
- (makedir #targetCat (infos))
- )
- (if (IN #cat-lang 0)
- (
- (set #lang-src (tackon #installCat "français"))
- (set #lang-dst (tackon #targetCat "français"))
- (makedir #lang-dst)
- (copyfiles (source #lang-src)
- (dest #lang-dst)
- (all)
- )
- )
- )
-
- (if (IN #cat-lang 1)
- (
- (set #lang-src (tackon #installCat "deutsch"))
- (set #lang-dst (tackon #targetCat "deutsch"))
- (makedir #lang-dst)
- (copyfiles (source #lang-src)
- (dest #lang-dst)
- (all)
- )
- )
- )
-
- (if (askbool (prompt #cat-msg)
- (help #cat-help)
- (default 0)
- )
- (copyfiles (source #installCat)
- (dest #targetCat)
- (pattern "#?")
- (infos)
- (files)
- )
- )
-
- (complete 65)
-
- ; -------------------------------------------------------------------------
- ; help installation
- ; -------------------------------------------------------------------------
-
- (set #help-lang (askoptions (prompt #help-sel)
- (help @askoptions-help)
- (choices "english" "français" "deutsch")
- ))
-
- (if (> #help-lang 0)
- (makedir #targetHelp (infos))
- )
- (if (IN #help-lang 0)
- (
- (set #lang-src (tackon #installHelp "english"))
- (set #lang-dst (tackon #targetHelp "english"))
- (makedir #lang-dst (infos))
- (copyfiles (source #lang-src)
- (dest #lang-dst)
- (all)
- )
- )
- )
- (if (IN #help-lang 1)
- (
- (set #lang-src (tackon #installHelp "français"))
- (set #lang-dst (tackon #targetHelp "français"))
- (makedir #lang-dst (infos))
- (copyfiles (source #lang-src)
- (dest #lang-dst)
- (all)
- )
- )
- )
- (if (IN #help-lang 2)
- (
- (set #lang-src (tackon #installHelp "deutsch"))
- (set #lang-dst (tackon #targetHelp "deutsch"))
- (makedir #lang-dst (infos))
- (copyfiles (source #lang-src)
- (dest #lang-dst)
- (all)
- )
- )
- )
- (complete 70)
-
- ; -------------------------------------------------------------------------
- ; docs installation
- ; -------------------------------------------------------------------------
-
- (if (askbool (prompt #docs-msg)
- (help #docs-help)
- (default 1)
- )
- (
- (set #docs-lang (askoptions (prompt #doc-sel)
- (help @askoptions-help)
- (choices "english" "français" "deutsch")
- ))
-
- (if (> #docs-lang 0)
- (makedir #targetDocs (infos))
- )
- (if (IN #docs-lang 0)
- (
- (set #lang-src (tackon #installDocs "english"))
- (set #lang-dst (tackon #targetDocs "english"))
- (makedir #lang-dst (infos))
- (copyfiles (source #lang-src)
- (dest #lang-dst)
- (all)
- )
- )
- )
- (if (IN #docs-lang 1)
- (
- (set #lang-src (tackon #installDocs "français"))
- (set #lang-dst (tackon #targetDocs "français"))
- (makedir #lang-dst (infos))
- (copyfiles (source #lang-src)
- (dest #lang-dst)
- (all)
- )
- )
- )
- (if (IN #docs-lang 2)
- (
- (set #lang-src (tackon #installDocs "deutsch"))
- (set #lang-dst (tackon #targetDocs "deutsch"))
- (makedir #lang-dst (infos))
- (copyfiles (source #lang-src)
- (dest #lang-dst)
- (all)
- )
- )
- )
- )
- )
- (complete 80)
-
-
- ; -------------------------------------------------------------------------
- ; developer files installation
- ; -------------------------------------------------------------------------
-
- (if (askbool (prompt #developer-msg)
- (help #developer-help)
- (default 0)
- )
- (
- (makedir #targetDeveloper (infos))
- (copyfiles (source #installDeveloper)
- (dest #targetDeveloper)
- (all)
- )
- )
- )
- (complete 90)
-
- ; -------------------------------------------------------------------------
- ; assign Euterpe: now
- ; -------------------------------------------------------------------------
-
- (makeassign "Euterpe" #target)
- (run "Assign FONTS: Euterpe:fonts ADD")
-
- ; -------------------------------------------------------------------------
- ; camd tooltype setting
- ; -------------------------------------------------------------------------
-
- (if (exists "LIBS:camd.library")
- (if (askbool (prompt #camd-default)
- (help #camd-help)
- (default 1)
- )
- (set #camd-flag "TRUE")
- (set #camd-flag "FALSE")
- )
- (set #camd-flag "FALSE")
- )
-
-
- (tooltype (dest "Euterpe:Euterpe")
- (settooltype "USECAMD" #camd-flag)
- )
- (complete 95)
-
- ; -------------------------------------------------------------------------
- ; startup modifications
- ; -------------------------------------------------------------------------
-
- (startup "Euterpe" (prompt #startup-prompt)
- (help @startup-help)
- (command (cat "Assign Euterpe: " #target "\n"
- "Assign FONTS: Euterpe:fonts ADD"))
- )
- (complete 100)
-