[systemd-devel] [PATCH 1/2] tools: add script to detect repeating words in docs

Karel Zak kzak at redhat.com
Wed Jul 23 07:12:27 PDT 2014


On Wed, Jul 23, 2014 at 02:59:26PM +0200, Zbigniew Jędrzejewski-Szmek wrote:
> On Wed, Jul 23, 2014 at 02:57:10PM +0200, Zbigniew Jędrzejewski-Szmek wrote:
> > On Wed, Jul 23, 2014 at 12:40:06PM +0200, Karel Zak wrote:
> > >  - all <programlisting> sections from input files are ignored
> > >  - it's possible to white-list wanted repeats by KNOWN_REPEATS[] in the script
> > >  - the script is based on checkmans.sh from util-linux project
> > >  - it's integrated to build-sys, just type "make check-repwords", for example:
> > Hi,
> > 
> > I think it would be nicer to simply incorporate the check into
> > tools/make-directive-index.py. It already contains some checks on
> Actually it's check_id() in make-man-index.py.

 ...but then it will be usable only for the xml->man stuff.
 
 Now the script is generic and you can use it for example for gtk-docs 
 too (just add another "tools/check-repwords.sh <something>" into
 Makefile.am) or arbitrary another text.

    Karel

-- 
 Karel Zak  <kzak at redhat.com>
 http://karelzak.blogspot.com


More information about the systemd-devel mailing list