summaryrefslogtreecommitdiff
path: root/deps/gyp/test/external-cross-compile/src/fake_cross.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/external-cross-compile/src/fake_cross.py')
-rw-r--r--deps/gyp/test/external-cross-compile/src/fake_cross.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/deps/gyp/test/external-cross-compile/src/fake_cross.py b/deps/gyp/test/external-cross-compile/src/fake_cross.py
new file mode 100644
index 0000000000..05eacc6a63
--- /dev/null
+++ b/deps/gyp/test/external-cross-compile/src/fake_cross.py
@@ -0,0 +1,18 @@
+#!/usr/bin/python
+# Copyright (c) 2012 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import sys
+
+fh = open(sys.argv[1], 'w')
+
+filenames = sys.argv[2:]
+
+for filename in filenames:
+ subfile = open(filename)
+ data = subfile.read()
+ subfile.close()
+ fh.write(data)
+
+fh.close()