Fix bug 456923 - add a build target to compare bin/ and the package list (Sunbird). r=ause
authorStefan Sitter <ssitter@gmail.com>
Sun, 05 Oct 2008 18:23:37 +0200
changeset 522 b7a5744f2be77e944e6892c4cd2f80c3a870c4b3
parent 521 144208ac1eee4a04e54c925c6e64ba00818867bd
child 523 0a454b8f8da7ebce3f96e8965a8755e4991d062b
push id460
push usermschroeder@mozilla.x-home.org
push dateSun, 05 Oct 2008 16:24:04 +0000
treeherdercomm-central@b7a5744f2be7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersause
bugs456923
Fix bug 456923 - add a build target to compare bin/ and the package list (Sunbird). r=ause
calendar/build.mk
calendar/installer/Makefile.in
--- a/calendar/build.mk
+++ b/calendar/build.mk
@@ -66,8 +66,11 @@ endif
 
 endif # COMM_BUILD
 
 installer:
 	@$(MAKE) -C calendar/installer installer
 
 package:
 	@$(MAKE) -C calendar/installer
+
+package-compare:
+	@$(MAKE) -C calendar/installer package-compare
--- a/calendar/installer/Makefile.in
+++ b/calendar/installer/Makefile.in
@@ -90,16 +90,29 @@ ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_
 MOZ_PKG_MAC_DSSTORE=branding/dsstore
 MOZ_PKG_MAC_BACKGROUND=branding/background.png
 MOZ_PKG_MAC_ICON=branding/disk.icns
 MOZ_PKG_MAC_RSRC=branding/license.r
 endif
 
 include $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/packager.mk
 
+ifeq (WINNT,$(OS_ARCH))
+PKGCOMP_FIND_OPTS = 
+else
+PKGCOMP_FIND_OPTS = -L
+endif
+
+package-compare::
+ifdef MOZ_PKG_MANIFEST_P
+	cd $(DIST); find $(PKGCOMP_FIND_OPTS) bin -type f | sort > bin-list.txt
+	grep "^bin" $(MOZ_PKG_MANIFEST) | sed -e 's/\\/\//g' | sort > $(DIST)/pack-list.txt
+	-diff -u $(DIST)/pack-list.txt $(DIST)/bin-list.txt
+endif
+
 installer: removed-files
 ifdef INSTALLER_DIR
 	$(MAKE) -C $(INSTALLER_DIR)
 endif
 
 make-package : removed-files-checked
 
 removed-files-checked : removed-files stage-package