- cd "${LyxSourceDir}"/development/MacOSX
- ${INKSCAPE} --export-type=png -w 560 -o dmg-background.png dmg-background.svgz
- ${INKSCAPE} --export-type=png -w 1120 -o dmg-background@2x.png dmg-background.svgz
- tiffutil -cathidpicheck dmg-background.png dmg-background@2x.png -out dmg-background.tiff
+ (
+ cd "${LyxSourceDir}"/development/MacOSX
+ test -x ${INKSCAPE} && ${INKSCAPE} --export-type=png -w 560 -o dmg-background.png dmg-background.svgz
+ test -x ${INKSCAPE} && ${INKSCAPE} --export-type=png -w 1120 -o dmg-background@2x.png dmg-background.svgz
+ tiffutil -cathidpicheck dmg-background.png dmg-background@2x.png -out dmg-background.tiff
+ )