bug 518641 followup, don't try to copy files around if the test-package directories don't exist.

--HG--
extra : rebase_source : baa18363c47218f4020b19c9782155c9aae27992
This commit is contained in:
Ted Mielczarek 2009-10-01 18:07:52 -04:00
Родитель 9ab5df711e
Коммит d73c55c6ca
1 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -113,16 +113,16 @@ postflight_all:
# Now, repeat the process for the test package.
$(MAKE) -C $(OBJDIR_PPC) UNIVERSAL_BINARY= package-tests
$(MAKE) -C $(OBJDIR_X86) UNIVERSAL_BINARY= package-tests
# automation.py differs because it hardcodes a path to dist/bin.
# It doesn't matter which one we use.
cp $(DIST_PPC)/test-package-stage/mochitest/automation.py \
$(DIST_X86)/test-package-stage/mochitest/
cp $(DIST_PPC)/test-package-stage/reftest/automation.py \
$(DIST_X86)/test-package-stage/reftest/
rm -rf $(DIST_UNI)/test-package-stage
if test -d $(DIST_PPC)/test-package-stage -a \
-d $(DIST_X86)/test-package-stage; then \
$(TOPSRCDIR)/build/macosx/universal/unify \
$(DIST_PPC)/test-package-stage \
$(DIST_X86)/test-package-stage \
# automation.py differs because it hardcodes a path to
# dist/bin. It doesn't matter which one we use.
if test -d $(DIST_PPC)/test-package-stage -a \
-d $(DIST_X86)/test-package-stage; then \
cp $(DIST_PPC)/test-package-stage/mochitest/automation.py \
$(DIST_X86)/test-package-stage/mochitest/; \
cp $(DIST_PPC)/test-package-stage/reftest/automation.py \
$(DIST_X86)/test-package-stage/reftest/; \
$(TOPSRCDIR)/build/macosx/universal/unify \
$(DIST_PPC)/test-package-stage \
$(DIST_X86)/test-package-stage \
$(DIST_UNI)/test-package-stage; fi