diff options
author | Christopher N. Hesse <raymanfx@gmail.com> | 2017-02-05 21:19:25 +0100 |
---|---|---|
committer | Scott Warner <tortel1210@gmail.com> | 2017-02-10 18:18:03 +0000 |
commit | d2bf7327bbff5437e27d3fc842e44c1d1b70d1f9 (patch) | |
tree | 5fa81c10be7c857852257537246b762f111b81b8 | |
parent | 8e2fedf3ce426a8366f88ef34ccf20b070c0c197 (diff) | |
download | vendor_replicant-d2bf7327bbff5437e27d3fc842e44c1d1b70d1f9.zip vendor_replicant-d2bf7327bbff5437e27d3fc842e44c1d1b70d1f9.tar.gz vendor_replicant-d2bf7327bbff5437e27d3fc842e44c1d1b70d1f9.tar.bz2 |
bootanimation: Use mogrify to convert images in place
Fixes bootanimation generation for Darwin/BSD.
Change-Id: Id9e38bcb9db7b550f22bda1250dbb515599e8f93
(cherry picked from commit 70658805a6ddbecd55877fafe4fba8b2efd83f74)
-rwxr-xr-x | bootanimation/generate-bootanimation.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bootanimation/generate-bootanimation.sh b/bootanimation/generate-bootanimation.sh index 98be46b..cab7be8 100755 --- a/bootanimation/generate-bootanimation.sh +++ b/bootanimation/generate-bootanimation.sh @@ -26,7 +26,8 @@ for part_cnt in 0 1 2 3 4 do mkdir -p $ANDROID_PRODUCT_OUT/obj/BOOTANIMATION/bootanimation/part$part_cnt done -tar xfp "vendor/cm/bootanimation/bootanimation.tar" --to-command="convert - -resize '$RESOLUTION' -colors 250 \"png8:$OUT/bootanimation/\$TAR_FILENAME\"" +tar xfp "vendor/cm/bootanimation/bootanimation.tar" -C "$OUT/bootanimation/" +mogrify -resize $RESOLUTION -colors 250 "$OUT/bootanimation/"*"/"*".png" # Create desc.txt echo "$IMAGESCALEWIDTH $IMAGESCALEHEIGHT" 60 > "$OUT/bootanimation/desc.txt" |