Reviewed by John.
[WebKit-https.git] / WebKit / embed-frameworks.sh
1 #!/bin/sh
2
3 framework_name=WebKit.framework
4 framework_dir="${SYMROOT}/${framework_name}/Versions/A/Frameworks"
5
6
7 if [ -d "${BUILT_PRODUCTS_DIR}/JavaScriptCore.framework" ]; then
8     ditto "${BUILT_PRODUCTS_DIR}/JavaScriptCore.framework" "${framework_dir}/JavaScriptCore.framework"
9     ditto "${BUILT_PRODUCTS_DIR}/WebCore.framework" "${framework_dir}/WebCore.framework"
10 fi
11
12 # When we copy files from the BuildRoot into DSTROOT, we sometimes pick up
13 # huge turds from ditto.  For now, just strip these out after the fact.
14 find -X "${framework_dir}" -name '*.dittoKeptBinary.*' -print0 | xargs -0 rm -f
15