Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 626032 | Differences between
and this patch

Collapse All | Expand All

(-)a/.tidyrc (+10 lines)
Line 0 Link Here
1
# The order matters here! If you "mute" a warning before making it "quiet,"
2
# tidy will start talking about how it's going to ignore some warnings.
3
4
# Don't complain about dropped empty elements, because our Tyrian
5
# template contains a bunch. Maybe they can be eliminated; but in
6
# the meantime it's not productive to whine about them.
7
drop-empty-elements: no
8
9
# Show only warnings and errors.
10
quiet: yes
(-)a/Makefile (-2 / +12 lines)
Lines 49-55 validate: prereq Link Here
49
	@xmllint --noout --dtdvalid devbook.dtd $(XMLS) \
49
	@xmllint --noout --dtdvalid devbook.dtd $(XMLS) \
50
	  && echo "xmllint validation successful"
50
	  && echo "xmllint validation successful"
51
51
52
# Run app-text/tidy-html5 on the output to detect mistakes.
53
# We have to loop through them because otherwise tidy won't
54
# tell you which file contains a mistake.
55
tidy: $(HTMLS)
56
	@for f in $(HTMLS); do \
57
		output="$$(tidy -errors -config .tidyrc $${f} 2>&1)"; \
58
		test -z "$${output}" || { echo "$${output}"; \
59
					  echo "^ Failed on $${f}"; \
60
					  exit 1; }; \
61
	done;
62
52
clean:
63
clean:
53
	rm -f $(HTMLS) $(IMAGES) _documents.js documents.js
64
	rm -f $(HTMLS) $(IMAGES) _documents.js documents.js
54
65
55
.PHONY: all prereq validate clean
66
.PHONY: all prereq validate tidy clean
56
- 

Return to bug 626032