Bug 547599 - Port the comm-central "make package-compare", r=ted

--HG--
extra : rebase_source : 47c1811b5c3328c40c26143e930095c61d772682
This commit is contained in:
Phil Ringnalda 2010-02-21 21:55:51 -08:00
parent 3bbe800e32
commit 29d6c1315b
2 changed files with 26 additions and 5 deletions

View File

@ -55,6 +55,9 @@ installer:
package:
@$(MAKE) -C browser/installer
package-compare:
@$(MAKE) -C browser/installer package-compare
install::
@$(MAKE) -C browser/installer install

View File

@ -109,20 +109,38 @@ endif
include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
ifeq (bundle, $(MOZ_FS_LAYOUT))
DEFINES += \
-DBINPATH=$(_BINPATH) \
-DAPPNAME=$(_APPNAME) \
$(NULL)
BINPATH = $(_BINPATH)
DEFINES += -DAPPNAME=$(_APPNAME)
else
# Every other platform just winds up in dist/bin
DEFINES += -DBINPATH=bin
BINPATH = bin
endif
DEFINES += -DBINPATH=$(BINPATH)
libs::
$(MAKE) -C $(DEPTH)/browser/locales langpack PKG_LANGPACK_PATH=
UPLOAD_EXTRA_FILES += $(PKG_LANGPACK_BASENAME).xpi
ifeq (WINNT,$(OS_ARCH))
PKGCOMP_FIND_OPTS =
else
PKGCOMP_FIND_OPTS = -L
endif
ifeq (Darwin, $(OS_ARCH))
FINDPATH = $(_APPNAME)/Contents/MacOS
else
FINDPATH=bin
endif
package-compare:: $(MOZ_PKG_MANIFEST)
ifdef MOZ_PKG_MANIFEST_P
cd $(DIST); find $(PKGCOMP_FIND_OPTS) $(FINDPATH) -type f | sort > bin-list.txt
grep "^$(BINPATH)" $(MOZ_PKG_MANIFEST) | sed -e 's/^\///' | sort > $(DIST)/pack-list.txt
-diff -u $(DIST)/pack-list.txt $(DIST)/bin-list.txt
rm -f $(DIST)/pack-list.txt $(DIST)/bin-list.txt
endif
installer:: removed-files
ifdef INSTALLER_DIR
$(MAKE) -C $(INSTALLER_DIR)