mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
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
@ -33,8 +33,12 @@ prog.sgml:
|
|||||||
%.txt: %.sgml
|
%.txt: %.sgml
|
||||||
./sgml2txt $<
|
./sgml2txt $<
|
||||||
|
|
||||||
|
progspell: prog.sgml
|
||||||
|
sed -f prog-spell.sed <prog.sgml >prog.spell
|
||||||
|
ispell prog.spell
|
||||||
|
|
||||||
userdocs: bird.html bird.dvi bird.txt
|
userdocs: bird.html bird.dvi bird.txt
|
||||||
|
|
||||||
clean:
|
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
|
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 New Issue
Block a user