home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
New Horizons Shareware Collection
/
HORIZONS1.BIN
/
WORDS
/
INSTALL
< prev
Wrap
Text File
|
1995-02-07
|
10KB
|
316 lines
; $VER: Words 2 (7-02-95)
; Installer script ⌐1995 Dietmar Eilert
(delopts "oknodelete" "force" "askuser")
(complete 0)
(onerror (
(if (> @ioerr 0)
" Some error has occurred. Please inform a GoldED \n"
" support site (e.g. dietmar@tomate.mbp.oche.de) \n"
" AFTER having tried a different Installer release\n"
" (1.24 is known to work fine). \n"
)
))
(if (exists "GOLDED:" (NOREQ))
(
(set vernum (getversion "golded:golded"))
(set ver (/ vernum 65536))
(set rev (- vernum (* ver 65536)))
(set version (+ (* 10 ver) rev))
(if (< version 20)
(
(message "\nSorry, GoldED 2 or better required")
(exit (quiet))
)
)
(complete 5)
(message (cat "\n"
"Words 2.1 (Spell Checking Package) \n"
" \n"
"⌐1992-1995 Heinz Knutzen \n"
" Martin Schulz, \n"
" Loren J. Rittle \n"
" Dietmar Eilert \n"
" \n"
"All Rights Reserved. Commercial distribution \n"
"not allowed. All files are the property of \n"
"their authors. Parts of this package are NOT \n"
"freeware. Ask for permission first if you \n"
"intend to distribute this software. Thanks. \n"
))
(complete 10)
(set action (askoptions
(prompt "Select parts to be installed")
(help @askoptions-help)
(default 3)
(choices
"install binaries"
"install German dictionary"
)
))
(complete 15)
(if (exists "GoldED:API/SpellIT")
(delete "GoldED:API/SpellIT/Manuel" (infos))
(makedir "GoldED:API/SpellIT" (infos))
)
; install ISpell & SpellIT
(if (in action 0) (
(set target (askdir
(prompt "Where do you want to have ISpell installed ?")
(help "Please specify a valid command path")
(default "c:")
))
(complete 20)
(copyfiles
(source "ISpell/c/ispell")
(dest target)
)
(complete 30)
(if (not (exists "locale:" (noreq))) (
(if (not (exists "sys:locale")) (makedir "sys:locale"))
(makeassign "locale" "sys:locale")
))
(copyfiles
(source "SpellIT/locale")
(dest "locale:")
(all)
)
(copyfiles
(source "SpellIT")
(dest "GoldED:API/SpellIT")
(pattern "(Anleitung|Manual|Manuel|SpellIT|Licence|presets|#?.info)")
)
(complete 35)
))
; install dictionary
(complete 40)
(if (in action 1) (
(set partsA (askoptions
(prompt "Select German dictionaries to install (1/2)")
(help (cat "\n"
" The more dictionaries you select, the more\n"
" memory ISpell will use. File sized listed \n"
" do NOT equal memory requirements - memory \n"
" requirements are about three times higher.\n"
))
(choices
"Substantive (250 K)"
"Verben (120 K)"
"Adjektive & Co ( 10 K)"
"Zusammensetzungen (550 K)"
"Geographie ( 15 K)"
"Namen ( 5 K)"
"Abkuerzungen ( 1 K)"
"Imperative ( 1 K)"
"Latein ( 1 K)"
)
(default 503)
))
(complete 45)
(set partsB (askoptions
(prompt "Select German dictionaries to install (2/2)")
(help (cat "\n"
" The more dictionaries you select, the more\n"
" memory ISpell will use. File sized listed \n"
" do NOT equal memory requirements - memory \n"
" requirements are about three times higher.\n"
))
(choices
"Informatik, EDV ( 25 K)"
"Elektronik ( 10 K)"
"Organisationen ( 1 K)"
"Marken ( 1 K)"
"Griechisch ( 1 K)"
"Roemische Zahlen ( 1 K)"
"Technik ( 2 K)"
"Seltenes ( 10 K)"
)
(default 12)
))
(complete 50)
(if (or (<> partsA 0) (<> partsB 0)) (
(working "\nCreating dictionary, sorting entries. May take a couple of minutes.\n")
(set cmd "bin/joinsorted >con://///AUTO DIR=words/data as=words/all.words ")
(if (in partsA 0) (set cmd (cat cmd "worte.txt " )))
(if (in partsA 1) (set cmd (cat cmd "verben.txt " )))
(if (in partsA 2) (set cmd (cat cmd "klein.txt " )))
(if (in partsA 2) (set cmd (cat cmd "adjektive.txt " )))
(if (in partsA 3) (set cmd (cat cmd "zusammen.txt " )))
(if (in partsA 4) (set cmd (cat cmd "geographie.txt " )))
(if (in partsA 4) (set cmd (cat cmd "geogra2.txt " )))
(if (in partsA 5) (set cmd (cat cmd "namen.txt " )))
(if (in partsA 5) (set cmd (cat cmd "vornamen.txt " )))
(if (in partsA 5) (set cmd (cat cmd "vornam2.txt " )))
(if (in partsA 6) (set cmd (cat cmd "abkuerz.txt " )))
(if (in partsA 6) (set cmd (cat cmd "abkuerz2.txt " )))
(if (in partsA 7) (set cmd (cat cmd "imperat.txt " )))
(if (in partsA 8) (set cmd (cat cmd "latein.txt " )))
(if (in partsB 0) (set cmd (cat cmd "compeng.txt " )))
(if (in partsB 0) (set cmd (cat cmd "infoabk.txt " )))
(if (in partsB 0) (set cmd (cat cmd "informatik.txt " )))
(if (in partsB 1) (set cmd (cat cmd "elektronik.txt " )))
(if (in partsB 2) (set cmd (cat cmd "orgabk.txt " )))
(if (in partsB 3) (set cmd (cat cmd "marken.txt " )))
(if (in partsB 4) (set cmd (cat cmd "alphabeta.txt " )))
(if (in partsB 5) (set cmd (cat cmd "roemisch.txt " )))
(if (in partsB 6) (set cmd (cat cmd "technik.txt " )))
(if (in partsB 7) (set cmd (cat cmd "seltenes.txt " )))
(run cmd)
; removing stuff not supported by the Amiga version of ISpell
(complete 70)
(working "\nChecking dictionary. May take a couple of minutes.\n")
(run "bin/ifilter >con://///AUTO FILE=words/all.words NOTEX NOFLAGS")
(complete 75)
(if (exists "words/all.words" (noreq))
(
(if (exists "s:deutsch.hash")
(set remove (askbool
(prompt "\nOverwrite old hash file (s:deutsch.hash) ?")
(help "You might want to backup your old file :-)")
(choices
"overwrite"
"exit"
)
))
(set remove 1);
)
(if (= remove 1)
(
(working "\nCreating hash file supporting fast data access. May take a couple of minutes.\n")
(run "ispell/c/buildhash >con:////buildhash/AUTO words/all.words s:deutsch.hash")
(complete 90)
(if (exists "s:deutsch.hash")
(message (cat "\nHash file 's:deutsch.hash' has been created successfully. Hash file size (ISpell RAM usage):\n\n" (getsize "s:deutsch.hash") " Bytes"))
(
(message "\nFatal error: hash file creation failed.\n")
(delete "words/all.words")
(exit (quiet))
)
)
)
)
(complete 95)
(delete "words/all.words")
)
(
(message "\nFatal error - dictionary creation failed.")
(exit (quiet))
)
)
))
))
(complete 100)
(message "\nInstallation done. Have fun :-)")
(if (in action 0)
(run (cat "gx FORCE MACRO=" (tackon (pathonly @icon) "auto.ged")))
)
)
(message (cat "\n"
" Please install GoldED Release 2 before\n"
" attempting to install this package. \n"
))
)
(exit (quiet))
(welcome)