# HG changeset patch # User Bryan O'Sullivan # Date 1238130053 25200 # Node ID 0b45854f0b7b0170308103660b7fb16c49886b51 # Parent 8dfdbe1cf9829f2f478f1f4845dec205804c0ce7 Generate and include images properly. diff -r 8dfdbe1cf982 -r 0b45854f0b7b en/Makefile --- a/en/Makefile Thu Mar 26 22:00:32 2009 -0700 +++ b/en/Makefile Thu Mar 26 22:00:53 2009 -0700 @@ -1,28 +1,6 @@ # This makefile requires GNU make. -image-sources := \ - feature-branches.dot \ - filelog.svg \ - kdiff3.png \ - metadata.svg \ - mq-stack.svg \ - note.png \ - revlog.svg \ - snapshot.svg \ - tour-history.svg \ - tour-merge-conflict.svg \ - tour-merge-merge.svg \ - tour-merge-pull.svg \ - tour-merge-sep-repos.svg \ - undo-manual.dot \ - undo-manual-merge.dot \ - undo-non-tip.dot \ - undo-simple.dot \ - wdir.svg \ - wdir-after-commit.svg \ - wdir-branch.svg \ - wdir-merge.svg \ - wdir-pre-branch.svg +image-sources := $(wildcard figs/*.dot figs/*.png figs/*.svg) xml-src-files := \ 00book.xml \ @@ -33,7 +11,14 @@ image-svg := $(filter %.svg,$(image-sources)) image-png := $(filter %.png,$(image-sources)) -image-html := $(image-dot:%.dot=%.png) $(image-svg:%.svg=%.png) $(image-png) +obj-web := html +obj-websup := $(obj-web)/support +obj-web-read := $(obj-web)/read + +image-web := \ + $(image-dot:%.dot=$(obj-web-read)/%.png) \ + $(image-svg:%.svg=$(obj-web-read)/%.png) \ + $(image-png:%=$(obj-web-read)/%) example-sources-by-name := \ backout \ @@ -71,9 +56,6 @@ $(example-sources-by-name:%=examples/%) \ $(wildcard examples/ch*/*) -obj-web := html -obj-websup := html/support - extras-web-base := \ $(obj-web)/index.html \ $(obj-web)/robots.txt \ @@ -135,14 +117,16 @@ web: ../xsl/system-xsl websup html -html: ../xsl/system-xsl $(xml-src-files) valid - xsltproc $(xsltproc-opts) -o html/read/x ../xsl/chunk-stylesheet.xsl 00book.xml - for i in html/read/*.html; do \ +html: $(obj-web-read)/index.html + +$(obj-web-read)/index.html: ../xsl/system-xsl .validated-00book.xml + xsltproc $(xsltproc-opts) -o $(obj-web-read)/x ../xsl/chunk-stylesheet.xsl 00book.xml + for i in $(obj-web-read)/*.html; do \ gzip -9 -c $$i > $$i.gz; \ done -websup: $(extras-web) - mkdir -p $(obj-websup)/figs +websup: $(extras-web) $(image-web) + mkdir -p $(obj-websup)/figs $(obj-web-read)/figs cp ../xsl/system-xsl/images/*.png $(obj-websup)/figs cp -f ../web/icons/*.png $(obj-websup)/figs @@ -159,12 +143,23 @@ # Produce 90dpi PNGs for the web. -%.png: %.svg fixsvg +$(obj-web-read)/figs/%.png: $(obj-web-read)/figs/%.svg fixsvg + mkdir -p $(dir $@) ./fixsvg $< inkscape -D -e $@ $<-tmp.svg rm $<-tmp.svg -%.svg: %.dot +$(obj-web-read)/figs/%.png: figs/%.svg fixsvg + mkdir -p $(dir $@) + ./fixsvg $< + inkscape -D -e $@ $<-tmp.svg + rm $<-tmp.svg + +$(obj-web-read)/figs/%.png: figs/%.png + cp $< $@ + +$(obj-web-read)/figs/%.svg: figs/%.dot + mkdir -p $(dir $@) dot -Tsvg -o $@ $< examples: $(example-prereqs) examples/.run diff -r 8dfdbe1cf982 -r 0b45854f0b7b en/appA-cmdref.xml --- a/en/appA-cmdref.xml Thu Mar 26 22:00:32 2009 -0700 +++ b/en/appA-cmdref.xml Thu Mar 26 22:00:53 2009 -0700 @@ -1,6 +1,7 @@ + Command reference \cmdref{add}{add files at the next commit} @@ -20,7 +21,7 @@ Options - +x \loptref{diff}{nodates} Omit date and time information when printing diff headers. diff -r 8dfdbe1cf982 -r 0b45854f0b7b en/ch01-tour-basic.xml --- a/en/ch01-tour-basic.xml Thu Mar 26 22:00:32 2009 -0700 +++ b/en/ch01-tour-basic.xml Thu Mar 26 22:00:53 2009 -0700 @@ -258,7 +258,7 @@ Graphical history of the <filename class="directory">hello</filename> repository - + XXX add text diff -r 8dfdbe1cf982 -r 0b45854f0b7b en/ch02-tour-merge.xml --- a/en/ch02-tour-merge.xml Thu Mar 26 22:00:32 2009 -0700 +++ b/en/ch02-tour-merge.xml Thu Mar 26 22:00:53 2009 -0700 @@ -48,7 +48,7 @@ class="directory">my-new-hello repositories - + XXX add text @@ -77,7 +77,7 @@ class="directory">my-new-hello - + XXX add text @@ -124,7 +124,7 @@ following commit - + XXX add text @@ -179,7 +179,7 @@
Conflicting changes to a document - + XXX add text
@@ -249,7 +249,7 @@ file - + XXX add text diff -r 8dfdbe1cf982 -r 0b45854f0b7b en/ch03-concepts.xml --- a/en/ch03-concepts.xml Thu Mar 26 22:00:32 2009 -0700 +++ b/en/ch03-concepts.xml Thu Mar 26 22:00:53 2009 -0700 @@ -53,7 +53,7 @@ Relationships between files in working directory and filelogs in repository - + XXX add text @@ -102,7 +102,7 @@
Metadata relationships - + XXX add text
@@ -187,7 +187,7 @@
Snapshot of a revlog, with incremental deltas - + XXX add text
@@ -291,7 +291,7 @@
The conceptual structure of a revlog - + XXX add text
@@ -342,7 +342,7 @@
The working directory can have two parents - + XXX add text
@@ -357,7 +357,7 @@ The working directory gains new parents after a commit - + XXX add text @@ -398,7 +398,7 @@ The working directory, updated to an older changeset - + XXX add text @@ -418,7 +418,7 @@ After a commit made while synced to an older changeset - + XXX add text @@ -460,7 +460,7 @@ Merging two heads - + XXX add text diff -r 8dfdbe1cf982 -r 0b45854f0b7b en/ch05-collab.xml --- a/en/ch05-collab.xml Thu Mar 26 22:00:32 2009 -0700 +++ b/en/ch05-collab.xml Thu Mar 26 22:00:53 2009 -0700 @@ -272,7 +272,7 @@
Feature branches - + XXX add text
diff -r 8dfdbe1cf982 -r 0b45854f0b7b en/ch08-undo.xml --- a/en/ch08-undo.xml Thu Mar 26 22:00:32 2009 -0700 +++ b/en/ch08-undo.xml Thu Mar 26 22:00:53 2009 -0700 @@ -361,7 +361,7 @@ Backing out a change using the <command role="hg-cmd">hg backout</command> command - + XXX add text @@ -408,7 +408,7 @@ Automated backout of a non-tip change using the <command role="hg-cmd">hg backout</command> command - + XXX add text @@ -473,7 +473,7 @@ Backing out a change using the <command role="hg-cmd">hg backout</command> command - + XXX add text @@ -511,7 +511,7 @@
Manually merging a backout change - + XXX add text
diff -r 8dfdbe1cf982 -r 0b45854f0b7b en/ch11-mq.xml --- a/en/ch11-mq.xml Thu Mar 26 22:00:32 2009 -0700 +++ b/en/ch11-mq.xml Thu Mar 26 22:00:53 2009 -0700 @@ -408,7 +408,7 @@ Applied and unapplied patches in the MQ patch stack - + XXX add text