From 808a0fbbce5e6ea84e41a6af0c0859152082eb28 Mon Sep 17 00:00:00 2001 From: Rail Aliiev Date: Tue, 29 Mar 2011 15:04:02 -0400 Subject: [PATCH] bug 313956: expand installer .exe contents to make complete mar. r=ted. --HG-- extra : rebase_source : 1a23afed1769531afe0b2f7d307fe5709eeed99b --- toolkit/locales/l10n.mk | 12 +++++++++--- toolkit/mozapps/installer/packager.mk | 2 +- tools/update-packaging/Makefile.in | 18 ++++++++++++++++-- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/toolkit/locales/l10n.mk b/toolkit/locales/l10n.mk index 883915793b06..3acd247370c4 100644 --- a/toolkit/locales/l10n.mk +++ b/toolkit/locales/l10n.mk @@ -63,8 +63,6 @@ run_for_effects := $(shell if test ! -d $(DIST); then $(NSINSTALL) -D $(DIST); fi) -_ABS_DIST := $(shell cd $(DIST) && pwd) - # This makefile uses variable overrides from the libs-% target to # build non-default locales to non-default dist/ locations. Be aware! @@ -130,6 +128,14 @@ unpack: $(STAGEDIST) # may be overridden if necessary. MOZDEPTH ?= $(DEPTH) +ifdef MOZ_MAKE_COMPLETE_MAR +MAKE_COMPLETE_MAR = 1 +ifeq ($(OS_ARCH), WINNT) +ifneq ($(MOZ_PKG_FORMAT), SFX7Z) +MAKE_COMPLETE_MAR = +endif +endif +endif repackage-zip: UNPACKAGE="$(ZIP_IN)" repackage-zip: libs-$(AB_CD) # Adjust jar logs with the new locale (can't use sed -i because of bug 373784) @@ -153,7 +159,7 @@ ifeq (WINCE,$(OS_ARCH)) cd $(DIST)/l10n-stage; \ $(MAKE_CAB) endif -ifdef MOZ_MAKE_COMPLETE_MAR +ifdef MAKE_COMPLETE_MAR $(MAKE) -C $(MOZDEPTH)/tools/update-packaging full-update AB_CD=$(AB_CD) \ MOZ_PKG_PRETTYNAMES=$(MOZ_PKG_PRETTYNAMES) \ PACKAGE_BASE_DIR="$(_ABS_DIST)/l10n-stage" \ diff --git a/toolkit/mozapps/installer/packager.mk b/toolkit/mozapps/installer/packager.mk index 8959457b767f..b9f3559e03fb 100644 --- a/toolkit/mozapps/installer/packager.mk +++ b/toolkit/mozapps/installer/packager.mk @@ -148,7 +148,7 @@ INNER_MAKE_PACKAGE = rm -f app.7z && \ mv core $(MOZ_PKG_DIR) && \ cat $(SFX_HEADER) app.7z > $(PACKAGE) && \ chmod 0755 $(PACKAGE) -INNER_UNMAKE_PACKAGE = $(CYGWIN_WRAPPER) 7z x $(UNPACKAGE) && \ +INNER_UNMAKE_PACKAGE = $(CYGWIN_WRAPPER) 7z x $(UNPACKAGE) core && \ mv core $(MOZ_PKG_DIR) endif ifeq ($(MOZ_PKG_FORMAT),APK) diff --git a/tools/update-packaging/Makefile.in b/tools/update-packaging/Makefile.in index d9e760fd9d83..35802d6a4199 100644 --- a/tools/update-packaging/Makefile.in +++ b/tools/update-packaging/Makefile.in @@ -44,8 +44,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk - # input location for the build, usually $(DIST) # set this to $(DIST)/l10n-stage per override for L10n builds PACKAGE_BASE_DIR = $(DIST) @@ -72,7 +70,22 @@ MBSDIFF_BIN = $(LIBXUL_DIST)/host/bin/mbsdiff$(HOST_BIN_SUFFIX) full-update:: complete-patch +ifeq ($(OS_TARGET), WINNT) +MOZ_PKG_FORMAT := SFX7Z +UNPACKAGE = "$(subst $(DIST),$(_ABS_DIST),$(INSTALLER_PACKAGE))" +ifdef AB_CD +ifdef MOZ_PKG_PRETTYNAMES +UNPACKAGE = "$(PACKAGE_BASE_DIR)/$(PACKAGE)" +endif +endif +endif + complete-patch:: +ifeq ($(OS_TARGET), WINNT) + test -f $(UNPACKAGE) + $(RM) -rf "$(PACKAGE_DIR)" + cd $(PACKAGE_BASE_DIR) && $(INNER_UNMAKE_PACKAGE) +endif mkdir -p $(STAGE_DIR) MAR=$(MAR_BIN) \ $(srcdir)/make_full_update.sh \ @@ -89,3 +102,4 @@ partial-patch:: "$(DST_BUILD)" include $(topsrcdir)/config/rules.mk +include $(topsrcdir)/toolkit/mozapps/installer/packager.mk -- 2.11.4.GIT