mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 11:38:16 +00:00
Bug 680636 - Execute nsinstall.py as Python module under PyMake; r=khuey
This commit is contained in:
parent
24449bb83a
commit
0da575fa20
@ -672,6 +672,9 @@ endif
|
||||
PWD := $(CURDIR)
|
||||
endif
|
||||
|
||||
ifdef .PYMAKE
|
||||
NSINSTALL = %nsinstall nsinstall
|
||||
else
|
||||
ifdef NSINSTALL_BIN
|
||||
NSINSTALL = $(NSINSTALL_BIN)
|
||||
else
|
||||
@ -681,7 +684,7 @@ else
|
||||
NSINSTALL = $(CONFIG_TOOLS)/nsinstall$(HOST_BIN_SUFFIX)
|
||||
endif # OS2
|
||||
endif # NSINSTALL_BIN
|
||||
|
||||
endif # .PYMAKE
|
||||
|
||||
ifeq (,$(CROSS_COMPILE)$(filter-out WINNT OS2, $(OS_ARCH)))
|
||||
INSTALL = $(NSINSTALL)
|
||||
|
@ -101,7 +101,7 @@ def nsinstall(argv):
|
||||
sys.exit(1)
|
||||
if options.m:
|
||||
os.chmod(args[0], options.m)
|
||||
sys.exit()
|
||||
return 0
|
||||
if options.m:
|
||||
os.makedirs(args[0], options.m)
|
||||
else:
|
||||
|
@ -672,6 +672,9 @@ endif
|
||||
PWD := $(CURDIR)
|
||||
endif
|
||||
|
||||
ifdef .PYMAKE
|
||||
NSINSTALL = %nsinstall nsinstall
|
||||
else
|
||||
ifdef NSINSTALL_BIN
|
||||
NSINSTALL = $(NSINSTALL_BIN)
|
||||
else
|
||||
@ -681,7 +684,7 @@ else
|
||||
NSINSTALL = $(CONFIG_TOOLS)/nsinstall$(HOST_BIN_SUFFIX)
|
||||
endif # OS2
|
||||
endif # NSINSTALL_BIN
|
||||
|
||||
endif # .PYMAKE
|
||||
|
||||
ifeq (,$(CROSS_COMPILE)$(filter-out WINNT OS2, $(OS_ARCH)))
|
||||
INSTALL = $(NSINSTALL)
|
||||
|
@ -101,7 +101,7 @@ def nsinstall(argv):
|
||||
sys.exit(1)
|
||||
if options.m:
|
||||
os.chmod(args[0], options.m)
|
||||
sys.exit()
|
||||
return 0
|
||||
if options.m:
|
||||
os.makedirs(args[0], options.m)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user