summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/rules/src/rule.py
blob: 8a1f36dedb18111a724c0d63a7f48f0f9afab9b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
# Copyright (c) 2011 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

f = open(sys.argv[1] + ".cc", "w")
f.write("""\
#include <stdio.h>

int main() {
  puts("Hello %s");
  return 0;
}
""" % sys.argv[1])
f.close()