From: Jay Freeman (saurik) Date: Sun, 19 Feb 2012 00:49:19 +0000 (-0800) Subject: Use xcode-select --print-path to find /Developer. X-Git-Tag: v1.1.5~9 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/164e813970e3f8b4a3ab1c8247bed60ea9fd4f6d Use xcode-select --print-path to find /Developer. --- diff --git a/makefile b/makefile index 372e21a8..4e349672 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,4 @@ -dev := /Developer/Platforms/iPhoneOS.platform/Developer +dev := $(shell xcode-select --print-path)/Platforms/iPhoneOS.platform/Developer sdks := $(dev)/SDKs ioss := $(sort $(patsubst $(sdks)/iPhoneOS%.sdk,%,$(wildcard $(sdks)/iPhoneOS*.sdk))) ios := $(word $(words $(ioss)),$(ioss)) diff --git a/pngcrush.sh b/pngcrush.sh index 0598451e..685a6af3 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