summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-07 12:27:18 +0000
committerMartin Mares <mj@ucw.cz>2000-06-07 12:27:18 +0000
commitcf0fca30353a9966c793647f7c9d10b0b56678a9 (patch)
treee0d627675a1c5e629f68c92bd0185a2b8a5dadeb /doc
parent1ae494a7e1fb7dde3ffc4e5dd7df31a1bf8dd6bf (diff)
Added `progspell' target which runs ispell on the progdoc SGML file with
all function, variable and structure names removed.
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile6
-rw-r--r--doc/prog-spell.sed13
2 files changed, 18 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 0a72feed..5737afeb 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -33,8 +33,12 @@ prog.sgml:
%.txt: %.sgml
./sgml2txt $<
+progspell: prog.sgml
+ sed -f prog-spell.sed <prog.sgml >prog.spell
+ ispell prog.spell
+
userdocs: bird.html bird.dvi bird.txt
clean:
- rm -f *.html *.tex *.dvi *.log *.ps *.txt *.aux *.toc
+ rm -f *.html *.tex *.dvi *.log *.ps *.txt *.aux *.toc *.spell
rm -f prog.sgml
diff --git a/doc/prog-spell.sed b/doc/prog-spell.sed
new file mode 100644
index 00000000..426a0332
--- /dev/null
+++ b/doc/prog-spell.sed
@@ -0,0 +1,13 @@
+s%<type>[^<]*</type>%%g
+s%<param>[^<]*</param>%%g
+s%<func>[^<]*</func>%%g
+s%<funcdef>[^<]*</funcdef>%%g
+s%<type/[^</]*/%%g
+s%<param/[^</]*/%%g
+s%<func/[^</]*/%%g
+s%<funcdef/[^</]*/%%g
+s%<struct/[^</]*/%%g
+s%<const/[^</]*/%%g
+s%<[^<>/ ]\+/%%g
+s%</\?[^<>/ ]*>%%g
+s%&[^;]*;%%g