5
man -u "please let there never be a man page with this name" > /dev/null 2>&1 \
9
<!-- File automatically generated by $0
11
Debian Manual Page DocBook Reference Entities
13
Use &man.<name>.<section>; to refer to these. Should be valid in
16
This file is normally generated by the sgml-data postinst but you can
17
re-run it at any time.
21
# take all man pages, the part before the dash, ignore any lines not
22
# starting with a letter and constituted of a word, space(s), and a
25
# FIXME: use the actual SGML/XML character limits
26
# FIXME: do it all in sed
29
sed -e 's/-.*$//; s/\[.*//;' | \
30
grep '^[a-zA-Z0-9:]* ([a-zA-Z0-9:]\+)' | \
31
sed -e 's/^\([^( ]*\) (\(.*\)).*$/<!ENTITY man.\1.\2 "<citerefentry><refentrytitle>\1<\/refentrytitle><manvolnum>\2<\/manvolnum><\/citerefentry>">/;'