diff options
author | Martin Mares <mj@ucw.cz> | 2000-06-07 14:27:18 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-06-07 14:27:18 +0200 |
commit | cf0fca30353a9966c793647f7c9d10b0b56678a9 (patch) | |
tree | e0d627675a1c5e629f68c92bd0185a2b8a5dadeb /doc | |
parent | 1ae494a7e1fb7dde3ffc4e5dd7df31a1bf8dd6bf (diff) | |
download | bird-cf0fca30353a9966c793647f7c9d10b0b56678a9.tar bird-cf0fca30353a9966c793647f7c9d10b0b56678a9.zip |
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/Makefile | 6 | ||||
-rw-r--r-- | doc/prog-spell.sed | 13 |
2 files changed, 18 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile index 0a72fee..5737afe 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 0000000..426a033 --- /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 |