Added `progspell' target which runs ispell on the progdoc SGML file with

all function, variable and structure names removed.
This commit is contained in:
Martin Mares 2000-06-07 12:27:18 +00:00
parent 1ae494a7e1
commit cf0fca3035
2 changed files with 18 additions and 1 deletions

View file

@ -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
View 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