build-gecko.sh 780 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. set -e
  3. if test "${ACTION}" != "clean"; then
  4. echo "Building in ${GECKO_OBJDIR}"
  5. make -j8 -s -C $GECKO_OBJDIR binaries
  6. echo "Copying files from ${GECKO_OBJDIR}/dist/bin"
  7. rsync -pvtrlL --exclude "Test*" \
  8. --exclude "test_*" --exclude "*_unittest" \
  9. --exclude xulrunner \
  10. ${GECKO_OBJDIR}/dist/bin/ $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Frameworks
  11. if test ${ARCHS} == "armv7"; then
  12. for x in $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Frameworks/*.dylib $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Frameworks/XUL; do
  13. echo "Signing $x"
  14. /usr/bin/codesign --force --sign "${EXPANDED_CODE_SIGN_IDENTITY}" --preserve-metadata=identifier,entitlements,resource-rules $x
  15. done
  16. fi
  17. fi