Added `progspell' target which runs ispell on the progdoc SGML file with
all function, variable and structure names removed.
This commit is contained in:
parent
1ae494a7e1
commit
cf0fca3035
2 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
|
13
doc/prog-spell.sed
Normal file
13
doc/prog-spell.sed
Normal file
|
@ -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
|
Loading…
Reference in a new issue