]> git.saurik.com Git - cydia.git/commitdiff
Use xcode-select --print-path to find /Developer.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 19 Feb 2012 00:49:19 +0000 (16:49 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 19 Feb 2012 00:49:19 +0000 (16:49 -0800)
makefile
pngcrush.sh

index 372e21a8a5217f6570d4897542e51e6476e464a6..4e34967260ab719dce7117607e2451ed9c1deeaf 100644 (file)
--- 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))
index 0598451e6231288f88fb4492a7b86d0c102ec7ba..685a6af3cb47836797ced9ab2ccf2c4d90a53223 100755 (executable)
@@ -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