]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Added `progspell' target which runs ispell on the progdoc SGML file with
authorMartin Mares <mj@ucw.cz>
Wed, 7 Jun 2000 12:27:18 +0000 (12:27 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 7 Jun 2000 12:27:18 +0000 (12:27 +0000)
all function, variable and structure names removed.

doc/Makefile
doc/prog-spell.sed [new file with mode: 0644]

index 0a72feed5f840256a3866ad21e911649d9e65f65..5737afebfb2d83238a7bf444a88ab978226a87f0 100644 (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
diff --git a/doc/prog-spell.sed b/doc/prog-spell.sed
new file mode 100644 (file)
index 0000000..426a033
--- /dev/null
@@ -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