]>
Commit | Line | Data |
---|---|---|
515af50e AM |
1 | --- mozilla/toolkit/mozapps/installer/packager.mk.org 2010-01-21 13:25:04.436839154 +0100 |
2 | +++ mozilla/toolkit/mozapps/installer/packager.mk 2010-01-21 13:32:14.673453287 +0100 | |
3 | @@ -362,11 +362,11 @@ | |
c1e35a39 ER |
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..." | |
9ff42c69 | 7 | - @mkdir $(DIST)/$(MOZ_PKG_DIR) |
515af50e | 8 | + @mkdir $(DESTDIR)/$(MOZ_PKG_DIR) |
c1e35a39 ER |
9 | ifdef MOZ_PKG_MANIFEST |
10 | $(RM) -rf $(DIST)/xpt | |
515af50e AM |
11 | $(call PACKAGER_COPY, "$(call core_abspath,$(DIST))",\ |
12 | - "$(call core_abspath,$(DIST)/$(MOZ_PKG_DIR))", \ | |
13 | + "$(call core_abspath,$(DESTDIR)/$(MOZ_PKG_DIR))", \ | |
9ca978a5 | 14 | "$(MOZ_PKG_MANIFEST)", "$(PKGCP_OS)", 1, 0, 1) |
515af50e | 15 | $(PERL) $(MOZILLA_DIR)/xpinstall/packager/xptlink.pl -s $(DIST) -d $(DIST)/xpt -f $(DIST)/$(MOZ_PKG_DIR)/$(_BINPATH)/components -v -x "$(XPIDL_LINK)" |
9ca978a5 | 16 | else # !MOZ_PKG_MANIFEST |
515af50e | 17 | @@ -377,11 +377,11 @@ |
9ff42c69 | 18 | ifndef STAGE_SDK |
19 | @cd $(DIST) && rsync -auv --copy-unsafe-links $(_APPNAME) $(MOZ_PKG_DIR) | |
20 | else | |
21 | - @cd $(DIST)/bin && tar $(TAR_CREATE_FLAGS) - * | (cd ../$(MOZ_PKG_DIR); tar -xf -) | |
22 | + cp -rfLp $(DIST)/bin/* $(DESTDIR)$(MOZ_PKG_APPDIR) | |
b721e216 | 23 | endif |
c1e35a39 ER |
24 | endif |
25 | else | |
9ff42c69 | 26 | - @cd $(DIST)/bin && tar $(TAR_CREATE_FLAGS) - * | (cd ../$(MOZ_PKG_DIR); tar -xf -) |
c1e35a39 | 27 | + cp -rfLp $(DIST)/bin/* $(DESTDIR)$(MOZ_PKG_APPDIR) |
515af50e AM |
28 | @echo "Linking XPT files..." |
29 | @rm -rf $(DIST)/xpt | |
30 | @$(NSINSTALL) -D $(DIST)/xpt | |
31 | @@ -450,24 +450,33 @@ | |
b721e216 | 32 | $(error "make install" is not supported on this platform. Use "make package" instead.) |
33 | endif | |
34 | $(NSINSTALL) -D $(DESTDIR)$(installdir) | |
9ff42c69 | 35 | - (cd $(DIST)/$(MOZ_PKG_DIR) && tar $(TAR_CREATE_FLAGS) - .) | \ |
b721e216 | 36 | - (cd $(DESTDIR)$(installdir) && tar -xf -) |
37 | $(NSINSTALL) -D $(DESTDIR)$(bindir) | |
38 | $(RM) -f $(DESTDIR)$(bindir)/$(MOZ_APP_NAME) | |
39 | - ln -s $(installdir)/$(MOZ_APP_NAME) $(DESTDIR)$(bindir) | |
40 | + ln -s $(installdir)/$(MOZ_APP_NAME)-bin $(DESTDIR)$(bindir)/$(MOZ_APP_NAME) | |
41 | + $(RM) -f $(DESTDIR)$(bindir)/regxpcom | |
42 | + ln -s $(installdir)/regxpcom $(DESTDIR)$(bindir)/regxpcom | |
43 | + $(RM) -f $(DESTDIR)$(bindir)/xpcshell | |
44 | + ln -s $(installdir)/xpcshell $(DESTDIR)$(bindir)/xpcshell | |
45 | + $(RM) -f $(DESTDIR)$(bindir)/xpidl | |
46 | + ln -s $(installdir)/xpidl $(DESTDIR)$(bindir)/xpidl | |
47 | + $(RM) -f $(DESTDIR)$(bindir)/xpt_dump | |
48 | + ln -s $(installdir)/xpt_dump $(DESTDIR)$(bindir)/xpt_dump | |
49 | + $(RM) -f $(DESTDIR)$(bindir)/xpt_link | |
50 | + ln -s $(installdir)/xpt_link $(DESTDIR)$(bindir)/xpt_link | |
51 | ifdef INSTALL_SDK # Here comes the hard part | |
515af50e AM |
52 | $(NSINSTALL) -D $(DESTDIR)$(includedir) |
53 | - (cd $(DIST)/include && tar $(TAR_CREATE_FLAGS) - .) | \ | |
54 | - (cd $(DESTDIR)$(includedir) && tar -xf -) | |
b721e216 | 55 | + cp -rfLp $(DIST)/include/* $(DESTDIR)$(includedir) |
515af50e | 56 | $(NSINSTALL) -D $(DESTDIR)$(idldir) |
b721e216 | 57 | - (cd $(DIST)/idl && tar $(TAR_CREATE_FLAGS) - .) | \ |
515af50e | 58 | - (cd $(DESTDIR)$(idldir) && tar -xf -) |
b721e216 | 59 | + cp -rfLp $(DIST)/idl/* $(DESTDIR)$(idldir) |
60 | # SDK directory is the libs + a bunch of symlinks | |
61 | $(NSINSTALL) -D $(DESTDIR)$(sdkdir)/sdk/lib | |
515af50e AM |
62 | if test -f $(DIST)/include/xpcom-config.h; then \ |
63 | $(SYSINSTALL) $(IFLAGS1) $(DIST)/include/xpcom-config.h $(DESTDIR)$(sdkdir); \ | |
b721e216 | 64 | fi |
65 | - (cd $(DIST)/sdk/lib && tar $(TAR_CREATE_FLAGS) - .) | (cd $(DESTDIR)$(sdkdir)/sdk/lib && tar -xf -) | |
66 | + cp -rfLp $(DIST)/sdk/lib/*.a $(DESTDIR)$(sdkdir)/sdk/lib | |
67 | + ln -s $(installdir)/libmozjs.so $(DESTDIR)$(sdkdir)/sdk/lib/libmozjs.so | |
68 | + ln -s $(installdir)/libxpcom.so $(DESTDIR)$(sdkdir)/sdk/lib/libxpcom.so | |
69 | + ln -s $(installdir)/libxul.so $(DESTDIR)$(sdkdir)/sdk/lib/libxul.so | |
515af50e | 70 | $(RM) -f $(DESTDIR)$(sdkdir)/lib $(DESTDIR)$(sdkdir)/bin $(DESTDIR)$(sdkdir)/include $(DESTDIR)$(sdkdir)/include $(DESTDIR)$(sdkdir)/sdk/idl $(DESTDIR)$(sdkdir)/idl |
b721e216 | 71 | ln -s $(sdkdir)/sdk/lib $(DESTDIR)$(sdkdir)/lib |
72 | ln -s $(installdir) $(DESTDIR)$(sdkdir)/bin |