fix maemo nightly repacks (mobile-browser portion). bug 538699, r=mfinkle,axel
authorAki Sasaki <asasaki@mozilla.com>
Mon, 25 Jan 2010 16:03:55 -0800
changeset 65990 a2518a4dd60615b58aaec92651267514ec8f2df7
parent 65989 713bb0d2a1dfd63913a16051f8d3bebef3110408
child 65991 f986975929096d92164ab7eb512473844c349424
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, axel
bugs538699
fix maemo nightly repacks (mobile-browser portion). bug 538699, r=mfinkle,axel
mobile/locales/Makefile.in
--- a/mobile/locales/Makefile.in
+++ b/mobile/locales/Makefile.in
@@ -59,17 +59,16 @@ SUBMAKEFILES += \
         $(NULL)
 
 MOZ_LANGPACK_EID=langpack-$(AB_CD)@firefox-mobile.mozilla.org
 PREF_JS_EXPORTS = $(firstword $(wildcard $(LOCALE_SRCDIR)/mobile-l10n.js) \
                        @srcdir@/en-US/mobile-l10n.js )
 
 # Shouldn't := DEB_BUILD_ARCH despite the $(shell ) as deb isn't everywhere
 DEB_BUILD_ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
-DEB_PKG_NAME = fennec_$(MOZ_APP_VERSION)_$(DEB_BUILD_ARCH).deb
 DATASTAGE = $(CURDIR)/data-stage
 
 SEARCH_PLUGINS = $(shell cat \
   $(firstword $(wildcard $(LOCALE_SRCDIR)/searchplugins/list.txt) \
        @srcdir@/en-US/searchplugins/list.txt ) )
 
 searchplugins::
 	@echo "$(AB_CD).jar:" > tmp-search.jar.mn
@@ -160,20 +159,35 @@ ident:
 	@printf "gecko_revision "
 	@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(GECKO_PLATFORM_INI_PATH) Build SourceStamp
 	@printf "fennec_revision "
 	@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App SourceStamp
 	@printf "buildid "
 	@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App BuildID
 
 # special targets just to do the debian single locale packages
+wget-DEB_PKG_NAME:
+ifndef WGET
+	$(error Wget not installed)
+endif
+ifndef EN_US_BINARY_URL
+	$(error EN_US_BINARY_URL not defined)
+endif
+	$(WGET) -q -O - $(EN_US_BINARY_URL)/deb_name.txt
+
 wget-deb:
 ifndef WGET
 	$(error Wget not installed)
 endif
+ifndef EN_US_BINARY_URL
+	$(error EN_US_BINARY_URL not defined)
+endif
+ifndef DEB_PKG_NAME
+	$(error DEB_PKG_NAME not defined)
+endif
 	$(WGET) -nv -N  $(EN_US_BINARY_URL)/$(DEB_PKG_NAME)
 
 $(DATASTAGE): $(DEB_PKG_NAME)
 	$(RM) -rf $(DATASTAGE)
 	$(NSINSTALL) -D $(DATASTAGE)
 	ar -p $(DEB_PKG_NAME) data.tar.gz | $(TAR) -zx -C $(DATASTAGE)
 	$(MAKE) clobber-zip AB_CD=en-US STAGEDIST=$(DATASTAGE)/$(installdir)
 # XXX hack around multi-locale deb right now
@@ -188,9 +202,12 @@ repackage-deb: $(DATASTAGE)
 	$(NSINSTALL) $(DEB_PKG_NAME) $(AB_CD)
 	cd $(DATASTAGE) && $(TAR) -zcf $(CURDIR)/$(AB_CD)/data.tar.gz *
 	$(MAKE) clobber-zip STAGEDIST=$(DATASTAGE)/$(installdir)
 	cd $(AB_CD) && ar -rv $(DEB_PKG_NAME) data.tar.gz
 	$(RM) $(AB_CD)/data.tar.gz
 
 deb-%: AB_CD=$*
 deb-%: clobber-% langpack-%
-	@$(MAKE) repackage-deb AB_CD=$(AB_CD)
+ifndef DEB_PKG_NAME
+	$(error DEB_PKG_NAME not defined)
+endif
+	@$(MAKE) repackage-deb AB_CD=$(AB_CD) DEB_PKG_NAME=$(DEB_PKG_NAME)