Bug 501794 download the windows installers only if a product declares RETRIEVE_WINDOWS_INSTALLER=1 in their /locales/Makefile.in file - r=ted

This commit is contained in:
Armen Zambrano Gasparnian 2009-10-05 17:04:18 -04:00
parent 87720603ee
commit 74f65e7c2d
2 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,7 @@ PWD := $(CURDIR)
# work in that case.
ZIP_IN ?= $(_ABS_DIST)/$(PACKAGE)
WIN32_INSTALLER_IN ?= $(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe
RETRIEVE_WINDOWS_INSTALLER = 1
MOZ_LANGPACK_EID=langpack-$(AB_CD)@firefox.mozilla.org

View File

@ -190,11 +190,13 @@ ifndef WGET
endif
(cd $(_ABS_DIST) && $(WGET) -nv -N $(EN_US_BINARY_URL)/$(PACKAGE))
@echo "Downloaded $(EN_US_BINARY_URL)/$(PACKAGE) to $(_ABS_DIST)/$(PACKAGE)"
ifdef RETRIEVE_WINDOWS_INSTALLER
ifeq ($(OS_ARCH), WINNT)
$(NSINSTALL) -D $(_ABS_DIST)/$(PKG_INST_PATH)
(cd $(_ABS_DIST)/$(PKG_INST_PATH) && $(WGET) -nv -N "$(EN_US_BINARY_URL)/$(PKG_PATH)$(PKG_INST_BASENAME).exe")
@echo "Downloaded $(EN_US_BINARY_URL)/$(PKG_PATH)$(PKG_INST_BASENAME).exe to $(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe"
endif
endif
generate-snippet-%:
$(PYTHON) $(topsrcdir)/tools/update-packaging/generatesnippet.py \