summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-12-31 11:23:02 +0000
committerChris McDonough <chrism@agendaless.com>2009-12-31 11:23:02 +0000
commit451f04a3e719df37e64e5fea02f02a20d3835012 (patch)
tree4d79a11aae774d4c474b93543d2aea8bc9445e3c
parentb74cd47706ba4df77080ef49eb85cb0437bc15f4 (diff)
downloadpyramid-451f04a3e719df37e64e5fea02f02a20d3835012.tar.gz
pyramid-451f04a3e719df37e64e5fea02f02a20d3835012.tar.bz2
pyramid-451f04a3e719df37e64e5fea02f02a20d3835012.zip
Only convert images when BOOK=1.
-rw-r--r--docs/Makefile1
-rwxr-xr-xdocs/convert_images.sh14
2 files changed, 9 insertions, 6 deletions
diff --git a/docs/Makefile b/docs/Makefile
index b9c6d0f5a..674c605d8 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -57,6 +57,7 @@ htmlhelp:
latex:
mkdir -p .build/latex .build/doctrees
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) .build/latex
+ ./convert_images.sh
@echo
@echo "Build finished; the LaTeX files are in .build/latex."
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
diff --git a/docs/convert_images.sh b/docs/convert_images.sh
index 4ee1a119e..541394f49 100755
--- a/docs/convert_images.sh
+++ b/docs/convert_images.sh
@@ -1,9 +1,11 @@
TEXDIR=.build/latex
-for img in $TEXDIR/*.png;
-do
- cp $img ${img}.BAK
- convert $img -units PixelsPerInch -resample 300 -colorspace Gray ${img}.grey
- mv ${img}.grey $img
-done
+if test ! -z $BOOK; then
+ for img in $TEXDIR/*.png;
+ do
+ cp $img ${img}.BAK
+ convert $img -units PixelsPerInch -resample 300 -colorspace Gray ${img}.grey
+ mv ${img}.grey $img
+ done
+fi