mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 04:58:00 +00:00
Bug 926007 - Backout changeset 0887088eee1a (bug 842341) because it's only used to support msys-paths with gnu make on windows, which is an unsupported setup; r=gps
This commit is contained in:
parent
2fa8e3c610
commit
8db4585bcd
@ -4,8 +4,6 @@
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
export PYMAKE = $(.PYMAKE)
|
||||
|
||||
libs::
|
||||
$(PYTHON) $(srcdir)/copy_source.py $(topsrcdir) $(srcdir)/source/lib $(FINAL_TARGET)/modules/commonjs >copy_source.mk
|
||||
$(MAKE) -f copy_source.mk libs
|
||||
|
@ -3,31 +3,14 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import os
|
||||
import posixpath
|
||||
import sys
|
||||
|
||||
|
||||
def normpath(path):
|
||||
"""Ensure UNIX style paths are used with GNU make on Windows.
|
||||
|
||||
This can be removed once we no longer support GNU make on Windows (bug
|
||||
828317).
|
||||
"""
|
||||
if os.environ.get('PYMAKE') or os.name not in ('nt', 'ce'):
|
||||
return path
|
||||
|
||||
if len(path) > 2 and path[1] == ':':
|
||||
path = '/' + path[0] + path[2:]
|
||||
|
||||
return posixpath.normpath(path)
|
||||
|
||||
|
||||
if len(sys.argv) != 4:
|
||||
print >> sys.stderr, "Usage: copy_source.py " \
|
||||
"<topsrcdir> <source directory> <target directory>"
|
||||
sys.exit(1)
|
||||
|
||||
topsrcdir = normpath(sys.argv[1])
|
||||
topsrcdir = sys.argv[1]
|
||||
source_dir = sys.argv[2]
|
||||
target_dir = sys.argv[3]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user