xcrun wrapper: rephrase comments

This commit is contained in:
Jack Nagel 2014-04-29 21:51:18 -05:00
parent 4cff03b730
commit cf23fd2e14

View File

@ -1,10 +1,10 @@
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0 #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0
# This wrapper because 4.3 xcrun doesn't work with CLT-only configurations # Historically, xcrun has had various bugs, and in some cases it didn't
# But many build-systems expect it to work. This fixes that. # work at all (e.g. CLT-only in the Xcode 4.3 era). This script emulates
# NOTE only works if the build-tool calls xcrun without a path prefixed! # it and attempts to avoid these issues.
# Some build tools are stupid and still set DEVELOPER_DIR to old /Developer # Some build tools set DEVELOPER_DIR, so discard it
ENV.delete "DEVELOPER_DIR" ENV.delete "DEVELOPER_DIR"
if ARGV.empty? || ARGV[0][0..0] == "-" if ARGV.empty? || ARGV[0][0..0] == "-"