summaryrefslogtreecommitdiff
path: root/docs/convert_images.sh
diff options
context:
space:
mode:
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