changeset 732:74da9b315396

Cleanup thoroughly, and run fixsvg when generate png files
author Dongsheng Song <dongsheng.song@gmail.com>
date Fri, 13 Mar 2009 15:55:43 +0800
parents c88aa4edf9df
children d1a6ed326f87
files .hgignore Makefile
diffstat 2 files changed, 29 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Thu Mar 12 21:48:08 2009 +0800
+++ b/.hgignore	Fri Mar 13 15:55:43 2009 +0800
@@ -1,5 +1,6 @@
 [^/]+/build/
 [^/]+/fop/
+[^/]+/hello/
 [^/]+/html/
 
 syntax: glob
@@ -12,6 +13,7 @@
 *.pyc
 *.rej
 *.run
+*-tmp.svg
 *~
 .*.swp
 .\#*
--- a/Makefile	Thu Mar 12 21:48:08 2009 +0800
+++ b/Makefile	Fri Mar 13 15:55:43 2009 +0800
@@ -53,7 +53,30 @@
 	@echo "  make clean        # Remove the build files."
 
 clean:
-	@rm -fr build po/*.mo
+	@rm -fr build po/*.mo hello en/hello en/html en/.validated-00book.xml \
+          stylesheets/system-xsl en/images/*-tmp.svg \
+          en/images/feature-branches.png \
+          en/images/filelog.png \
+          en/images/feature-branches.png \
+          en/images/filelog.png \
+          en/images/metadata.png \
+          en/images/mq-stack.png \
+          en/images/revlog.png \
+          en/images/snapshot.png \
+          en/images/tour-history.png \
+          en/images/tour-merge-conflict.png \
+          en/images/tour-merge-merge.png \
+          en/images/tour-merge-pull.png \
+          en/images/tour-merge-sep-repos.png \
+          en/images/undo-manual-merge.png \
+          en/images/undo-manual.png \
+          en/images/undo-non-tip.png \
+          en/images/undo-simple.png \
+          en/images/wdir-after-commit.png \
+          en/images/wdir-branch.png \
+          en/images/wdir-merge.png \
+          en/images/wdir-pre-branch.png \
+          en/images/wdir.png
 
 all:
 ifdef LINGUA
@@ -187,8 +210,9 @@
 	(cd build/$(LINGUA)/source && ../../../tools/fop/fop.sh hgbook.fo ../pdf/hgbook.pdf)
 endif
 
-en/images/%.png: en/images/%.svg
-	inkscape -D -d 120 -e $@ $<
+en/images/%.png: en/images/%.svg en/fixsvg
+	en/fixsvg $<
+	inkscape -D -d 120 -e $@ $<-tmp.svg
 
 en/images/%.svg: en/images/%.dot
 	dot -Tsvg -o $@ $<