Bug 463417 - import win32 nsinstall source into mozilla-central, build by default on win32; (Bv1-CC) Copy (the useful part of) it to comm-central, Copy bug 505574 too.
authorSerge Gautherie <sgautherie.bz@free.fr>
Wed, 24 Feb 2010 09:16:08 +0100
changeset 5008 af3aee23f01ee4ae97f7bb482cf2df7806fe505b
parent 5007 bb32a10b97f8a9595de5f72d4e9f61c2fdcfa202
child 5009 c1b38cb0b0792017703f24c8e24cc3a355dcbc4a
push idunknown
push userunknown
push dateunknown
bugs463417, 505574
Bug 463417 - import win32 nsinstall source into mozilla-central, build by default on win32; (Bv1-CC) Copy (the useful part of) it to comm-central, Copy bug 505574 too. r=Callek. Bug 505574 - OS/2 nsinstall.exe from moztools fails to install test directories recursively (after bug463417)
config/config.mk
config/rules.mk
configure.in
--- a/config/config.mk
+++ b/config/config.mk
@@ -751,25 +751,21 @@ ifndef NSDISTMODE
 NSDISTMODE=absolute_symlink
 endif
 PWD := $(shell pwd)
 endif
 
 ifdef NSINSTALL_BIN
 NSINSTALL	= $(CYGWIN_WRAPPER) $(NSINSTALL_BIN)
 else
-ifeq (WINNT,$(CROSS_COMPILE)$(OS_ARCH))
-NSINSTALL	= $(CYGWIN_WRAPPER) $(MOZ_TOOLS_DIR)/bin/nsinstall
-else
 ifeq (OS2,$(CROSS_COMPILE)$(OS_ARCH))
 NSINSTALL	= $(MOZ_TOOLS_DIR)/nsinstall
 else
 NSINSTALL	= $(CONFIG_TOOLS)/nsinstall
 endif # OS2
-endif # WINNT
 endif # NSINSTALL_BIN
 
 
 ifeq (,$(CROSS_COMPILE)$(filter-out WINNT OS2, $(OS_ARCH)))
 INSTALL		= $(NSINSTALL)
 else
 ifeq ($(NSDISTMODE),copy)
 # copy files, but preserve source mtime
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -122,18 +122,18 @@ ifdef ENABLE_TESTS
 ifdef XPCSHELL_TESTS
 ifndef MODULE
 $(error Must define MODULE when defining XPCSHELL_TESTS.)
 endif
 
 testxpcobjdir = $(MOZDEPTH)/_tests/xpcshell
 
 # Test file installation
-ifdef NSINSTALL_BIN
-# nsinstall in moztools can't recursively copy directories, so use nsinstall.py
+ifneq (,$(filter WINNT os2-emx,$(HOST_OS_ARCH)))
+# Windows and OS/2 nsinstall can't recursively copy directories, so use nsinstall.py
 TEST_INSTALLER = $(PYTHON) $(MOZILLA_SRCDIR)/config/nsinstall.py
 else
 TEST_INSTALLER = $(INSTALL)
 endif
 
 define _INSTALL_TESTS
 $(TEST_INSTALLER) $(wildcard $(srcdir)/$(dir)/*) $(testxpcobjdir)/$(MODULE)/$(dir)
 @echo "$(MODULE)/$(dir)" >> $(testxpcobjdir)/all-test-dirs.list
--- a/configure.in
+++ b/configure.in
@@ -856,22 +856,19 @@ else
     AC_MSG_RESULT([yes])    
 fi
 
 AC_PATH_PROGS(PYTHON, $PYTHON python2.5 python2.4 python)
 if test -z "$PYTHON"; then
     AC_MSG_ERROR([python was not found in \$PATH])
 fi
 
-AC_PATH_PROGS(NSINSTALL_BIN, nsinstall )
 if test -z "$COMPILE_ENVIRONMENT"; then
-if test -z "$NSINSTALL_BIN" || test "$NSINSTALL_BIN" = ":"; then
     NSINSTALL_BIN='$(PYTHON) $(MOZILLA_SRCDIR)/config/nsinstall.py'
 fi
-fi
 AC_SUBST(NSINSTALL_BIN)
 
 AC_PATH_PROG(DOXYGEN, doxygen, :)
 AC_PATH_PROG(WHOAMI, whoami, :)
 AC_PATH_PROG(AUTOCONF, autoconf, :)
 AC_PATH_PROG(UNZIP, unzip, :)
 AC_PATH_PROGS(ZIP, zip)
 if test -z "$ZIP" || test "$ZIP" = ":"; then