Index: build-wordlists/build.mk
===================================================================
--- build-wordlists/build.mk (nonexistent)
+++ build-wordlists/build.mk (revision 5)
@@ -0,0 +1,125 @@
+#!/usr/bin/make -f
+
+#
+# NOTES:
+# Unpack scowl-$VERSION.tar.gz, create 'scowl-$VERSION/build'
+# directory and copy this file and man pages template
+# 'wordlist.5.in' into 'scowl-$VERSION/build'.
+# Then change dir to 'scowl-$VERSION' and run make command:
+#
+# $ make -f build/build.mk build
+#
+# Use
+#
+# $ make -f build/build.mk clean
+#
+# command for cleanig results.
+#
+# For partial building chortify the $(sizes) and
+# $(spellings) lists in this file below.
+#
+
+
+man_page_template = $(CURDIR)/build/wordlist.5.in
+
+#
+# available package sizes: small "" large huge insane
+#
+sizes = small "" large huge insane
+
+# scowl file extensions:
+size_exts_small := 10 20 35
+size_exts := $(size_exts_small) 40 50
+size_exts_large := $(size_exts) 55 60 70
+size_exts_huge := $(size_exts_large) 80
+size_exts_insane := $(size_exts_huge) 95
+
+export size_exts_small
+export size_exts
+export size_exts_large
+export size_exts_huge
+export size_exts_insane
+
+#
+# available scowl languages: american british canadian
+#
+spellings := american british canadian
+
+# scowl word list classes:
+classes := words proper-names upper contractions
+variants := 0 1
+
+build-stamp = .built
+
+build: $(build-stamp)
+
+$(build-stamp):
+ @set -e ; \
+ for spelling in $(spellings) ; do \
+ suffix= ; \
+ if [ "$$spelling" == "american" ] ; then suffix="en_US" ; \
+ elif [ "$$spelling" == "british" ] ; then suffix="en_GB" ; \
+ elif [ "$$spelling" == "canadian" ] ; then suffix="en_CA" ; \
+ else suffix= ; \
+ fi ; \
+ for size in $(sizes) ; do \
+ if [ -n "$$size" ] ; then sizename="_$$size" ; size="-$$size" ; else sizename="" ; size="" ; fi ; \
+ echo "" > words-$$suffix$$size.scowl-wordlists ; \
+ echo "The following SCOWL word lists were concatenated and" >> words-$$suffix$$size.scowl-wordlists ; \
+ echo "sorted (with duplicates removed) to create this word" >> words-$$suffix$$size.scowl-wordlists ; \
+ echo "list:" >> words-$$suffix$$size.scowl-wordlists ; \
+ echo "" >> words-$$suffix$$size.scowl-wordlists ; \
+ for class in $(classes) ; do \
+ for ext in $$(eval echo "\$$""size_exts$$sizename") ; do \
+ if [ "$$sizename" != "" ] ; then \
+ shtool echo -e "%B####### collecting%b: %Bclass%b=$$class %Bext%b=$$ext %Bsize%b=`echo $$sizename | sed -e 's/^_//'` ..." ; \
+ else \
+ shtool echo -e "%B####### collecting%b: %Bclass%b=$$class %Bext%b=$$ext ..." ; \
+ fi ; \
+ if [ -f final/english-$$class.$$ext ] ; then \
+ cat final/english-$$class.$$ext >> $$spelling-english$$size.unsorted ; \
+ echo " english-$$class.$$ext" >> words-$$suffix$$size.scowl-wordlists ; \
+ fi ; \
+ for variant in $(variants) ; do \
+ if [ -f final/variant_$$variant-$$class.$$ext ] ; then \
+ cat final/variant_$$variant-$$class.$$ext >> $$spelling-english$$size.unsorted ; \
+ echo " variant_$$variant-$$class.$$ext" >> words-$$suffix$$size.scowl-wordlists ; \
+ fi ; \
+ done ; \
+ if [ "$$size" = "insane" ] ; then \
+ for special in special_hacker.50 ; do \
+ cat final/final/$$special >> $$spelling-english$$size.unsorted ; \
+ echo " final/$$special" >> words-$$suffix$$size.scowl-wordlists ; \
+ done ; \
+ fi ; \
+ if [ -f final/$$spelling-$$class.$$ext ] ; then \
+ cat final/$$spelling-$$class.$$ext >> $$spelling-english$$size.unsorted ; \
+ echo " $$spelling-$$class.$$ext" >> words-$$suffix$$size.scowl-wordlists ; \
+ fi ; \
+ done ; \
+ done ; \
+ shtool echo -e "%B####### dictionary%b: $$spelling-english$$size - %Bdone%b" ; \
+ cat $$spelling-english$$size.unsorted | sort -u | iconv -f 'iso8859-1' -t 'utf-8' > $$spelling-english$$size ; rm $$spelling-english$$size.unsorted ; \
+ cat $(man_page_template) | sed -e "s/@WORDLIST@/$$spelling-english$$size/g" > $$spelling-english$$size.5 ; \
+ done ; \
+ done
+ @touch $@
+
+clean:
+ @set -e ; \
+ for size in $(sizes) ; do \
+ if [ -n "$$size" ]; then size="-$$size" ; fi ; \
+ for spelling in $(spellings) ; do \
+ suffix= ; \
+ if [ "$$spelling" == "american" ] ; then suffix="en_US" ; \
+ elif [ "$$spelling" == "british" ] ; then suffix="en_GB" ; \
+ elif [ "$$spelling" == "canadian" ] ; then suffix="en_CA" ; \
+ else suffix= ; \
+ fi ; \
+ rm -f $$spelling-english$$size.unsorted \
+ $$spelling-english$$size \
+ $$spelling-english$$size.5 \
+ words-$$suffix$$size.scowl-wordlists ; \
+ done;\
+ done
+ @rm -f $(build-stamp)
Index: build-wordlists/wordlist.5.in
===================================================================
--- build-wordlists/wordlist.5.in (nonexistent)
+++ build-wordlists/wordlist.5.in (revision 5)
@@ -0,0 +1,46 @@
+.TH @WORDLIST@ 5 "10 July 2014" "Andrey V.Kosteltsev" "Users' Manual"
+.SH NAME
+.B @WORDLIST@
+\- a list of English words
+.SH DESCRIPTION
+.B /usr/share/dict/@WORDLIST@
+is an ASCII file which contains an alphabetic list of words, one per
+line.
+.SH FILES
+The directory
+.I /usr/share/dict
+can contain word lists for many languages.
+.I /usr/share/dict/words
+is a symbolic link to the currently-chosen
+.I /usr/share/dict/<language>
+file.
+.PP
+Word lists for other languages may be added using the English name for
+that language, e.g.,
+.IR /usr/share/dict/french ,
+.IR /usr/share/dict/danish ,
+etc.
+These should, if possible, use an ISO 8859 character set which is appropriate
+for the language in question; if possible the Latin1 (ISO 8859-1) character set
+should be used (this is often not possible).
+.SH "SEE ALSO"
+.BR ispell (1),
+.BR look (1),
+and the
+.I Filesystem Hierarchy
+.IB Standard .
+.SH HISTORY
+The words lists are not specific, and may be generated from any number
+of sources.
+.PP
+The system word list used to be
+.IR /usr/dict/words .
+For compatibility, software should check that location if
+.I /usr/share/dict/words
+does not exist.
+.SH AUTHOR
+Word lists are collected and maintained by various authors.
+.PP
+This English word lists are built from the SCOWL (Spell\-Checker
+Oriented Word Lists) package, whose upstream editor is
+Kevin Atkinson <kevina@users.sourceforge.net>.
Index: build-wordlists
===================================================================
--- build-wordlists (nonexistent)
+++ build-wordlists (revision 5)
Property changes on: build-wordlists
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: .
===================================================================
--- . (nonexistent)
+++ . (revision 5)
Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~