aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Chris Parsons <cparsons@google.com>2016-02-18 00:09:21 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-18 09:49:39 +0000
commitc8424a6b0a012b7ec757ae2365f369a3d7562645 (patch)
tree1e57620447aab690d9dd3defdb893be98f0e118d /src
parent0e7f13775cb069448fe35a2a84db95bb45f0c2dd (diff)
xcode_locator outputs developer directories instead of xcode paths
-- MOS_MIGRATED_REVID=114910110
Diffstat (limited to 'src')
-rw-r--r--src/main/tools/xcode_locator.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/tools/xcode_locator.m b/src/main/tools/xcode_locator.m
index 6b8fffc700..5b7a12e1f2 100644
--- a/src/main/tools/xcode_locator.m
+++ b/src/main/tools/xcode_locator.m
@@ -104,8 +104,8 @@ int main(int argc, const char * argv[]) {
if (version == nil) {
printf("xcode_locator <version_number>\n"
"Given a version number, or partial version number in x.y.z format, will attempt "
- "to return the path to the appropriate Xcode.app.\nOmitting a version number will "
- "list all available versions in JSON format.\n");
+ "to return the path to the appropriate developer directory.\nOmitting a version "
+ "number will list all available versions in JSON format.\n");
return 1;
}
@@ -131,7 +131,9 @@ int main(int argc, const char * argv[]) {
return 1;
}
version = ExpandVersion(version);
- XcodeVersionEntry *entry = [[XcodeVersionEntry alloc] initWithVersion:version url:url];
+ NSURL *developerDir = [url URLByAppendingPathComponent:@"Contents/Developer"];
+ XcodeVersionEntry *entry =
+ [[XcodeVersionEntry alloc] initWithVersion:version url:developerDir];
AddEntryToDictionary(entry, dict);
}