From cf0fca30353a9966c793647f7c9d10b0b56678a9 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 7 Jun 2000 12:27:18 +0000 Subject: [PATCH] Added `progspell' target which runs ispell on the progdoc SGML file with all function, variable and structure names removed. --- doc/Makefile | 6 +++++- doc/prog-spell.sed | 13 +++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 doc/prog-spell.sed diff --git a/doc/Makefile b/doc/Makefile index 0a72feed..5737afeb 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.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 00000000..426a0332 --- /dev/null +++ b/doc/prog-spell.sed @@ -0,0 +1,13 @@ +s%[^<]*%%g +s%[^<]*%%g +s%[^<]*%%g +s%[^<]*%%g +s%/ ]\+/%%g +s%/ ]*>%%g +s%&[^;]*;%%g