mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-23 01:32:22 -05:00
Make sure make preview supports inbox files
This commit is contained in:
parent
f7fc6e0d2d
commit
8c69d78de4
7
Makefile
7
Makefile
@ -6,6 +6,7 @@ TEMPDIR?=$(OUTDIR)/xepbuild
|
||||
XMLDEPS=xep.xsl xep.xsd xep.ent xep.dtd ref.xsl $(OUTDIR)
|
||||
TEXMLDEPS=xep2texml.xsl $(TEMPDIR) $(XMLDEPS) $(RESOURCESDIR)/xmpp.pdf $(RESOURCESDIR)/xmpp-text.pdf
|
||||
XMPPIMAGESURL=https://xmpp.org/images
|
||||
XEPDIRS=. inbox
|
||||
|
||||
|
||||
.PHONY: help
|
||||
@ -74,9 +75,9 @@ clean:
|
||||
|
||||
.PHONY: preview
|
||||
preview:
|
||||
inotifywait -m -e close_write,moved_to --format '%e %f' . | \
|
||||
while read -r event file; do \
|
||||
inotifywait -m -e close_write,moved_to --format '%e %w %f' $(XEPDIRS) | \
|
||||
while read -r event dir file; do \
|
||||
if [ "$${file: -4}" == ".xml" ]; then \
|
||||
xsltproc --path $(CURDIR) xep.xsl "$${file}" > "$(OUTDIR)/$${file: :8}.html" && echo "Built $${file: :8}.html $${event}"; \
|
||||
xsltproc --path $(CURDIR) xep.xsl "$${dir}/$${file}" > "$(OUTDIR)/$${file%.*}.html" && echo "Built $${file%.*}.html $${event}"; \
|
||||
fi \
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user