2
0

exit after niftyninepatch.

This commit is contained in:
Maarten Billemont 2014-11-18 00:11:41 -05:00
parent 719deb7926
commit 617923557a

View File

@ -57,8 +57,8 @@ copyImage() {
if [[ $src = *.9.png || $src = *.9@*.png ]]; then if [[ $src = *.9.png || $src = *.9@*.png ]]; then
pinf '%s -> %s (ninepatch)' "${src##*/}" "${dst##*/}" pinf '%s -> %s (ninepatch)' "${src##*/}" "${dst##*/}"
exit
niftyNinePatch=$(java -Dapple.awt.UIElement=true -jar Scripts/NiftyNinePatchHelper.jar "$src" "$dst") || return niftyNinePatch=$(java -Dapple.awt.UIElement=true -jar Scripts/NiftyNinePatchHelper.jar "$src" "$dst") || return
exit
while IFS='=' read var value; do while IFS='=' read var value; do
[[ $var = imageMode ]] && value=${value#'"resize:'} value=${value%'"'} && IFS=, read capLeft capWidth capRight capTop _ _ _ capHeight _ _ _ capBottom <<< "$value" [[ $var = imageMode ]] && value=${value#'"resize:'} value=${value%'"'} && IFS=, read capLeft capWidth capRight capTop _ _ _ capHeight _ _ _ capBottom <<< "$value"
[[ $var = padding ]] && IFS=, read paddingTop paddingRight paddingBottom paddingLeft <<< "${value//[px\"]}" [[ $var = padding ]] && IFS=, read paddingTop paddingRight paddingBottom paddingLeft <<< "${value//[px\"]}"