hgbook

changeset 633:74da9b315396

Cleanup thoroughly, and run fixsvg when generate png files
author Dongsheng Song <dongsheng.song@gmail.com>
date Fri Mar 13 15:55:43 2009 +0800 (2009-03-13)
parents c88aa4edf9df
children d1a6ed326f87
files .hgignore Makefile
line diff
     1.1 --- a/.hgignore	Thu Mar 12 21:48:08 2009 +0800
     1.2 +++ b/.hgignore	Fri Mar 13 15:55:43 2009 +0800
     1.3 @@ -1,5 +1,6 @@
     1.4  [^/]+/build/
     1.5  [^/]+/fop/
     1.6 +[^/]+/hello/
     1.7  [^/]+/html/
     1.8  
     1.9  syntax: glob
    1.10 @@ -12,6 +13,7 @@
    1.11  *.pyc
    1.12  *.rej
    1.13  *.run
    1.14 +*-tmp.svg
    1.15  *~
    1.16  .*.swp
    1.17  .\#*
     2.1 --- a/Makefile	Thu Mar 12 21:48:08 2009 +0800
     2.2 +++ b/Makefile	Fri Mar 13 15:55:43 2009 +0800
     2.3 @@ -53,7 +53,30 @@
     2.4  	@echo "  make clean        # Remove the build files."
     2.5  
     2.6  clean:
     2.7 -	@rm -fr build po/*.mo
     2.8 +	@rm -fr build po/*.mo hello en/hello en/html en/.validated-00book.xml \
     2.9 +          stylesheets/system-xsl en/images/*-tmp.svg \
    2.10 +          en/images/feature-branches.png \
    2.11 +          en/images/filelog.png \
    2.12 +          en/images/feature-branches.png \
    2.13 +          en/images/filelog.png \
    2.14 +          en/images/metadata.png \
    2.15 +          en/images/mq-stack.png \
    2.16 +          en/images/revlog.png \
    2.17 +          en/images/snapshot.png \
    2.18 +          en/images/tour-history.png \
    2.19 +          en/images/tour-merge-conflict.png \
    2.20 +          en/images/tour-merge-merge.png \
    2.21 +          en/images/tour-merge-pull.png \
    2.22 +          en/images/tour-merge-sep-repos.png \
    2.23 +          en/images/undo-manual-merge.png \
    2.24 +          en/images/undo-manual.png \
    2.25 +          en/images/undo-non-tip.png \
    2.26 +          en/images/undo-simple.png \
    2.27 +          en/images/wdir-after-commit.png \
    2.28 +          en/images/wdir-branch.png \
    2.29 +          en/images/wdir-merge.png \
    2.30 +          en/images/wdir-pre-branch.png \
    2.31 +          en/images/wdir.png
    2.32  
    2.33  all:
    2.34  ifdef LINGUA
    2.35 @@ -187,8 +210,9 @@
    2.36  	(cd build/$(LINGUA)/source && ../../../tools/fop/fop.sh hgbook.fo ../pdf/hgbook.pdf)
    2.37  endif
    2.38  
    2.39 -en/images/%.png: en/images/%.svg
    2.40 -	inkscape -D -d 120 -e $@ $<
    2.41 +en/images/%.png: en/images/%.svg en/fixsvg
    2.42 +	en/fixsvg $<
    2.43 +	inkscape -D -d 120 -e $@ $<-tmp.svg
    2.44  
    2.45  en/images/%.svg: en/images/%.dot
    2.46  	dot -Tsvg -o $@ $<