From: Andrey Borzenkov <arvidjaar@gmail.com>
To: zsh-workers@zsh.org
Subject: [PATCH 2/2] zshguide: Makefile fixes
Date: Mon, 8 Nov 2010 22:28:37 +0300 [thread overview]
Message-ID: <1289244517-14442-2-git-send-email-arvidjaar@gmail.com> (raw)
In-Reply-To: <1289244517-14442-1-git-send-email-arvidjaar@gmail.com>
- there was very interesting effect of line continuation
on perl - as "\<new line>" was passed verbatim to perl, it was
apparently interpreted as reference to variable with name
<new line> resulting in
\documentclass[a4paper]{book}
SCALAR(0xd1b100)\usepackage[T1]{fontenc}
This is with perl 5.12.2. Patch makes sure continuation is
interpreted and stripped off by shell.
- "make web" was missing zshguide_us.pdf target
- add some more temp files to "clean" target
---
Makefile | 28 +++++++++++++++-------------
1 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/Makefile b/Makefile
index 83dd8a4..2fa0ec2 100755
--- a/Makefile
+++ b/Makefile
@@ -8,9 +8,9 @@ SRC_DIST = Makefile zshguide.yo $(CHAPTERS)
DTD = <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
.latex.pdf:
- while pdflatex $< | perl -pe '/should run.*again/ && $$run++; \
- /^LaTeX Warning:.*Rerun/ && $$run++; \
- eof && exit(!$$run);'; do true; done
+ while pdflatex $< | perl -pe '/should run.*again/ && $$run++; '\
+ '/^LaTeX Warning:.*Rerun/ && $$run++; '\
+ 'eof && exit(!$$run);'; do true; done
.yo.txt:
yodl2txt $<
@@ -48,19 +48,19 @@ PERLCOMMON = "\\usepackage[T1]{fontenc}\n", \
yodl2latex $<
cp $@ tmp.latex
perl -ne 'if (/^\\usepackage/) { \
- print "\\documentclass[a4paper]{book}\n", \
- "\\usepackage{a4wide}\n", $(PERLCOMMON)' \
+ print "\\documentclass[a4paper]{book}\n", '\
+ ' "\\usepackage{a4wide}\n", $(PERLCOMMON)' \
$@ > $@.tmp && mv $@.tmp $@
- perl -ne 'if (/^\\usepackage/) { \
- print "\\documentclass{book}\n", \
- $(PERLCOMMON)' \
+ perl -ne 'if (/^\\usepackage/) { '\
+ ' print "\\documentclass{book}\n", '\
+ ' $(PERLCOMMON)' \
tmp.latex > $*_us.latex
rm -f tmp.latex
.latex.dvi:
- if latex $< | perl -pe '/should run.*again/ && $$run++; \
- /^LaTeX Warning:.*Rerun/ && $$run++; \
- eof && exit(!$$run);'; then \
+ if latex $< | perl -pe '/should run.*again/ && $$run++; '\
+ '/^LaTeX Warning:.*Rerun/ && $$run++; '\
+ 'eof && exit(!$$run);'; then \
latex $<; \
fi
.dvi.ps:
@@ -73,7 +73,7 @@ all: zshguide.html zshguide.latex zshguide.txt zshguide.pdf \
zshguide.txt zshguide.html zshguide.latex: zshguide.yo $(CHAPTERS)
-zshguide.pdf zshguide.dvi: zshguide.latex
+zshguide.pdf zshguide_us.pdf zshguide.dvi: zshguide.latex
# zshguide.ps: zshguide.dvi
@@ -92,4 +92,6 @@ web: zshguide.html zshguide.latex zshguide.pdf zshguide_us.pdf
clean:
rm -f zshguide*.html zshguide*.txt zshguide*.tex zshguide*.latex \
- zshguide*.dvi zshguide.pdf zshguide*.ps zshguide.aux zshguide.toc
+ zshguide*.dvi zshguide.pdf zshguide*.ps zshguide.aux zshguide.toc \
+ zshguide*.log zshguide*.pdf *~ zshguide*.aux zshguide*.toc \
+ zshguide*.tmp tmp.latex
--
1.7.3.2
prev parent reply other threads:[~2010-11-08 19:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-08 19:28 [PATCH 1/2] zshguide: minimal fix for yodl 2.x Andrey Borzenkov
2010-11-08 19:28 ` Andrey Borzenkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1289244517-14442-2-git-send-email-arvidjaar@gmail.com \
--to=arvidjaar@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).