summaryrefslogtreecommitdiff
path: root/deps/gyp/test/actions/generated-header/action.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/actions/generated-header/action.py')
-rw-r--r--deps/gyp/test/actions/generated-header/action.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/gyp/test/actions/generated-header/action.py b/deps/gyp/test/actions/generated-header/action.py
new file mode 100644
index 0000000000..9be98798d6
--- /dev/null
+++ b/deps/gyp/test/actions/generated-header/action.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2013 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 os
+import sys
+
+outfile = sys.argv[1]
+open(outfile, 'w').write('const char kFoo[] = "%s";' % sys.argv[2])