Files
RestKit/Scripts/CopyHeadersToLegacyBuildDir.command
2011-03-23 22:18:34 -04:00

13 lines
617 B
Bash

# This script copies the headers from the configuration
# build directory to their legacy location at Build/RestKit
# under the project root. This is the include path for Xcode
# 3 projects and Xcode 4 projects not using derived data
# TODO: May only want to do this optionally if the BUILT_PRODUCTS_DIR is not a sub-directory of the SOURCE_ROOT
IFS=$'\n'
if [ -d "${CONFIGURATION_BUILD_DIR}/include/RestKit" ]; then
rsync -av --delete "${CONFIGURATION_BUILD_DIR}/include/RestKit" "${SOURCE_ROOT}/Build"
else
echo "Configuration include path does not exist, likely perform a Build & Archive operation..."
fi