From 164e813970e3f8b4a3ab1c8247bed60ea9fd4f6d Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 18 Feb 2012 16:49:19 -0800 Subject: Use xcode-select --print-path to find /Developer. --- pngcrush.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pngcrush.sh') diff --git a/pngcrush.sh b/pngcrush.sh index 0598451..685a6af 100755 --- a/pngcrush.sh +++ b/pngcrush.sh @@ -16,7 +16,7 @@ function step() { 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 -- cgit v1.2.3