home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 2
/
goldfish_vol2_cd1.bin
/
files
/
util
/
misc
/
timeguardian
/
tginstall
< prev
Wrap
Text File
|
1994-08-17
|
16KB
|
627 lines
;
; $VER: InstallTimeGuardian V1.6 (04.07.94)
;
;
; global variables....
;
(set Name "TimeGuardian")
(set PName "TGCron")
(set KName "TimeGuardian")
(set Version "v1.1 (17.8.1994)")
(set Muimas "459725")
(set MuimasV "7.973")
(set MuiV "2.0")
(set Progquelle "bin")
(set Dokquelle "doc")
(set Squelle "s")
(set ENVquelle "env")
(set Sprachen "catalogs/deutsch")
(set Ende5 "leer")
(set BootStartdefault 1)
(set Konfigdefault 1)
;English
(set KeineOnlinehilfe
(cat "You have not installed \"amigaguide.library\"!!!\n"
"You will not be able to use the Online-help."
)
)
(set AbbruchKeinMUI
(cat ("You have to install al least Mui V%s before you can install " MuiV)
("%s %s.\n\nI will abort the installation..."Name Version)
)
)
(set AbbruchAltesMui
(cat "You have installed a too old Version of Mui! "
("You need at least \"muimaster.library\" V%s. " MuimasV)
("You have to install at least Mui V%s.\n\nI have to abort..." MuiV)
)
)
(set Willkommen ("Welcome to the installation of \n%s %s\n\n" Name Version))
(set Auswahl "Please select what you want to install:")
(set Auswahl1 ("%s %s"Name Version))
(set Auswahl2 "The documents")
(set Auswahlhilfe
(cat ("\"%s\" means that both programs, the config-program \"%s\" "Auswahl1 KName)
("and the cron-program \"%s\" itself, will be installed.\n" PName)
("\"%s\" means that the help-file will be installed.\n" Auswahl2)
"Later you wil be able to select the drawers, where the files will "
"be copied to.\n\n"
)
)
(set KeineDoks
(cat "\nYou did not install the documentation!!\n"
)
)
(set KeinProgramm
(cat "\nYou did not install the programs!!\n"
)
)
(set NichtsInstalliert
(cat "\n\nYou didn't select something, I haven't installed anything!!!"
)
)
(set NichtWBgeaendert
(cat "\nYou have to add\n"
"\"%s\n\""
"to your \"user-startup\"!!!\n"
)
)
(set KeinBootStart
(cat ("\nThe installation is not completely finished. \"%s\" "PName)
"is not started when booting. You have to start it manual.\n"
)
)
(set WederWBnochCLI
(cat ("I can't start \"%s\" while booting. "PName)
"You neither have a \"user-startup\"-File nor a \"WBStartup\""
"-drawer on your \"Sys:\" partition. "
"I will abort the installation..."
)
)
(set NochKonfigurieren
(cat ("\nYou have to start the configurationprogram \"%s\" " KName)
"in your drawer (or partition) \"%s\" "
"and then save your personal configuration!"
)
)
(set NochKonfigprompt "\n\nPress \"Yes\"to configure program.")
(set SollKonfighilfe
(cat ("When you press \"Yes\" the configurationprogram \"%s\" "KName)
"will be started automatically. You just have to save your "
"selected config to complete the installation.\n\n"
("When you select \"No\" you have to start \"%s\" "KName)
"before you reset your computer the next time and save "
"the configuration, too."
)
)
(set DoksZiel "In which directory shall I install the documents?")
(set DoksIn "The documents can be found in your \"%s\" drawer (or partition).\n")
(set Bootprompt
(cat ("\n\n\nShall %s be started when booting?\n" PName)
"For further information press \"Help...\""
)
)
(set Boothelp
(cat ("\nWhen you select \"Yes\" \"%s\" will be started every time " Name)
"your Computer is booting.\n\n"
("When you select \"No\" you should start \"%s\" " Name)
"manually every time you need a logfile. "
)
)
(set Ziel ("In which directory shall I install %s?" Name))
(set Kopiere "copying Files...")
(set WBStart (cat ("\n\n\nShall %s be started when booting?\n" Name)
"For further information press \"Help...\""
)
)
(set WBoCLIprompt ("Start %s from WB or CLI?"Name))
(set WBoCLIhilfe
(cat ("You have to select here whether you want %s " Name)
"to be started from Workbench (WBStartup-drawer) "
"or CLI (user-startup) while your Computer is booting.\n\n"
)
)
(set WBoCLI1 "From CLI (user-startup)")
(set WBoCLI2 "From WB (WBStartup)")
(set AendereCLIprompt
(cat "I will change your \"user-startup\" when you press \"Continue\".\n\n"
"For further information press \"Help...\"."
)
)
(set AendereCLIhilfe
(cat "\nWhen you press \"Skip this part\" the installation will be "
"incomplete. You have to add\n"
"\"%s\n\""
"to your \"user-startup\"!!!"
)
)
(set MacheVerz "Creeating drawer %s")
;German
(if (= @language "deutsch")
(;begin
(set KeineOnlinehilfe
(cat "Sie haben die \"amigaguide.library\" nicht installiert!!!\n"
"Sie werden die Online-Hilfe nicht benuzten können."
)
)
(set AbbruchKeinMUI
(cat ("Sie müssen mindestens Mui V%s installieren, bevor Sie %s %s " MuiV Name Version)
"installieren können.\n\nIch werde abbrechen..."
)
)
(set AbbruchAltesMui
(cat "Sie haben eine zu alte Version von Mui installiert! "
("Sie müssen mindestens die \"muimaster.library\" V%s " MuimasV)
("installiert haben (Mui V%s).\n\nIch werde abbrechen..." MuiV)
)
)
(set Willkommen ("Willkommen zur Installation von\n%s %s\n\n" Name Version))
(set Auswahl "Wählen Sie bitte aus, was Sie installieren möchten:")
(set Auswahl1 ("%s %s" Name Version))
(set Auswahl2 "Die Dokumentation")
(set Auswahlhilfe
(cat ("\"%s\" bedeutet, daß das Konfigurationsprogramm \"%s\" " Auswahl1 KName)
("und das eigentliche Cron-Programm \"%s\" installiert werden.\n" PName)
("\"%s\" bedeutet, daß die Help-Datei im Amiga-Guide-Format "Auswahl2)
"installiert wird.\n"
"Sie können später jeweils auswählen, wohin die Files kopiert werden sollen.\n\n"
)
)
(set KeineDoks
(cat "\nSie haben die Dokumentation nicht installiert!!\n"
)
)
(set KeinProgramm
(cat "\nSie haben die Programme nicht installiert!!\n"
)
)
(set NichtsInstalliert
(cat "\n\nSie haben nichts ausgewählt, es wurde nichts installiert!!!"
)
)
(set NichtWBgeaendert
(cat "\nSie müssen noch\n"
"\"%s\"\n"
"in Ihrer \"user-startup\" ergänzen!!!\n"
)
)
(set KeinBootStart
(cat ("\nDie Installation ist noch nicht fertig. \"%s\" "PName)
"wird nicht beim booten gestartet. Sie müssen es von Hand starten.\n"
)
)
(set WederWBnochCLI
(cat ("Ich kann \"%s\" nicht beim booten starten "PName)
"da Sie auf Ihrer \"Sys:\" Partition weder ein "
"\"user-startup\"-File noch ein \"WBStartup\"-Verzeichnis "
"installiert haben. Ich werde abbrechen..."
)
)
(set NochKonfigurieren
(cat ("\nSie müssen jetzt noch das Konfigurationsprogramm \"%s\" "KName)
"im Verzeichnis (oder Partition) \"%s\" "
"starten und dann Ihre persönliche Konfiguration speichern!"
)
)
(set NochKonfigprompt "\n\nDrücken Sie \"Ja\" um zum konfigurieren.")
(set SollKonfighilfe
(cat "Wenn Sie \"Ja\" drücken, wird automatisch das Konfigurationsprogramm "
("\"%s\" gestarted. Sie müssen dann nur Ihre eingestellte "KName)
"Konfiguration speichern.\n\n"
"Wenn Sie \"Nein\" wählen, müssen Sie vor dem nächsten booten "
("\"%s\" starten und ebenfalls die Konfiguration speichern."KName)
)
)
(set DoksZiel "In welches Verzeichnis soll ich die Dokumantation installieren?")
(set DoksIn "Sie finden die Dokumentation in der Schublade (oder Partition) \"%s\"\n")
(set Bootprompt
(cat ("\n\n\nSoll %s bei jedem booten gestartet werden?\n" PName)
"Für nähere Informationen drücken Sie \"Hilfe ...\""
)
)
(set Boothelp
(cat ("\nWenn Sie \"Ja\" anwählen, wird \"%s\" " Name)
"jedesmal gestartet wenn Ihr Computer bootet.\n\n"
("Wenn Sie \"Nein\" auswählen sollten sie \"%s\" " Name)
"jedesmal von Hand starten, wenn Sie ein Logfile benötigen!"
)
)
(set Ziel ("In welches Verzeichnis soll ich %s installieren?" Name))
(set Kopiere "Kopiere Files...")
(set WBStart (cat ("\n\n\nSoll %s bei jedem booten gestartet werden?\n" Name)
"Für nähere Informationen drücken Sie \"Hilfe ...\""
)
)
(set WBoCLIprompt ("%s von WB oder CLI starten?"Name))
(set WBoCLIhilfe
(cat ("Sie müssen hier auswählen, ob sie %s "Name)
"beim booten "
"von der Workbench (WBstartup-Verzeichnis) "
"oder vom CLI (user-startup) starten lassen wollen.\n\n"
)
)
(set WBoCLI1 "Vom CLI (user-startup)")
(set WBoCLI2 "Von der WB (WBStartup)")
(set AendereCLIprompt
(cat "Ich werde Ihre \"user-startup\" ändern wenn Sie \"Weiter\"drücken.\n\n"
"Für mehr Information drücken Sie \"Hilfe...\"."
)
)
(set AendereCLIhilfe
(cat "\nWenn Sie \"Diesen Teil Überspringen\" drücken, wird die Installation "
"unvollständig sein. Sie müssen dann\n"
"\"%s\"\n"
"in Ihrer \"user-startup\" ergänzen!!!"
)
)
(set MacheVerz "Erstelle Schublade %s")
));endif
;Beginn Unterprogramme
(procedure InstalliereGuide
(;begproc
(if (=(exists "libs:amigaguide.library")1)
(;beg
( if (= (exists "envarc:AmigaGuide") 0)
( ;beg
(makedir "ENVARC:AmigaGuide"
(prompt MacheVerz "ENVARC:AmigaGuide")
(help @makedir-help)
)
(makedir "ENV:AmigaGuide"
(prompt MacheVerz "ENV:AmigaGuide")
(help @makedir-help)
)
);end
);endif
(run ("echo >> env:AmigaGuide/path %s" Doksdest))
(run ("echo >> envarc:AmigaGuide/path %s" Doksdest))
(copyfiles
(prompt Kopiere)
(source (tackon Dokquelle @language))
(dest Doksdest)
(pattern "#?.guide")
(help @copyfiles-help)
)
);end
(;begelse
(message KeineOnlinehilfe)
);endelse
);endif
);endproc
)
(procedure InstalliereDoks
(;begproc
(set Doksdest
(askdir
(prompt DoksZiel)
(help @askdir-help)
(if (In Wahl 0)
(default (tackon @default-dest "docs"));beg;end
(;begelse
(if (= (exists "Sys:Tools") 2)
(default "Sys:Tools/docs");begin;end
(default (tackon @default-dest docs));begelse;endelse
);endif
);endelse
);endif
(newpath)
;(user 2)
)
)
(if (= (exists Doksdest) 0)
(makedir Doksdest
(prompt (MacheVerz Doksdest))
(help @makedir-help)
(infos)
)
);endif
(copyfiles
(prompt Kopiere)
(source (tackon Dokquelle @language))
(dest Doksdest)
(pattern "#?.asc")
(help @copyfiles-help)
)
(copyfiles
(prompt Kopiere)
(source (tackon Dokquelle @language))
(dest Doksdest)
(pattern "#?.dvi")
(help @copyfiles-help)
)
(set Ende1 ("%s" (DoksIn Doksdest)))
);endproc
)
(procedure FrageWboCLI
(;begproc
(set WBoCLI
(askchoice
(prompt WBoCLIprompt)
(help WBoCLIhilfe)
(choices WBoCLI1 WBoCLI2)
(default $1)
)
)
);endproc
)
(procedure SetzeWBoCLI
(;begproc
(if (= (exists "Sys:WBStartup") 0)
(set WB 0);begin;end
(set WB 1);begelse;endelse
);endif
(if (= (exists "s:user-startup") 0)
(set CLI 0);begin;end
(set CLI 1);begelse;endelse
);endif
(if (= CLI 1)
(;begin
(if (= WB 1)
(FrageWBoCLI);begin;end
(set WBoCLI 0);begelse;endelse
);endif
);end
(;begelse
(if (= WB 1)
(set WBoCLI 1);begin;end
(abort WederWBnochCLI);begelse;endelse
);endif
);endelse
);endif
);endproc
)
(procedure FrageWohin
(;begproc
(set Wosollshin
(askdir
(prompt Ziel)
(help @askdir-help)
(default
(if (= (exists "Sys:Tools") 2)
("Sys:Tools");begin;end
(@default-dest);begelse;endelse
);endif
)
;(user 2)
)
)
(set @default-dest Wosollshin)
);endproc
)
(procedure KopiereProg
(;begproc
(copyfiles
(prompt Kopiere)
(source Progquelle)
(dest @default-dest)
(pattern "#?")
(help @copyfiles-help)
)
(copyfiles
(prompt Kopiere)
(source Squelle)
(dest "S:")
(pattern "#?")
(help @copyfiles-help)
)
(if (= (exists ("ENVARC:%s.config"Name)) 0)
(;beg
(set Ende5 (NochKonfigurieren @default-dest))
(copyfiles
(prompt Kopiere)
(source ENVquelle)
(dest "ENVARC:")
(pattern "#?.config")
(help @copyfiles-help)
)
(copyfiles
(prompt Kopiere)
(source ENVquelle)
(dest "ENV:")
(pattern "#?.config")
(help @copyfiles-help)
)
);end
);endif
(if (In Wahl 1)
(set Doksdest Doksdest)
(;begelse
(set Doksdest @default-dest)
(InstalliereGuide)
);endelse
);endif
(if (= (exists "Sys:Prefs") 2)
(;begin
(copyfiles
(prompt Kopiere)
(source Progquelle)
(dest "Sys:Prefs")
(pattern ("%s.info"KName))
(help @copyfiles-help)
)
(tooltype
(dest ("Sys:Prefs/%s"KName))
(noposition)
(setdefaulttool (tackon @default-dest ("%s"KName)))
)
);end
);endif
);endproc
)
(procedure AendereWB
(;begproc
(if (= WBoCLI 1)
(;begin
(copyfiles
(prompt Kopiere)
(source Progquelle)
(dest "Sys:WBStartup")
(pattern ("%s.info"PName))
(help @copyfiles-help)
)
(tooltype
(dest ("Sys:WBStartup/%s"PName))
(noposition)
(setdefaulttool (tackon @default-dest ("%s"PName)))
)
);end
);endif
);endproc
)
(procedure AendereCLI
(;begproc
(if (= WBoCLI 0)
(;begin
(set Alt (getsize "s:user-startup"))
(set StartPfad (tackon @default-dest PName))
(set UserStart (" run >nil: <nil: %s -i"StartPfad))
(startup
("%s %s" Name Version)
(prompt AendereCLIprompt)
(help @startup-help (AendereCLIhilfe Userstart))
(command Userstart)
)
(set Neu (getsize "s:user-startup"))
(if (= Alt Neu)
(;begin
(if (NOT @pretend)
(set Ende4 (NichtWBgeaendert Userstart));begin;end
);endif
);end
);endif
);end
);endif
);endproc
)
(procedure KopiereKataloge
(;begproc
(copyfiles
(prompt Kopiere)
(source Sprachen)
(dest "Locale:catalogs/deutsch")
(pattern ("%s.catalog"Name))
(help @copyfiles-help)
)
);endproc
)
(procedure KopiereLocale
(;begproc
(if (= @language "deutsch")
(;begin
(if (<> "" (getassign "Locale"))
(;begin
(if (= (exists "Locale:catalogs") 2)
(;begin
(if (= (exists "Locale:catalogs/deutsch") 2)
(KopiereKataloge);begin;end
(;begin
(makedir "Locale:catalogs/deutsch")
(KopiereKataloge)
);end
);endif
);end
(;begelse
(makedir "Locale:catalogs")
(makedir "Locale:catalogs/deutsch")
(KopiereKataloge)
);endelse
);endif
);end
);endif
);end
);endif
);endproc
)
(procedure InstalliereProgramme
(;begproc
(set BootStart (askbool (prompt Bootprompt)
(help Boothelp)
(default BootStartdefault)))
(if (= BootStart 1)
(;begin
(SetzeWBoCLI)
);end
(;begelse
(set WBoCLI 2)
(set Ende3 KeinBootStart)
);endelse
);endif
(FrageWohin)
(KopiereProg)
(complete 40)
(AendereWB)
(AendereCLI)
(complete 60)
(KopiereLocale)
(complete 80)
);endproc
)
(procedure SollKonfigurieren
(;begproc
(set Konfig
(askbool (prompt Ende5 NochKonfigprompt)
(help SollKonfighilfe)
(default Konfigdefault)
)
)
(if (= Konfig 1)
(run ("%s/%s" Progquelle KName));begin;end
(message Ende5);begelse;endelse
);endif
);endproc
)
(procedure Ende
(;begproc
(if (<> Ende5 "leer")
(SollKonfigurieren);begin;end
);endif
(complete 100)
(exit ("%s %s %s %s" Ende1 Ende2 Ende3 Ende4))
);endproc
)
;Ende Unterprogramme
(welcome Willkommen)
(complete 0)
(if(<> (exists "LIBS:muimaster.library") 1)
(abort AbbruchKeinMUI);begin;end
(;begelse
(set MuiVersion (getversion "LIBS:muimaster.library"))
(if(< MuiVersion Muimas)
(abort AbbruchAltesMui);begin;end
);endif
);endelse
);endif
(complete 5)
(set Wahl (askoptions (prompt Auswahl)
(help Auswahlhilfe @askoptions-help)
(choices Auswahl1
Auswahl2
)
(default $3)
;(user 2)
)
)
(complete 10)
(if (IN Wahl 0);Programme
(;begin
(InstalliereProgramme)
);end
(;begelse
(if(IN Wahl 1)
(set Ende2 KeinProgramm);begin;end
(abort NichtsInstalliert);begelse;endelse
);endif
);endelse
);endif
(if (IN Wahl 1);Dokumentation
(;begin
(InstalliereDoks)
(InstalliereGuide)
);end
(;begelse
(set Ende1 KeineDoks)
);endelse
);endif
(Ende)