copy-inspector-resources.sh 813 B

123456789101112131415
  1. #!/bin/sh
  2. # Copy all the Inspector front-end resources.
  3. ditto "${SRCROOT}/../inspector/front-end" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/inspector"
  4. ditto "${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore/InspectorBackendStub.js" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/inspector"
  5. # Remove the WebKit.qrc file since it is not used on the Mac (this file is for Qt).
  6. rm -f "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/inspector/WebKit.qrc"
  7. # Remove *.re2js files, they are only used to generate some .js files.
  8. rm -f "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/inspector/"*.re2js
  9. # Remove any .svn directories that may have been copied over.
  10. find "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/inspector" -name ".svn" -type d | xargs rm -rf