bug 787459 - Dump symbols from test programs, but don't package them. r=glandium

--HG--
extra : rebase_source : 78b10be59356e4abc115ea8a370c9355dfd9e3d5
This commit is contained in:
Ted Mielczarek 2012-08-31 15:52:43 -04:00
parent 3ee9de192a
commit 52d7a18187

View File

@ -168,21 +168,20 @@ endif
OBJCOPY="$(OBJCOPY)" \ OBJCOPY="$(OBJCOPY)" \
$(PYTHON) $(topsrcdir)/toolkit/crashreporter/tools/symbolstore.py \ $(PYTHON) $(topsrcdir)/toolkit/crashreporter/tools/symbolstore.py \
$(MAKE_SYM_STORE_ARGS) \ $(MAKE_SYM_STORE_ARGS) \
--exclude="*test*" --exclude="*Test*" \
$(foreach dir,$(SYM_STORE_SOURCE_DIRS),-s $(dir)) \ $(foreach dir,$(SYM_STORE_SOURCE_DIRS),-s $(dir)) \
$(DUMP_SYMS_BIN) \ $(DUMP_SYMS_BIN) \
$(DIST)/crashreporter-symbols \ $(DIST)/crashreporter-symbols \
$(MAKE_SYM_STORE_PATH) > \ $(MAKE_SYM_STORE_PATH) | grep -iv test > \
$(DIST)/crashreporter-symbols/$(SYMBOL_INDEX_NAME) $(DIST)/crashreporter-symbols/$(SYMBOL_INDEX_NAME)
echo packing symbols echo packing symbols
$(NSINSTALL) -D $(DIST)/$(PKG_PATH) $(NSINSTALL) -D $(DIST)/$(PKG_PATH)
cd $(DIST)/crashreporter-symbols && \ cd $(DIST)/crashreporter-symbols && \
zip -r9D "../$(PKG_PATH)$(SYMBOL_FULL_ARCHIVE_BASENAME).zip" . zip -r9D "../$(PKG_PATH)$(SYMBOL_FULL_ARCHIVE_BASENAME).zip" . -x "*test*" -x "*Test*"
cd $(DIST)/crashreporter-symbols && \ cd $(DIST)/crashreporter-symbols && \
grep "sym" $(SYMBOL_INDEX_NAME) > $(SYMBOL_INDEX_NAME).tmp && \ grep "sym" $(SYMBOL_INDEX_NAME) > $(SYMBOL_INDEX_NAME).tmp && \
mv $(SYMBOL_INDEX_NAME).tmp $(SYMBOL_INDEX_NAME) mv $(SYMBOL_INDEX_NAME).tmp $(SYMBOL_INDEX_NAME)
cd $(DIST)/crashreporter-symbols && \ cd $(DIST)/crashreporter-symbols && \
zip -r9D "../$(PKG_PATH)$(SYMBOL_ARCHIVE_BASENAME).zip" . -i "*.sym" -i "*.txt" zip -r9D "../$(PKG_PATH)$(SYMBOL_ARCHIVE_BASENAME).zip" . -i "*.sym" -i "*.txt" -x "*test*" -x "*Test*"
endif # MOZ_CRASHREPORTER endif # MOZ_CRASHREPORTER
uploadsymbols: uploadsymbols: