mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-28 04:02:20 -05:00
Only run sed once and escape possible mistaken label marker
This commit is contained in:
parent
b298856940
commit
931daefbda
6
Makefile
6
Makefile
@ -55,9 +55,9 @@ $(TEMPDIR)/%.xml.texml: %.xml $(TEXMLDEPS) $(TEMPDIR)
|
|||||||
|
|
||||||
$(TEMPDIR)/%.xml.texml.tex: $(TEMPDIR)/%.xml.texml $(OUTDIR) $(TEMPDIR)
|
$(TEMPDIR)/%.xml.texml.tex: $(TEMPDIR)/%.xml.texml $(OUTDIR) $(TEMPDIR)
|
||||||
texml -e utf8 $< $<.tex
|
texml -e utf8 $< $<.tex
|
||||||
sed -i 's|\([\s"]\)\([^"]http://[^ "]*\)|\1\\path{\2}|g' $<.tex
|
sed -i -e 's|\([\s"]\)\([^"]http\://[^ "]*\)|\1\\path{\2}|g' \
|
||||||
sed -i 's|\\hyperref\[#\([^}]*\)\]|\\hyperref\[\1\]|g' $<.tex
|
-e 's|\\hyperref\[#\([^}]*\)\]|\\hyperref\[\1\]|g' \
|
||||||
sed -i 's|\\pageref{#\([^}]*\)}|\\pageref{\1}|g' $<.tex
|
-e 's|\\pageref{#\([^}]*\)}|\\pageref{\1}|g' $<.tex
|
||||||
|
|
||||||
$(TEMPDIR)/xmpp-text.pdf: $(TEMPDIR)
|
$(TEMPDIR)/xmpp-text.pdf: $(TEMPDIR)
|
||||||
-[ -e $(TEMPDIR)/xmpp-text.pdf ] || curl -o "$(TEMPDIR)/xmpp-text.pdf" https://xmpp.org/images/xmpp-text.pdf
|
-[ -e $(TEMPDIR)/xmpp-text.pdf ] || curl -o "$(TEMPDIR)/xmpp-text.pdf" https://xmpp.org/images/xmpp-text.pdf
|
||||||
|
Loading…
Reference in New Issue
Block a user