Fix bug 724257 - Upload lightning in |make upload| if MOZ_CALENDAR is specified, for tryserver. r=Standard8 CLOSED TREE (push won't affect mail)
authorPhilipp Kewisch <mozilla@kewis.ch>
Sun, 12 Feb 2012 12:10:42 +0100
changeset 10802 3ed870bf0b17fb1e9a21ad04324bd59418cd541d
parent 10801 e8afafcf0a12de09725607b4e8ab2d30ca87f58f
child 10803 c36b1ed900b901a4810b163c2733a1f7b77519f3
push id463
push userbugzilla@standard8.plus.com
push dateTue, 24 Apr 2012 17:34:51 +0000
treeherdercomm-beta@e53588e8f7b0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8
bugs724257
Fix bug 724257 - Upload lightning in |make upload| if MOZ_CALENDAR is specified, for tryserver. r=Standard8 CLOSED TREE (push won't affect mail)
calendar/lightning/lightning-packager.mk
mail/build.mk
mozconfig-extra
--- a/calendar/lightning/lightning-packager.mk
+++ b/calendar/lightning/lightning-packager.mk
@@ -159,14 +159,19 @@ repack-process-extrafiles:
 
 recreate-platformini: $(LIBXUL_DIST)/bin/platform.ini
 
 UPLOAD_FILES = \
   lightning.xpi \
   gdata-provider.xpi \
   $(NULL)
 
-upload:
+hack_l10n_upload:
+	[ -f $(DIST)/$(UNIVERSAL_PATH)xpi-stage/lighting-all.xpi ] && \
+	  cp -RL $(DIST)/$(UNIVERSAL_PATH)xpi-stage/lightning-all.xpi $(DIST)/$(MOZ_PKG_PLATFORM)/lightning.xpi || true
+
+stage_upload:
 	$(NSINSTALL) -D $(DIST)/$(MOZ_PKG_PLATFORM)
-	cp -RL $(DIST)/$(UNIVERSAL_PATH)xpi-stage/lightning-all.xpi $(DIST)/$(MOZ_PKG_PLATFORM)/lightning.xpi
-	$(INSTALL) $(IFLAGS1) $(DIST)/xpi-stage/gdata-provider.xpi $(DIST)/$(MOZ_PKG_PLATFORM)
+	$(INSTALL) $(IFLAGS1) $(addprefix $(DIST)/xpi-stage/,$(UPLOAD_FILES)) $(DIST)/$(MOZ_PKG_PLATFORM)
+
+upload: stage_upload hack_l10n_upload
 	$(PYTHON) $(MOZILLA_DIR)/build/upload.py --base-path $(DIST) \
 	  $(addprefix $(DIST)/$(MOZ_PKG_PLATFORM)/,$(UPLOAD_FILES))
--- a/mail/build.mk
+++ b/mail/build.mk
@@ -86,14 +86,17 @@ package-compare:
 install::
 	@$(MAKE) -C mail/installer install
 
 source-package::
 	@$(MAKE) -C mail/installer source-package
 
 upload::
 	@$(MAKE) -C mail/installer upload
+ifdef MOZ_CALENDAR
+	@$(MAKE) -C calendar/lightning upload
+endif
 
 ifdef ENABLE_TESTS
 include $(srcdir)/mail/testsuite-targets.mk
 endif
 
 endif # COMM_BUILD
new file mode 100644
--- /dev/null
+++ b/mozconfig-extra
@@ -0,0 +1,1 @@
+ac_add_options --enable-calendar