summaryrefslogtreecommitdiff
path: root/docs/convert_images.sh
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 /docs/convert_images.sh
parentb74cd47706ba4df77080ef49eb85cb0437bc15f4 (diff)
downloadpyramid-451f04a3e719df37e64e5fea02f02a20d3835012.tar.gz
pyramid-451f04a3e719df37e64e5fea02f02a20d3835012.tar.bz2
pyramid-451f04a3e719df37e64e5fea02f02a20d3835012.zip
Only convert images when BOOK=1.
Diffstat (limited to 'docs/convert_images.sh')
-rwxr-xr-xdocs/convert_images.sh14
1 files changed, 8 insertions, 6 deletions
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