home *** CD-ROM | disk | FTP | other *** search
- ; $VER: Words 2 (15 JUN 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.tng.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 21)
-
- (
- (message "\nSorry, GoldED 2.1.0 or better required")
- (exit (quiet))
- )
- )
-
- (complete 5)
-
- (message (cat "\n"
-
- "Words 2.3 (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"
- "install English 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 25)
-
- (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 30)
-
- ))
-
- ; install German dictionary
-
- (complete 35)
-
- (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 40)
-
- (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 45)
-
- (if (or (<> partsA 0) (<> partsB 0)) (
-
- (working "\nCreating dictionary, sorting entries. May take a couple of minutes.\n")
-
- (delete "words/all.words.cnt")
- (delete "words/all.words.stat")
-
- (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 50)
-
- (working "\nChecking dictionary. May take a couple of minutes.\n")
-
- (run "bin/ifilter >con://///AUTO FILE=words/all.words NOTEX NOFLAGS")
-
- (complete 55)
-
- (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 60)
-
- (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 65)
-
- (delete "words/all.words")
- )
-
- (
- (message "\nFatal error - dictionary creation failed.")
-
- (exit (quiet))
- )
- )
- ))
- ))
-
- ; install English dictionary
-
- (complete 70)
-
- (if (in action 2) (
-
- (set partsA (askoptions
-
- (prompt "Select English dictionaries to install")
-
- (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
-
- "all-purpose dictionary (250 K)"
- )
-
- (default 1)
- ))
-
- (complete 75)
-
- (if (<> partsA 0) (
-
- (working "\nCreating dictionary, sorting entries. May take a couple of minutes.\n")
-
- (delete "words/all.words.cnt")
- (delete "words/all.words.stat")
-
- (set cmd "bin/joinsorted >con://///AUTO DIR=words/data as=words/all.words ")
-
- (if (in partsA 0) (set cmd (cat cmd "english.txt")))
-
- (run cmd)
-
- ; removing stuff not supported by the Amiga version of ISpell
-
- (complete 80)
-
- (working "\nChecking dictionary. May take a couple of minutes.\n")
-
- (run "bin/ifilter >con://///AUTO FILE=words/all.words NOTEX")
-
- (complete 85)
-
- (if (exists "words/all.words" (noreq))
-
- (
- (if (exists "s:english.hash")
-
- (set remove (askbool
-
- (prompt "\nOverwrite old hash file (s:english.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:english.hash")
-
- (complete 90)
-
- (if (exists "s:english.hash")
-
- (message (cat "\nHash file 's:english.hash' has been created successfully. Hash file size (ISpell RAM usage):\n\n" (getsize "s:english.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)
-
- (
- (if (in action 1)
-
- (run (cat "gx FORCE MACRO=\"" (tackon (pathonly @icon) "auto_d.ged\"")))
- (run (cat "gx FORCE MACRO=\"" (tackon (pathonly @icon) "auto_e.ged\"")))
- )
- )
- )
- )
-
- (message (cat "\n"
-
- " Please install GoldED Release 2+ before\n"
- " attempting to install this package. \n"
- ))
- )
-
- (exit (quiet))
-
- (welcome)
-