DocBook: Fix duplicate man pages (v2)
svn path=/dists/trunk/linux/; revision=22813
This commit is contained in:
parent
eb4b510b6d
commit
fe2e97b36c
|
@ -34,8 +34,8 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|||
|
||||
MAN := $(patsubst %.xml, %.9, $(BOOKS))
|
||||
mandocs: $(MAN)
|
||||
+ @dups=$(sed -n 's/.*<refname>\([^<]*\)<\/refname>.*/\1/p' \
|
||||
+ $(patsubst %, %.noextra, $(BOOKS)))| sort | uniq -d); \
|
||||
+ @dups=$$(sed -n 's/.*<refname>\([^<]*\)<\/refname>.*/\1/p' \
|
||||
+ $(obj)/*.xml.noextra | sort | uniq -d); \
|
||||
+ if [ -n "$$dups" ]; then \
|
||||
+ echo >&2 "The following manual pages are generated more than once:"; \
|
||||
+ printf >&2 '%s\n' "$$dups"; \
|
||||
|
|
Loading…
Reference in New Issue