mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-27 11:42:17 -05:00
Don't check for trailing whitespace during build
This should be checked during CI
Revert "Makefile: Check for trailing whitespaces when building a XEP."
This reverts commit 16700d9f30
.
This commit is contained in:
parent
6a995fcc3b
commit
69f3aab459
4
Makefile
4
Makefile
@ -59,8 +59,6 @@ $(REFSDIR)/reference.XSF.XEP-%.xml: xep-%.xml $(XMLDEPS) ref.xsl $(REFSDIR)
|
|||||||
xsltproc --path $(CURDIR) ref.xsl "$<" > "$@" && echo "Finished building $@"
|
xsltproc --path $(CURDIR) ref.xsl "$<" > "$@" && echo "Finished building $@"
|
||||||
|
|
||||||
$(OUTDIR)/%.html: %.xml $(XMLDEPS) $(HTMLDEPS)
|
$(OUTDIR)/%.html: %.xml $(XMLDEPS) $(HTMLDEPS)
|
||||||
! grep -nr \\s$$ $@
|
|
||||||
|
|
||||||
xmllint --nonet --noout --noent --loaddtd --valid "$<"
|
xmllint --nonet --noout --noent --loaddtd --valid "$<"
|
||||||
# Check for non-data URIs
|
# Check for non-data URIs
|
||||||
! xmllint --nonet --noout --noent --loaddtd --xpath "//img/@src[not(starts-with(., 'data:'))]" $< 2>/dev/null && true
|
! xmllint --nonet --noout --noent --loaddtd --xpath "//img/@src[not(starts-with(., 'data:'))]" $< 2>/dev/null && true
|
||||||
@ -72,8 +70,6 @@ $(OUTDIR)/xmpp.pdf $(OUTDIR)/xmpp-text.pdf: $(OUTDIR)
|
|||||||
cp "resources/$(notdir $@)" "$@"
|
cp "resources/$(notdir $@)" "$@"
|
||||||
|
|
||||||
$(OUTDIR)/%.pdf: %.xml $(XMLDEPS) $(TEXMLDEPS)
|
$(OUTDIR)/%.pdf: %.xml $(XMLDEPS) $(TEXMLDEPS)
|
||||||
! grep -nr \\s$$ $@
|
|
||||||
|
|
||||||
xmllint --nonet --noout --noent --loaddtd --valid "$<"
|
xmllint --nonet --noout --noent --loaddtd --valid "$<"
|
||||||
# Check for non-data URIs
|
# Check for non-data URIs
|
||||||
! xmllint --nonet --noout --noent --loaddtd --xpath "//img/@src[not(starts-with(., 'data:'))]" $< 2>/dev/null && true
|
! xmllint --nonet --noout --noent --loaddtd --xpath "//img/@src[not(starts-with(., 'data:'))]" $< 2>/dev/null && true
|
||||||
|
Loading…
Reference in New Issue
Block a user