1 --- mozilla/toolkit/mozapps/installer/packager.mk.org 2010-01-21 21:10:00.234466295 +0100
2 +++ mozilla/toolkit/mozapps/installer/packager.mk 2010-01-21 21:10:29.847369216 +0100
4 # NOTE: this must be a tar now that dist links into the tree so that we
5 # do not strip the binaries actually in the tree.
6 @echo "Creating package directory..."
7 - @mkdir $(DIST)/$(MOZ_PKG_DIR)
8 + @mkdir -p $(DESTDIR)/$(MOZ_PKG_APPDIR)
11 $(call PACKAGER_COPY, "$(call core_abspath,$(DIST))",\
12 - "$(call core_abspath,$(DIST)/$(MOZ_PKG_DIR))", \
13 + "$(call core_abspath,$(DESTDIR)/$(MOZ_PKG_APPDIR))", \
14 "$(MOZ_PKG_MANIFEST)", "$(PKGCP_OS)", 1, 0, 1)
15 - $(PERL) $(MOZILLA_DIR)/xpinstall/packager/xptlink.pl -s $(DIST) -d $(DIST)/xpt -f $(DIST)/$(MOZ_PKG_DIR)/$(_BINPATH)/components -v -x "$(XPIDL_LINK)"
16 + $(PERL) $(MOZILLA_DIR)/xpinstall/packager/xptlink.pl -s $(DIST) -d $(DIST)/xpt -f $(DESTDIR)/$(MOZ_PKG_APPDIR)/$(_BINPATH)/components -v -x "$(XPIDL_LINK)"
17 else # !MOZ_PKG_MANIFEST
18 ifeq ($(MOZ_PKG_FORMAT),DMG)
19 # If UNIVERSAL_BINARY, the package will be made from an already-prepared
22 @cd $(DIST) && rsync -auv --copy-unsafe-links $(_APPNAME) $(MOZ_PKG_DIR)
24 - @cd $(DIST)/bin && tar $(TAR_CREATE_FLAGS) - * | (cd ../$(MOZ_PKG_DIR); tar -xf -)
25 + cp -rfLp $(DIST)/bin/* $(DESTDIR)$(MOZ_PKG_APPDIR)
29 - @cd $(DIST)/bin && tar $(TAR_CREATE_FLAGS) - * | (cd ../$(MOZ_PKG_DIR); tar -xf -)
30 + cp -rfLp $(DIST)/bin/* $(DESTDIR)$(MOZ_PKG_APPDIR)
31 @echo "Linking XPT files..."
33 @$(NSINSTALL) -D $(DIST)/xpt
34 --- mozilla/browser/app/Makefile.in 2008-06-22 22:54:03.000000000 +0200
35 +++ mozilla/browser/app/Makefile.in 2008-06-23 10:34:59.000000000 +0200
37 rsync -a $(DIST)/bin/ $(DIST)/$(APP_NAME).app/Contents/$(APPFILES)
38 $(RM) $(DIST)/$(APP_NAME).app/Contents/$(APPFILES)/mangle $(DIST)/$(APP_NAME).app/Contents/$(APPFILES)/shlibsign
40 - cp $(LIBXUL_DIST)/bin/$(XR_STUB_NAME) $(DIST)/$(APP_NAME).app/Contents/MacOS/firefox-bin
41 + cp $(LIBXUL_DIST)/bin/$(XR_STUB_NAME) $(DIST)/$(APP_NAME).app/Contents/MacOS/$(MOZ_APP_NAME)-bin
43 rm -f $(DIST)/$(APP_NAME).app/Contents/MacOS/$(PROGRAM)
44 rsync -aL $(PROGRAM) $(DIST)/$(APP_NAME).app/Contents/MacOS
49 - cp $(LIBXUL_DIST)/bin/$(XULRUNNER_STUB_NAME)$(BIN_SUFFIX) $(DIST)/bin/firefox$(BIN_SUFFIX)
50 + cp $(LIBXUL_DIST)/bin/$(XULRUNNER_STUB_NAME)$(BIN_SUFFIX) $(DIST)/bin/$(MOZ_APP_NAME)$(BIN_SUFFIX)
55 rsync -a --copy-unsafe-links $(LIBXUL_DIST)/XUL.framework $(DIST)/$(APP_NAME).app/Contents/Frameworks
57 $(NSINSTALL) -D $(DIST)/bin/xulrunner
58 - (cd $(LIBXUL_SDK)/bin && tar $(TAR_CREATE_FLAGS) - .) | (cd $(DIST)/bin/xulrunner && tar -xf -)
59 + cp -rfRp $(LIBXUL_SDK)/bin $(DIST)/bin/xulrunner
61 endif # SKIP_COPY_XULRUNNER