Bug 660427 - Update (re)packaging code to deal with extracting the installer vs just the zip. rs=Callek (via email) for bringing this change onto the SeaMonkey-specific relbranch and moving tags to that changeset
--- a/toolkit/mozapps/installer/packager.mk
+++ b/toolkit/mozapps/installer/packager.mk
@@ -148,17 +148,17 @@ INNER_MAKE_PACKAGE = rm -f app.7z && \
-m2=LZMA:d19 -m3=LZMA:d19 -mb0:1 -mb0s1:2 -mb0s2:3 && \
mv core $(MOZ_PKG_DIR) && \
(if [ -d optional ]; then mv optional/* $(MOZ_PKG_DIR); rm -rf optional; fi;) && \
cat $(SFX_HEADER) app.7z > $(PACKAGE) && \
chmod 0755 $(PACKAGE)
INNER_UNMAKE_PACKAGE = $(CYGWIN_WRAPPER) 7z x $(UNPACKAGE) && \
rm -f ../optional_file_list.txt && \
mv core $(MOZ_PKG_DIR) && \
- (if [ -d optional ]; then ls -1 optional > ../optional_file_list.txt; mv optional/* $(MOZ_PKG_DIR); fi;)
+ (if [ -d optional ]; then ls -1 optional > ../optional_file_list.txt; cp -rp optional/* $(MOZ_PKG_DIR); rm -rf optional; fi;)
endif
ifeq ($(MOZ_PKG_FORMAT),APK)
# we have custom stuff for Android
MOZ_OMNIJAR =
JAVA_CLASSPATH = $(ANDROID_SDK)/android.jar
include $(topsrcdir)/config/android-common.mk