home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
disks
/
misc
/
ziptools
/
install
< prev
next >
Wrap
Text File
|
1996-09-17
|
15KB
|
425 lines
; ZipTools 1.0 install script...
; here it goes...
( if (= @language "english")
(
(set lng ("english"))
(set #run-error "Couldn't run program")
(set #font-prompt "Font for manual must be in fonts:")
(set #newdest-prompt "Select destination for ZipTools 2.0")
(set #newdest-help "Drawer will be created there")
(set #deleteold-prompt "Delete old installation?")
(set #startagain "Start installation again and select another destination")
(set #enterdevmanual "Enter device manually")
(set #choosedev1-prompt "Choose your SCSI device:")
(set #choosedev2-prompt "\nChoose your SCSI device:\n")
(set #choosedev-help (cat "\n"
"Please choose your SCSI device driver from the available options; "
"if it is not shown, choose \"Enter device manually\", to allow "
"you to type it in."
)
)
(set #enterdevname-prompt "\nEnter the name of your SCSI device:\n")
(set #enterdevname-help (cat "\n"
"You should type in the name of your SCSI device driver, if you are "
"unsure of this refer to your SCSI controller manual. Some common device "
"names are squirrelscsi.device (Squirrel SCSI Interfaces), scsi.device "
"(Commodore supplied SCSI), 1230scsi.device, gvpscsi.device (GVP SCSI Interfaces) etc."
)
)
(set #nothingentered "\nYou MUST enter your SCSI device driver name!")
(set #getunit-prompt "\nWhich SCSI ID is your Zip drive on?")
(set #getunit-help (cat "\n"
"Select the SCSI ID your Zip drive is connected to, by default this is 5"
)
)
)
)
( if (= @language "german")
(
(set lng ("german"))
(set #run-error "Konnte nicht Programm starten")
(set #font-prompt "Zeichensatz für die Dokumentation muß in fonts: kopiert werden")
(set #newdest-prompt "Schublade für ZipTools 2.0 eingeben")
(set #newdest-help "Schublade ZipTools wird hier erzeugt")
(set #deleteold-prompt "Löschen alte Installation?")
(set #startagain "Starten Sie die Installation nochmal")
(set #enterdevmanual "Device eingeben")
(set #choosedev1-prompt "Ihr SCSI device:")
(set #choosedev2-prompt "\nIhr SCSI device:\n")
(set #choosedev-help (cat "\n"
"Bitte selektieren Sie SCSI device driver wen er hier ernnent wird; "
"sonst selektieren Sie \"Device eingeben\". Sie müßen ihn dann richtig "
"schreiben."
)
)
(set #enterdevname-prompt "\nDevice eingeben:\n")
(set #enterdevname-help (cat "\n"
"Sie sollten hier den richtigen Namen von SCSI device eingeben. "
"Der Name steht im Manual für Ihr SCSI controller. Bekannte Namen sind "
"squirrelscsi.device (Squirrel SCSI Interfaces), scsi.device "
"(von Commodore), 1230scsi.device (Blizzard), gvpscsi.device (GVP SCSI Interfaces) etc."
)
)
(set #nothingentered "\nSie müßen den Namen unbedingt eingeben!")
(set #getunit-prompt "\nWelche ID nummer hat Ihr Zip Laufwerk?")
(set #getunit-help (cat "\n"
"Selektieren sie ID nummer Ihres Lufwerks. Normalerweise ist es 5"
)
)
)
)
( if (= @language "czech")
(
(set lng ("czech"))
(set #run-error "Nemohu spustit program")
(set #font-prompt "Çeský font pro manuál musí být v adresáêi fonts:")
(set #newdest-prompt "Zvolte místo urçení pro program ZipTools 2.0")
(set #newdest-help "Bude zde vytvoêen adresáê")
(set #deleteold-prompt "Vymazat starou instalaci?")
(set #startagain "Spusïte instalaci znovu a zvolte jiný adresáê")
(set #enterdevmanual "Zadejte device ruçnë")
(set #choosedev1-prompt "Zvolte Váî SCSI device:")
(set #choosedev2-prompt "\nZvolte Váî SCSI device:\n")
(set #choosedev-help (cat "\n"
"Zvolte prosím Váî SCSI device ze zobrazených moùných; "
"pokud není zobrazen, zvolte \"Zadejte device ruçnë\", "
"aby bylo moùné zadat jméno z klávesnice."
)
)
(set #enterdevname-prompt "\nZadejte Váî SCSI device:\n")
(set #enterdevname-help (cat "\n"
"Zde musíte zadat SCSI device driver, pokud si s jeho jménem nejste jisti, "
"podívejte se do manuálu k Vaîemu SCSI kontrolleru. Nëkterá známá jména jsou: "
"names are squirrelscsi.device (Squirrel SCSI Interfaces), scsi.device "
"(od Commodoru), gvpscsi.device (GVP SCSI Interfaces), 1230scsi.device (Blizzard) etc."
)
)
(set #nothingentered "\nMUSÍTE zadat Váî SCSI device driver!")
(set #getunit-prompt "\nJaké SCSI ID má Vaîe Zip jednotka?")
(set #getunit-help (cat "\n"
"Zvolte SCSI ID Vaîí Zip jednotky podle nastavení. Normálnë je to ID 5"
)
)
)
)
(
(set scr (pathonly @icon))
(set newdest (askdir (
(prompt #newdest-prompt)
(help #newdest-help)
(default @default-dest)
)
)
)
(if ( exists (tackon newdest "ZipTools"))
(
(set b ( askbool (prompt #deleteold-prompt)
(help " ")
)
)
(if (= b 1)
(
(set cmd ("c:delete "))
(set cmd (cat cmd newdest))
(set cmd (tackon cmd "ZipTools"))
(set cmd (cat cmd " force all"))
(set Fail (run cmd))
(if Fail
(
(abort #run-error)
)
)
(set cmd ("c:delete "))
(set cmd (cat cmd newdest))
(set cmd (tackon cmd "ZipTools.info"))
(set cmd (cat cmd " force all"))
(set Fail (run cmd))
)
( exit #startagain )
)
)
)
(makedir (tackon newdest "ZipTools")
(prompt "")
(infos)
(help "")
)
(complete 20)
(set s (tackon scr "bin"))
(set s (tackon s lng))
(set s (tackon s "ZipTools"))
(copyfiles (source s)
(dest (tackon newdest "ZipTools"))
)
(complete 30)
(set s (tackon scr "docs"))
(set s (tackon s lng))
(set s (tackon s "Manual"))
(copyfiles (source s)
(dest (tackon newdest "ZipTools"))
)
(set s (tackon scr "docs"))
(set s (tackon s lng))
(set s (tackon s "Control1"))
(copyfiles (source s)
(dest (tackon newdest "ZipTools"))
)
(set cmd "c:copy ")
(set cmd (cat cmd scr))
(set cmd (tackon cmd "icons/#?.info to "))
(set cmd (cat cmd newdest))
(set cmd (tackon cmd "ZipTools all"))
(set Fail (run cmd))
(if Fail
(
(abort #run-error)
)
)
(complete 40)
(set cmd (tackon scr "devs/dosdrivers/IDH0"))
(set cmd2 "sys:devs/dosdrivers")
(copyfiles (source cmd)
(dest cmd2)
(infos)
)
(complete 45)
(set scsidevice "")
(while (= scsidevice "")
(
(set cmd (tackon scr "GSID"))
(set Fail (run cmd))
(if Fail
(
(abort #run-error)
)
)
(set dev0 #enterdevmanual)
(if (exists ("ENV:scsidev1")) (set dev1 (getenv "scsidev1")))
(if (exists ("ENV:scsidev2")) (set dev2 (getenv "scsidev2")))
(if (exists ("ENV:scsidev3")) (set dev3 (getenv "scsidev3")))
(if (exists ("ENV:scsidev4")) (set dev4 (getenv "scsidev4")))
(if (exists ("ENV:scsidev5")) (set dev5 (getenv "scsidev5")))
(if (exists ("ENV:scsidev6")) (set dev6 (getenv "scsidev6")))
(if (exists ("ENV:scsidev7")) (set dev7 (getenv "scsidev7")))
(if (exists ("ENV:scsidev8")) (set dev8 (getenv "scsidev8")))
(if (exists ("ENV:scsidev9")) (set dev9 (getenv "scsidev9")))
(if (exists ("ENV:scsidev10")) (set dev10 (getenv "scsidev10")))
(if (exists ("ENV:scsidev11")) (set dev11 (getenv "scsidev11")))
(if (exists ("ENV:scsidev12")) (set dev12 (getenv "scsidev12")))
(if (exists ("ENV:scsidev13")) (set dev13 (getenv "scsidev13")))
(if (exists ("ENV:scsidev14")) (set dev14 (getenv "scsidev14")))
(if (exists ("ENV:scsidev15")) (set dev15 (getenv "scsidev15")))
(if (exists ("ENV:scsidev16")) (set dev16 (getenv "scsidev16")))
(if (exists ("ENV:scsidev17")) (set dev17 (getenv "scsidev17")))
(if (exists ("ENV:scsidev18")) (set dev18 (getenv "scsidev18")))
(if (exists ("ENV:scsidev19")) (set dev19 (getenv "scsidev19")))
(if (exists ("ENV:scsidev20")) (set dev20 (getenv "scsidev20")))
(if (exists ("ENV:scsidev21")) (set dev21 (getenv "scsidev21")))
(run "Delete \"ENV:scsidev#?\" QUIET FORCE" (safe))
(if dev1
(
(set ask-device
(
(askchoice (if dev18 (prompt #choosedev1-prompt)
(prompt #choosedev2-prompt)
)
(help #choosedev-help)
(if dev1 (choices dev0 dev1))
(if dev2 (choices dev0 dev1 dev2))
(if dev3 (choices dev0 dev1 dev2 dev3))
(if dev4 (choices dev0 dev1 dev2 dev3 dev4))
(if dev5 (choices dev0 dev1 dev2 dev3 dev4 dev5))
(if dev6 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6))
(if dev7 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7))
(if dev8 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8))
(if dev9 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9))
(if dev10 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10))
(if dev11 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10 dev11))
(if dev12 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10 dev11 dev12))
(if dev13 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10 dev11 dev12 dev13))
(if dev14 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10 dev11 dev12 dev13 dev14))
(if dev15 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10 dev11 dev12 dev13 dev14 dev15))
(if dev16 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10 dev11 dev12 dev13 dev14 dev15 dev16))
(if dev17 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10 dev11 dev12 dev13 dev14 dev15 dev16 dev17))
(if dev18 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10 dev11 dev12 dev13 dev14 dev15 dev16 dev17 dev18))
(if dev19 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10 dev11 dev12 dev13 dev14 dev15 dev16 dev17 dev18 dev19))
(if dev20 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10 dev11 dev12 dev13 dev14 dev15 dev16 dev17 dev18 dev19 dev20))
(if dev21 (choices dev0 dev1 dev2 dev3 dev4 dev5 dev6 dev7 dev8 dev9 dev10 dev11 dev12 dev13 dev14 dev15 dev16 dev17 dev18 dev19 dev20 dev21))
(default 0)
)
)
)
(if ask-device
(
(if (= 1 ask-device) (set scsidevice dev1))
(if (= 2 ask-device) (set scsidevice dev2))
(if (= 3 ask-device) (set scsidevice dev3))
(if (= 4 ask-device) (set scsidevice dev4))
(if (= 5 ask-device) (set scsidevice dev5))
(if (= 6 ask-device) (set scsidevice dev6))
(if (= 7 ask-device) (set scsidevice dev7))
(if (= 8 ask-device) (set scsidevice dev8))
(if (= 9 ask-device) (set scsidevice dev9))
(if (= 10 ask-device) (set scsidevice dev10))
(if (= 11 ask-device) (set scsidevice dev11))
(if (= 12 ask-device) (set scsidevice dev12))
(if (= 13 ask-device) (set scsidevice dev13))
(if (= 14 ask-device) (set scsidevice dev14))
(if (= 15 ask-device) (set scsidevice dev15))
(if (= 16 ask-device) (set scsidevice dev16))
(if (= 17 ask-device) (set scsidevice dev17))
(if (= 18 ask-device) (set scsidevice dev18))
(if (= 19 ask-device) (set scsidevice dev19))
(if (= 20 ask-device) (set scsidevice dev20))
(if (= 21 ask-device) (set scsidevice dev21))
)
(
(set scsidevice (askstring (prompt #enterdevname-prompt)
(help #enterdevname-help)
(default "")
)
)
)
)
(if (= scsidevice "")
(message #nothingentered)
)
)
(
(set scsidevice "scsi.device")
)
)
)
)
(complete 50)
(set scsiunit
(+ 5
(askchoice (prompt #getunit-prompt)
(help #getunit-help)
(choices "ID 5"
"ID 6"
)
(default 0)
)
)
)
(complete 60)
(set cmd (tackon newdest "ZipTools/Control1"))
(tooltype (prompt "")
(help "")
(noposition)
(dest cmd)
)
(set cmd (tackon newdest "ZipTools/Manual"))
(tooltype (prompt "")
(help "")
(noposition)
(dest cmd)
)
(if (= scsiunit 5)
(set unit "5")
(set unit "6")
)
(set cmd (tackon newdest "ZipTools/ZipTools"))
(tooltype (prompt "")
(help "")
(noposition)
(dest cmd)
(settooltype ("DEVICE") (scsidevice))
)
(tooltype (prompt "")
(help "")
(dest cmd)
(settooltype ("UNIT") (unit))
)
(set cmd "sys:devs/dosdrivers/IDH0")
(tooltype (prompt "")
(help "")
(noposition)
(dest cmd)
(settooltype ("DEVICE") (scsidevice))
)
(tooltype (prompt "")
(help "")
(dest cmd)
(settooltype ("UNIT") (unit))
)
(complete 90)
(if (= @language "czech")
(
(copyfiles (source (tackon scr "fonts/"))
(dest "fonts:")
(prompt #font-prompt)
(help " ")
(pattern "#?_e#?")
(confirm)
)
)
(
(copyfiles (source (tackon scr "fonts/"))
(dest "fonts:")
(prompt #font-prompt)
(help " ")
(pattern "~(#?_e#?)")
(confirm)
)
)
)
(set cmd ("c:assign libs: "))
(set cmd (cat cmd scr))
(set cmd (tackon cmd "libs add"))
(set Fail (run cmd))
(if Fail
(
(abort #run-error)
)
)
(set cmd (tackon scr "WBStarter "))
(set cmd (cat cmd newdest))
(set cmd (tackon cmd "ZipTools/ZipTools"))
(set Fail (run cmd))
(if Fail
(
(abort #run-error)
)
)
(set cmd ("c:assign libs: "))
(set cmd (cat cmd scr))
(set cmd (tackon cmd "libs remove"))
(set Fail (run cmd))
(if Fail
(
(abort #run-error)
)
)
(complete 100)
( exit )
)