mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 08:45:04 -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)
|
||||
texml -e utf8 $< $<.tex
|
||||
sed -i 's|\([\s"]\)\([^"]http://[^ "]*\)|\1\\path{\2}|g' $<.tex
|
||||
sed -i 's|\\hyperref\[#\([^}]*\)\]|\\hyperref\[\1\]|g' $<.tex
|
||||
sed -i 's|\\pageref{#\([^}]*\)}|\\pageref{\1}|g' $<.tex
|
||||
sed -i -e 's|\([\s"]\)\([^"]http\://[^ "]*\)|\1\\path{\2}|g' \
|
||||
-e 's|\\hyperref\[#\([^}]*\)\]|\\hyperref\[\1\]|g' \
|
||||
-e 's|\\pageref{#\([^}]*\)}|\\pageref{\1}|g' $<.tex
|
||||
|
||||
$(TEMPDIR)/xmpp-text.pdf: $(TEMPDIR)
|
||||
-[ -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