summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2010-12-21 00:01:47 (GMT)
committerEvan Martin <martine@danga.com>2010-12-21 00:01:47 (GMT)
commit1297efdd10db66a6174f4fa2e71dd4169b278abd (patch)
treed465da66b3ddaebcc5e3df6da651131fcad97426 /misc
parentea24d6f36b452ca5f2c4ec2c75229c3792badd63 (diff)
downloadNinja-1297efdd10db66a6174f4fa2e71dd4169b278abd.zip
Ninja-1297efdd10db66a6174f4fa2e71dd4169b278abd.tar.gz
Ninja-1297efdd10db66a6174f4fa2e71dd4169b278abd.tar.bz2
more gyp updates
Diffstat (limited to 'misc')
-rw-r--r--misc/gyp.patch26
1 files changed, 2 insertions, 24 deletions
diff --git a/misc/gyp.patch b/misc/gyp.patch
index 5e65c68..33df2c8 100644
--- a/misc/gyp.patch
+++ b/misc/gyp.patch
@@ -87,7 +87,7 @@ Index: pylib/gyp/generator/ninja.py
===================================================================
--- pylib/gyp/generator/ninja.py (revision 0)
+++ pylib/gyp/generator/ninja.py (revision 0)
-@@ -0,0 +1,501 @@
+@@ -0,0 +1,500 @@
+#!/usr/bin/python
+
+# Copyright (c) 2010 Google Inc. All rights reserved.
@@ -168,8 +168,7 @@ Index: pylib/gyp/generator/ninja.py
+}
+
+def QuoteShellArgument(arg):
-+ assert "'" not in arg
-+ return "'" + arg + "'"
++ return "'" + arg.replace("'", "'" + '"\'"' + "'") + "'"
+
+def MaybeQuoteShellArgument(arg):
+ if '"' in arg or ' ' in arg:
@@ -589,24 +588,3 @@ Index: pylib/gyp/generator/ninja.py
+
+ master_ninja.close()
+ OverPrint('done.\n')
-Index: pylib/gyp/input.py
-===================================================================
---- pylib/gyp/input.py (revision 857)
-+++ pylib/gyp/input.py (working copy)
-@@ -1512,7 +1512,7 @@
- target_dict['dependencies'].append(dependency)
-
- # Initialize this here to speed up MakePathRelative.
--exception_re = re.compile(r'''["']?[-/$<>]''')
-+exception_re = re.compile(r'''["']?[-/$@<>]''')
-
-
- def MakePathRelative(to_file, fro_file, item):
-@@ -1524,6 +1524,7 @@
- # / Used when a path is already absolute (shortcut optimization;
- # such paths would be returned as absolute anyway)
- # $ Used for build environment variables
-+ # @ Used for build environment variables
- # - Used for some build environment flags (such as -lapr-1 in a
- # "libraries" section)
- # < Used for our own variable and command expansions (see ExpandVariables)