Documentation Source Text

Check-in [a75f0b1a75]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Pass location of custom word list to spell_chk.sh as an arg.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a75f0b1a750fa97ca097f0f384d74ef88543988a
User & Date: shaneh 2010-08-30 13:32:57
Context
2010-08-30
13:33
Updated custom word list. check-in: 46ad923cc2 user: shaneh tags: trunk
13:32
Pass location of custom word list to spell_chk.sh as an arg. check-in: a75f0b1a75 user: shaneh tags: trunk
00:42
Copy the spell-check exception list into the buid directory. Add "SQLite" to the spell-check exception list. check-in: 99a59a73ff user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to main.mk.

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# and requirements.
#
doc:	always $(DOC)/remove_carets.sh
	sh $(DOC)/remove_carets.sh doc

# Spell check generated docs.
#
spell: $(DOC)/spell_chk.sh
	cp $(DOC)/custom.txt .
	sh $(DOC)/spell_chk.sh doc '*.html'

# Construct the database schema.
#
schema:	tclsh
	./tclsh $(DOC)/schema.tcl

# The following rule scans sqlite3.c source text, the text of the TCL







|
<
|







72
73
74
75
76
77
78
79

80
81
82
83
84
85
86
87
# and requirements.
#
doc:	always $(DOC)/remove_carets.sh
	sh $(DOC)/remove_carets.sh doc

# Spell check generated docs.
#
spell: $(DOC)/spell_chk.sh $(DOC)/custom.txt

	sh $(DOC)/spell_chk.sh doc '*.html' $(DOC)/custom.txt

# Construct the database schema.
#
schema:	tclsh
	./tclsh $(DOC)/schema.tcl

# The following rule scans sqlite3.c source text, the text of the TCL

Changes to spell_chk.sh.

1
2
3
4
5
6
7
8
9
10
11
12


13
14

15
16
17
18
19
20
21
#!/bin/sh
#
# Usage:
#
#      sh spell_chk.sh doc '*.html'
#      sh spell_chk.sh pages '*.in'
#
# This script scans all "*.html" file in subdirectory "doc" and reports
# spelling mistakes.
#
# Custom words (words to ignore) are stored in custom.txt.
#


echo 'Updating custom dictionary '
aspell --lang=en create master ./custom.rws < custom.txt

#
echo "Spell checking $1/$2 "
find $1 -name "$2" -print | grep -v matrix | while read file
do
  echo "Checking $file..."
  # this can probably be simplified
  cp $file x.html




|







>
>
|
|
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# Usage:
#
#      sh spell_chk.sh doc '*.html' ./custom.txt
#      sh spell_chk.sh pages '*.in'
#
# This script scans all "*.html" file in subdirectory "doc" and reports
# spelling mistakes.
#
# Custom words (words to ignore) are stored in custom.txt.
#
if [ $# -ge 3 ] && [ -f $3 ]
then
  echo 'Updating custom dictionary '
  aspell --lang=en create master ./custom.rws < $3
fi
#
echo "Spell checking $1/$2 "
find $1 -name "$2" -print | grep -v matrix | while read file
do
  echo "Checking $file..."
  # this can probably be simplified
  cp $file x.html