]> git.saurik.com Git - cydia.git/blobdiff - pngcrush.sh
Mostly make Cydia compile using the iOS Simulator.
[cydia.git] / pngcrush.sh
index d74845aba96aba1e330e0c8c7deab7194689a82d..685a6af3cb47836797ced9ab2ccf2c4d90a53223 100755 (executable)
@@ -5,8 +5,8 @@ out=$2
 
 steps=()
 
 
 steps=()
 
-src=_.png
-dst=__.png
+src=${out}.src.png
+dst=${out}.dst.png
 
 copy=("${src}" "${dst}")
 
 
 copy=("${src}" "${dst}")
 
@@ -16,7 +16,7 @@ function step() {
     steps+=($(stat -f "%z" "${src}"))
 }
 
     steps+=($(stat -f "%z" "${src}"))
 }
 
-pngcrush=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush
+pngcrush=$(xcode-select --print-path)/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush
 
 if grep CgBI "${png}" &>/dev/null; then
     if [[ ${png} != ${out} ]]; then
 
 if grep CgBI "${png}" &>/dev/null; then
     if [[ ${png} != ${out} ]]; then