зеркало из https://github.com/mozilla/gecko-dev.git
bug 1280683, keep a pristine copy of en-US installer for repacks, r=glandium
Let's use a pristine unpackaged directory of the en-US package, and just rsync that to l10n-stage. That way, all repacks start off with a copy of en-US without modifications of the previous repack. Removing clobber-zip, that hasn't been used in ages, on the way. Moving the creation of the branding dir to the INNER_UNMAKE_PACKAGE, which is the command that needs it, to simplify rulesets. MozReview-Commit-ID: 8WJtaAqjmk1 --HG-- extra : rebase_source : 2c60a09bc09c72d5d8cf3058a66f806059c93751
This commit is contained in:
Родитель
1e0c740db2
Коммит
4458fe9cad
|
@ -87,8 +87,6 @@ $(list-json): $(call mkdir_deps,$(SEARCHPLUGINS_PATH)) $(if $(IS_LANGUAGE_REPACK
|
|||
$(call py_action,generate_searchjson,$(srcdir)/search/list.json $(AB_CD) $(list-json))
|
||||
searchplugins:: $(list-json)
|
||||
|
||||
$(STAGEDIST): $(DIST)/branding
|
||||
|
||||
$(DIST)/branding:
|
||||
$(NSINSTALL) -D $@
|
||||
|
||||
|
@ -121,7 +119,7 @@ repackage-win32-installer: $(call ESCAPE_WILDCARD,$(WIN32_INSTALLER_IN)) $(SUBMA
|
|||
$(topsrcdir)/browser/installer/windows/app.tag'
|
||||
|
||||
ifeq (WINNT,$(OS_ARCH))
|
||||
repackage-win32-installer-%: $(STAGEDIST)
|
||||
repackage-win32-installer-%: unpack
|
||||
@$(MAKE) repackage-win32-installer AB_CD=$* WIN32_INSTALLER_IN='$(WIN32_INSTALLER_IN)'
|
||||
|
||||
repackage-zip-%: repackage-win32-installer-%
|
||||
|
@ -130,16 +128,6 @@ repackage-win32-installer-%: ;
|
|||
endif
|
||||
|
||||
|
||||
clobber-zip:
|
||||
$(RM) $(STAGEDIST)/chrome/$(AB_CD).jar \
|
||||
$(STAGEDIST)/chrome/$(AB_CD).manifest \
|
||||
$(STAGEDIST)/$(PREF_DIR)/firefox-l10n.js
|
||||
$(RM) -rf $(STAGEDIST)/dictionaries \
|
||||
$(STAGEDIST)/hyphenation \
|
||||
$(STAGEDIST)/defaults/profile \
|
||||
$(STAGEDIST)/chrome/$(AB_CD)
|
||||
|
||||
|
||||
langpack: langpack-$(AB_CD)
|
||||
|
||||
# This is a generic target that will make a langpack, repack ZIP (+tarball)
|
||||
|
|
|
@ -20,15 +20,6 @@ include $(topsrcdir)/config/rules.mk
|
|||
|
||||
include $(topsrcdir)/toolkit/locales/l10n.mk
|
||||
|
||||
clobber-zip:
|
||||
$(RM) $(STAGEDIST)/chrome/$(AB_CD).jar \
|
||||
$(STAGEDIST)/chrome/$(AB_CD).manifest \
|
||||
$(STAGEDIST)/defaults/pref/mobile-l10n.js
|
||||
$(RM) -r $(STAGEDIST)/dictionaries \
|
||||
$(STAGEDIST)/hyphenation \
|
||||
$(STAGEDIST)/defaults/profile \
|
||||
$(STAGEDIST)/chrome/$(AB_CD)
|
||||
|
||||
# need to kill stage for repacks for now due to the library moves
|
||||
# in PACKAGE and UNPACKAGE
|
||||
# also clean up potential left-overs of multi-locale builds, notably
|
||||
|
|
|
@ -8,10 +8,6 @@
|
|||
# of Mozilla applications.
|
||||
# This makefile should be included, and then assumes that the including
|
||||
# makefile defines the following targets:
|
||||
# clobber-zip
|
||||
# This target should remove all language dependent-files from $(STAGEDIST),
|
||||
# depending on $(AB_CD) set to the locale code.
|
||||
# $(AB_CD) will be en-US on the initial unpacking of the package
|
||||
# libs-%
|
||||
# This target should call into the various libs targets that this
|
||||
# application depends on.
|
||||
|
@ -72,29 +68,36 @@ STAGEDIST = $(ABS_DIST)/l10n-stage/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources
|
|||
else
|
||||
STAGEDIST = $(ABS_DIST)/l10n-stage/$(MOZ_PKG_DIR)
|
||||
endif
|
||||
UNPACKED_INSTALLER = $(ABS_DIST)/unpacked-installer
|
||||
|
||||
include $(MOZILLA_DIR)/toolkit/mozapps/installer/signing.mk
|
||||
include $(MOZILLA_DIR)/toolkit/mozapps/installer/packager.mk
|
||||
|
||||
PACKAGE_BASE_DIR = $(ABS_DIST)/l10n-stage
|
||||
|
||||
$(STAGEDIST): AB_CD:=en-US
|
||||
$(STAGEDIST): UNPACKAGE=$(call ESCAPE_WILDCARD,$(ZIP_IN))
|
||||
$(STAGEDIST): $(call ESCAPE_WILDCARD,$(ZIP_IN))
|
||||
$(UNPACKED_INSTALLER): AB_CD:=en-US
|
||||
$(UNPACKED_INSTALLER): UNPACKAGE=$(call ESCAPE_WILDCARD,$(ZIP_IN))
|
||||
$(UNPACKED_INSTALLER): $(call ESCAPE_WILDCARD,$(ZIP_IN))
|
||||
# only mac needs to remove the parent of STAGEDIST...
|
||||
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
||||
$(RM) -r -v $(DIST)/l10n-stage
|
||||
$(RM) -r -v $(UNPACKED_INSTALLER)
|
||||
else
|
||||
# ... and windows doesn't like removing STAGEDIST itself, remove all children
|
||||
find $(STAGEDIST) -maxdepth 1 -print0 | xargs -0 $(RM) -r
|
||||
find $(UNPACKED_INSTALLER) -maxdepth 1 -print0 | xargs -0 $(RM) -r
|
||||
endif
|
||||
$(NSINSTALL) -D $(DIST)/l10n-stage
|
||||
cd $(DIST)/l10n-stage && \
|
||||
$(NSINSTALL) -D $(UNPACKED_INSTALLER)
|
||||
cd $(UNPACKED_INSTALLER) && \
|
||||
$(INNER_UNMAKE_PACKAGE)
|
||||
|
||||
|
||||
unpack: $(STAGEDIST)
|
||||
@echo done unpacking
|
||||
unpack: $(UNPACKED_INSTALLER)
|
||||
ifeq ($(OS_ARCH), WINNT)
|
||||
$(RM) -r -f $(ABS_DIST)/l10n-stage
|
||||
$(NSINSTALL) -D $(ABS_DIST)/l10n-stage
|
||||
$(call copy_dir, $(UNPACKED_INSTALLER), $(ABS_DIST)/l10n-stage)
|
||||
else
|
||||
rsync -rav --delete $(UNPACKED_INSTALLER)/ $(ABS_DIST)/l10n-stage
|
||||
endif
|
||||
|
||||
# The path to the object dir for the mozilla-central build system,
|
||||
# may be overridden if necessary.
|
||||
|
@ -152,7 +155,7 @@ endif
|
|||
mv -f '$(DIST)/l10n-stage/$(PACKAGE)' '$(ZIP_OUT)'
|
||||
if test -f '$(DIST)/l10n-stage/$(PACKAGE).asc'; then mv -f '$(DIST)/l10n-stage/$(PACKAGE).asc' '$(ZIP_OUT).asc'; fi
|
||||
|
||||
repackage-zip-%: $(STAGEDIST)
|
||||
repackage-zip-%: unpack
|
||||
@$(MAKE) repackage-zip AB_CD=$* ZIP_IN='$(ZIP_IN)'
|
||||
|
||||
APP_DEFINES = $(firstword $(wildcard $(LOCALE_SRCDIR)/defines.inc) \
|
||||
|
|
|
@ -252,12 +252,18 @@ ifeq ($(MOZ_PKG_FORMAT),DMG)
|
|||
mkdir -p $(ABS_DIST)/unpack.tmp; \
|
||||
$(_ABS_MOZSRCDIR)/build/package/mac_osx/unpack-diskimage $(UNPACKAGE) /tmp/$(MOZ_PKG_APPNAME)-unpack $(ABS_DIST)/unpack.tmp; \
|
||||
rsync -a '$(ABS_DIST)/unpack.tmp/$(_APPNAME)' $(MOZ_PKG_DIR); \
|
||||
test -n '$(MOZ_PKG_MAC_DSSTORE)' && \
|
||||
if test -n '$(MOZ_PKG_MAC_DSSTORE)' ; then \
|
||||
mkdir -p '$(dir $(MOZ_PKG_MAC_DSSTORE))'; \
|
||||
rsync -a '$(ABS_DIST)/unpack.tmp/.DS_Store' '$(MOZ_PKG_MAC_DSSTORE)'; \
|
||||
test -n '$(MOZ_PKG_MAC_BACKGROUND)' && \
|
||||
fi; \
|
||||
if test -n '$(MOZ_PKG_MAC_BACKGROUND)' ; then \
|
||||
mkdir -p '$(dir $(MOZ_PKG_MAC_BACKGROUND))'; \
|
||||
rsync -a '$(ABS_DIST)/unpack.tmp/.background/$(notdir $(MOZ_PKG_MAC_BACKGROUND))' '$(MOZ_PKG_MAC_BACKGROUND)'; \
|
||||
test -n '$(MOZ_PKG_MAC_ICON)' && \
|
||||
fi; \
|
||||
if test -n '$(MOZ_PKG_MAC_ICON)' ; then \
|
||||
mkdir -p '$(dir $(MOZ_PKG_MAC_ICON))'; \
|
||||
rsync -a '$(ABS_DIST)/unpack.tmp/.VolumeIcon.icns' '$(MOZ_PKG_MAC_ICON)'; \
|
||||
fi; \
|
||||
rm -rf $(ABS_DIST)/unpack.tmp; \
|
||||
if test -n '$(MOZ_PKG_MAC_RSRC)' ; then \
|
||||
cp $(UNPACKAGE) $(MOZ_PKG_APPNAME).tmp.dmg && \
|
||||
|
|
Загрузка…
Ссылка в новой задаче