# HG changeset patch
# User Dongsheng Song <dongsheng.song@gmail.com>
# Date 1236930943 -28800
# Node ID 74da9b3153965cf230335e822613edc888adc443
# Parent  c88aa4edf9df8984f92407951b89a0c96e4f1a0f
Cleanup thoroughly, and run fixsvg when generate png files

diff -r c88aa4edf9df -r 74da9b315396 .hgignore
--- 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
 .\#*
diff -r c88aa4edf9df -r 74da9b315396 Makefile
--- 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 $@ $<