Skip to content

Commit

Permalink
[scripts] Use a less hacky check to determine if we're doing an Xcode…
Browse files Browse the repository at this point in the history
… 4 Archive build.
  • Loading branch information
jverkoey committed Mar 11, 2011
1 parent f1a486b commit 348c6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/Protect.command
Expand Up @@ -22,7 +22,7 @@ IFS=$'\n'

# In Xcode 4 Archive builds, there is one extra folder placed between the configuration build
# dir and the public headers path titled "ArchiveIntermediates".
if [[ $CONFIGURATION_BUILD_DIR == *ArchiveIntermediates* ]]; then
if [[ "$DEPLOYMENT_LOCATION" == "YES" && "$XCODE_VERSION_MAJOR" -ge "0400" ]]; then
cd ${CONFIGURATION_BUILD_DIR}/..${PUBLIC_HEADERS_FOLDER_PATH}
else
cd ${CONFIGURATION_BUILD_DIR}${PUBLIC_HEADERS_FOLDER_PATH}
Expand Down

0 comments on commit 348c6c6

Please sign in to comment.